@namera-ai/api 0.0.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 (105) hide show
  1. package/README.md +58 -0
  2. package/dist/common.js +13 -0
  3. package/dist/common.js.map +1 -0
  4. package/dist/index.d.ts +32 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +40 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/middlewares/admin.d.ts +25 -0
  9. package/dist/middlewares/admin.d.ts.map +1 -0
  10. package/dist/middlewares/admin.js +18 -0
  11. package/dist/middlewares/admin.js.map +1 -0
  12. package/dist/middlewares/auth.d.ts +640 -0
  13. package/dist/middlewares/auth.d.ts.map +1 -0
  14. package/dist/middlewares/auth.js +26 -0
  15. package/dist/middlewares/auth.js.map +1 -0
  16. package/dist/middlewares/index.d.ts +3 -0
  17. package/dist/routes/address-metadata.d.ts +147 -0
  18. package/dist/routes/address-metadata.d.ts.map +1 -0
  19. package/dist/routes/address-metadata.js +24 -0
  20. package/dist/routes/address-metadata.js.map +1 -0
  21. package/dist/routes/api-key.d.ts +864 -0
  22. package/dist/routes/api-key.d.ts.map +1 -0
  23. package/dist/routes/api-key.js +31 -0
  24. package/dist/routes/api-key.js.map +1 -0
  25. package/dist/routes/auth/core/index.d.ts +4 -0
  26. package/dist/routes/auth/core/magic-link.d.ts +34 -0
  27. package/dist/routes/auth/core/magic-link.d.ts.map +1 -0
  28. package/dist/routes/auth/core/magic-link.js +25 -0
  29. package/dist/routes/auth/core/magic-link.js.map +1 -0
  30. package/dist/routes/auth/core/session.d.ts +805 -0
  31. package/dist/routes/auth/core/session.d.ts.map +1 -0
  32. package/dist/routes/auth/core/session.js +31 -0
  33. package/dist/routes/auth/core/session.js.map +1 -0
  34. package/dist/routes/auth/core/user.d.ts +45 -0
  35. package/dist/routes/auth/core/user.d.ts.map +1 -0
  36. package/dist/routes/auth/core/user.js +15 -0
  37. package/dist/routes/auth/core/user.js.map +1 -0
  38. package/dist/routes/auth/index.d.ts +11 -0
  39. package/dist/routes/auth/notification.d.ts +392 -0
  40. package/dist/routes/auth/notification.d.ts.map +1 -0
  41. package/dist/routes/auth/notification.js +40 -0
  42. package/dist/routes/auth/notification.js.map +1 -0
  43. package/dist/routes/auth/oauth.d.ts +1347 -0
  44. package/dist/routes/auth/oauth.d.ts.map +1 -0
  45. package/dist/routes/auth/oauth.js +62 -0
  46. package/dist/routes/auth/oauth.js.map +1 -0
  47. package/dist/routes/auth/organization/index.d.ts +4 -0
  48. package/dist/routes/auth/organization/invitation.d.ts +400 -0
  49. package/dist/routes/auth/organization/invitation.d.ts.map +1 -0
  50. package/dist/routes/auth/organization/invitation.js +55 -0
  51. package/dist/routes/auth/organization/invitation.js.map +1 -0
  52. package/dist/routes/auth/organization/members.d.ts +250 -0
  53. package/dist/routes/auth/organization/members.d.ts.map +1 -0
  54. package/dist/routes/auth/organization/members.js +37 -0
  55. package/dist/routes/auth/organization/members.js.map +1 -0
  56. package/dist/routes/auth/organization/organization.d.ts +196 -0
  57. package/dist/routes/auth/organization/organization.d.ts.map +1 -0
  58. package/dist/routes/auth/organization/organization.js +31 -0
  59. package/dist/routes/auth/organization/organization.js.map +1 -0
  60. package/dist/routes/beta-invite.d.ts +24 -0
  61. package/dist/routes/beta-invite.d.ts.map +1 -0
  62. package/dist/routes/beta-invite.js +20 -0
  63. package/dist/routes/beta-invite.js.map +1 -0
  64. package/dist/routes/billing.d.ts +34 -0
  65. package/dist/routes/billing.d.ts.map +1 -0
  66. package/dist/routes/billing.js +14 -0
  67. package/dist/routes/billing.js.map +1 -0
  68. package/dist/routes/dashboard.d.ts +58 -0
  69. package/dist/routes/dashboard.d.ts.map +1 -0
  70. package/dist/routes/dashboard.js +14 -0
  71. package/dist/routes/dashboard.js.map +1 -0
  72. package/dist/routes/ens.d.ts +14 -0
  73. package/dist/routes/ens.d.ts.map +1 -0
  74. package/dist/routes/ens.js +15 -0
  75. package/dist/routes/ens.js.map +1 -0
  76. package/dist/routes/execution.d.ts +816 -0
  77. package/dist/routes/execution.d.ts.map +1 -0
  78. package/dist/routes/execution.js +50 -0
  79. package/dist/routes/execution.js.map +1 -0
  80. package/dist/routes/health.d.ts +10 -0
  81. package/dist/routes/health.d.ts.map +1 -0
  82. package/dist/routes/health.js +10 -0
  83. package/dist/routes/health.js.map +1 -0
  84. package/dist/routes/index.d.ts +23 -0
  85. package/dist/routes/portfolio.d.ts +94 -0
  86. package/dist/routes/portfolio.d.ts.map +1 -0
  87. package/dist/routes/portfolio.js +16 -0
  88. package/dist/routes/portfolio.js.map +1 -0
  89. package/dist/routes/session-key.d.ts +1844 -0
  90. package/dist/routes/session-key.d.ts.map +1 -0
  91. package/dist/routes/session-key.js +55 -0
  92. package/dist/routes/session-key.js.map +1 -0
  93. package/dist/routes/signature.d.ts +195 -0
  94. package/dist/routes/signature.d.ts.map +1 -0
  95. package/dist/routes/signature.js +38 -0
  96. package/dist/routes/signature.js.map +1 -0
  97. package/dist/routes/waitlist.d.ts +42 -0
  98. package/dist/routes/waitlist.d.ts.map +1 -0
  99. package/dist/routes/waitlist.js +27 -0
  100. package/dist/routes/waitlist.js.map +1 -0
  101. package/dist/routes/wallet.d.ts +547 -0
  102. package/dist/routes/wallet.d.ts.map +1 -0
  103. package/dist/routes/wallet.js +50 -0
  104. package/dist/routes/wallet.js.map +1 -0
  105. package/package.json +61 -0
@@ -0,0 +1,864 @@
1
+ import { Authorization } from "../middlewares/auth.js";
2
+ import "../middlewares/index.js";
3
+ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
4
+ import { ApiKeyCreationError, ApiKeyNotFoundError, SessionKeyNotFoundError } from "@namera-ai/protocol";
5
+ //#region src/routes/api-key.d.ts
6
+ declare const ApiKeyGroup_base: HttpApiGroup.HttpApiGroup<"apiKey", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/api-keys/", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
7
+ readonly metadata: import("effect/Schema").Struct<{
8
+ readonly version: import("effect/Schema").Literal<1>;
9
+ readonly name: import("effect/Schema").String;
10
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
11
+ readonly type: import("effect/Schema").Literal<"icon">;
12
+ readonly value: import("effect/Schema").String;
13
+ readonly color: import("effect/Schema").String;
14
+ }>, import("effect/Schema").Struct<{
15
+ readonly type: import("effect/Schema").Literal<"emoji">;
16
+ readonly value: import("effect/Schema").String;
17
+ }>, import("effect/Schema").Struct<{
18
+ readonly type: import("effect/Schema").Literal<"image">;
19
+ readonly value: import("effect/Schema").String;
20
+ }>]>>;
21
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
22
+ }>;
23
+ readonly durationDays: import("effect/Schema").Int;
24
+ readonly sessionKeyIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">>;
25
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
26
+ readonly apiKey: import("effect/Schema").Struct<{
27
+ readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
28
+ readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
29
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
30
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
31
+ readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
32
+ readonly metadata: import("effect/Schema").Struct<{
33
+ readonly version: import("effect/Schema").Literal<1>;
34
+ readonly name: import("effect/Schema").String;
35
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
36
+ readonly type: import("effect/Schema").Literal<"icon">;
37
+ readonly value: import("effect/Schema").String;
38
+ readonly color: import("effect/Schema").String;
39
+ }>, import("effect/Schema").Struct<{
40
+ readonly type: import("effect/Schema").Literal<"emoji">;
41
+ readonly value: import("effect/Schema").String;
42
+ }>, import("effect/Schema").Struct<{
43
+ readonly type: import("effect/Schema").Literal<"image">;
44
+ readonly value: import("effect/Schema").String;
45
+ }>]>>;
46
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
47
+ }>;
48
+ readonly keyStart: import("effect/Schema").NonEmptyString;
49
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
50
+ readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
51
+ readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
52
+ readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
53
+ id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
54
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
55
+ walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
56
+ signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
57
+ namespace: import("effect/Schema").Literal<"eip155">;
58
+ metadata: import("effect/Schema").Struct<{
59
+ readonly version: import("effect/Schema").Literal<1>;
60
+ readonly name: import("effect/Schema").String;
61
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
62
+ readonly type: import("effect/Schema").Literal<"icon">;
63
+ readonly value: import("effect/Schema").String;
64
+ readonly color: import("effect/Schema").String;
65
+ }>, import("effect/Schema").Struct<{
66
+ readonly type: import("effect/Schema").Literal<"emoji">;
67
+ readonly value: import("effect/Schema").String;
68
+ }>, import("effect/Schema").Struct<{
69
+ readonly type: import("effect/Schema").Literal<"image">;
70
+ readonly value: import("effect/Schema").String;
71
+ }>]>>;
72
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
73
+ }>;
74
+ policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
75
+ readonly type: import("effect/Schema").Literal<"evm.contract-access">;
76
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
77
+ readonly version: import("effect/Schema").Literal<1>;
78
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
79
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
80
+ }>, import("effect/Schema").Struct<{
81
+ readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
82
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
83
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
84
+ readonly version: import("effect/Schema").Literal<1>;
85
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
86
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
87
+ }>, import("effect/Schema").Struct<{
88
+ readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
89
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
90
+ readonly version: import("effect/Schema").Literal<1>;
91
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
92
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
93
+ }>, import("effect/Schema").Struct<{
94
+ readonly type: import("effect/Schema").Literal<"evm.account-functions">;
95
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
96
+ readonly version: import("effect/Schema").Literal<1>;
97
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
98
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
99
+ }>, import("effect/Schema").Struct<{
100
+ readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
101
+ readonly version: import("effect/Schema").Literal<1>;
102
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
103
+ readonly allowance: import("effect/Schema").BigIntFromString;
104
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
105
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
106
+ }>, import("effect/Schema").Struct<{
107
+ readonly type: import("effect/Schema").Literal<"evm.time-window">;
108
+ readonly version: import("effect/Schema").Literal<1>;
109
+ readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
110
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
111
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
112
+ readonly appliesTo: import("effect/Schema").Literal<"both">;
113
+ }>, import("effect/Schema").Struct<{
114
+ readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
115
+ readonly version: import("effect/Schema").Literal<1>;
116
+ readonly chainIds: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>>;
117
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
118
+ readonly appliesTo: import("effect/Schema").Literal<"both">;
119
+ }>, import("effect/Schema").Struct<{
120
+ readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
121
+ readonly version: import("effect/Schema").Literal<1>;
122
+ readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
123
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
124
+ readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
125
+ readonly maxCost: import("effect/Schema").BigIntFromString;
126
+ }>>;
127
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
128
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
129
+ }>, import("effect/Schema").Struct<{
130
+ readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
131
+ readonly version: import("effect/Schema").Literal<1>;
132
+ readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
133
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
134
+ readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
135
+ readonly maxAmount: import("effect/Schema").BigIntFromString;
136
+ }>>;
137
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
138
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
139
+ }>, import("effect/Schema").Struct<{
140
+ readonly type: import("effect/Schema").Literal<"evm.signature">;
141
+ readonly version: import("effect/Schema").Literal<1>;
142
+ readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
143
+ readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
144
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
145
+ readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
146
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
147
+ readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
148
+ readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
149
+ }>>>;
150
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
151
+ readonly appliesTo: import("effect/Schema").Literal<"signature">;
152
+ }>]>>;
153
+ policyHash: import("effect/Schema").String;
154
+ status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
155
+ revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
156
+ createdAt: import("effect/Schema").DateTimeUtcFromDate;
157
+ }>]>>;
158
+ readonly creator: import("effect/Schema").Struct<{
159
+ readonly organizationMember: import("effect/Schema").Struct<{
160
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
161
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
162
+ readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
163
+ readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
164
+ readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
165
+ }>;
166
+ readonly user: import("effect/Schema").Struct<{
167
+ readonly metadata: import("effect/Schema").Struct<{
168
+ readonly version: import("effect/Schema").Literal<1>;
169
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
170
+ readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
171
+ readonly type: import("effect/Schema").Literal<"icon">;
172
+ readonly value: import("effect/Schema").String;
173
+ readonly color: import("effect/Schema").String;
174
+ }>, import("effect/Schema").Struct<{
175
+ readonly type: import("effect/Schema").Literal<"emoji">;
176
+ readonly value: import("effect/Schema").String;
177
+ }>, import("effect/Schema").Struct<{
178
+ readonly type: import("effect/Schema").Literal<"image">;
179
+ readonly value: import("effect/Schema").String;
180
+ }>]>>;
181
+ }>;
182
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
183
+ readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
184
+ readonly email: import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "Email">;
185
+ readonly emailVerified: import("effect/Schema").Boolean;
186
+ }>;
187
+ readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
188
+ readonly type: import("effect/Schema").Literal<"system">;
189
+ readonly metadata: import("effect/Schema").Struct<{
190
+ readonly version: import("effect/Schema").Literal<1>;
191
+ readonly name: import("effect/Schema").String;
192
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
193
+ readonly type: import("effect/Schema").Literal<"icon">;
194
+ readonly value: import("effect/Schema").String;
195
+ readonly color: import("effect/Schema").String;
196
+ }>, import("effect/Schema").Struct<{
197
+ readonly type: import("effect/Schema").Literal<"emoji">;
198
+ readonly value: import("effect/Schema").String;
199
+ }>, import("effect/Schema").Struct<{
200
+ readonly type: import("effect/Schema").Literal<"image">;
201
+ readonly value: import("effect/Schema").String;
202
+ }>]>>;
203
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
204
+ }>;
205
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
206
+ readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
207
+ readonly key: import("effect/Schema").String;
208
+ readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["organization:read", "organization:update", "member:read", "member:update", "member:remove", "invitation:read", "invitation:create", "invitation:cancel", "role:read", "role:create", "role:update", "role:delete", "billing:read", "billing:update", "billing:cancel", "wallet:read", "wallet:create", "wallet:update", "session-key:read", "session-key:create", "session-key:revoke", "api-key:read", "api-key:create", "api-key:revoke", "execution:read", "mcp-authorization:read", "mcp-authorization:create", "mcp-authorization:revoke", "cli-authorization:read", "cli-authorization:create", "cli-authorization:revoke"]>>;
209
+ }>, import("effect/Schema").Struct<{
210
+ readonly type: import("effect/Schema").Literal<"custom">;
211
+ readonly metadata: import("effect/Schema").Struct<{
212
+ readonly version: import("effect/Schema").Literal<1>;
213
+ readonly name: import("effect/Schema").String;
214
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
215
+ readonly type: import("effect/Schema").Literal<"icon">;
216
+ readonly value: import("effect/Schema").String;
217
+ readonly color: import("effect/Schema").String;
218
+ }>, import("effect/Schema").Struct<{
219
+ readonly type: import("effect/Schema").Literal<"emoji">;
220
+ readonly value: import("effect/Schema").String;
221
+ }>, import("effect/Schema").Struct<{
222
+ readonly type: import("effect/Schema").Literal<"image">;
223
+ readonly value: import("effect/Schema").String;
224
+ }>]>>;
225
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
226
+ }>;
227
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
228
+ readonly systemRoleId: import("effect/Schema").Null;
229
+ readonly key: import("effect/Schema").String;
230
+ readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["organization:read", "organization:update", "member:read", "member:update", "member:remove", "invitation:read", "invitation:create", "invitation:cancel", "role:read", "role:create", "role:update", "role:delete", "billing:read", "billing:update", "billing:cancel", "wallet:read", "wallet:create", "wallet:update", "session-key:read", "session-key:create", "session-key:revoke", "api-key:read", "api-key:create", "api-key:revoke", "execution:read", "mcp-authorization:read", "mcp-authorization:create", "mcp-authorization:revoke", "cli-authorization:read", "cli-authorization:create", "cli-authorization:revoke"]>>;
231
+ }>]>;
232
+ }>;
233
+ }>;
234
+ readonly key: import("effect/Schema").NonEmptyString;
235
+ }>>, import("effect/Schema").toCodecJson<HttpApiSchema.asNoContent<typeof import("effect/unstable/httpapi/HttpApiError").Forbidden> | HttpApiSchema.asNoContent<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError> | typeof import("@namera-ai/protocol").RateLimitExceeded | typeof ApiKeyCreationError | typeof SessionKeyNotFoundError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api-keys/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
236
+ readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
237
+ readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
238
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
239
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
240
+ readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
241
+ readonly metadata: import("effect/Schema").Struct<{
242
+ readonly version: import("effect/Schema").Literal<1>;
243
+ readonly name: import("effect/Schema").String;
244
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
245
+ readonly type: import("effect/Schema").Literal<"icon">;
246
+ readonly value: import("effect/Schema").String;
247
+ readonly color: import("effect/Schema").String;
248
+ }>, import("effect/Schema").Struct<{
249
+ readonly type: import("effect/Schema").Literal<"emoji">;
250
+ readonly value: import("effect/Schema").String;
251
+ }>, import("effect/Schema").Struct<{
252
+ readonly type: import("effect/Schema").Literal<"image">;
253
+ readonly value: import("effect/Schema").String;
254
+ }>]>>;
255
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
256
+ }>;
257
+ readonly keyStart: import("effect/Schema").NonEmptyString;
258
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
259
+ readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
260
+ readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
261
+ readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
262
+ id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
263
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
264
+ walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
265
+ signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
266
+ namespace: import("effect/Schema").Literal<"eip155">;
267
+ metadata: import("effect/Schema").Struct<{
268
+ readonly version: import("effect/Schema").Literal<1>;
269
+ readonly name: import("effect/Schema").String;
270
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
271
+ readonly type: import("effect/Schema").Literal<"icon">;
272
+ readonly value: import("effect/Schema").String;
273
+ readonly color: import("effect/Schema").String;
274
+ }>, import("effect/Schema").Struct<{
275
+ readonly type: import("effect/Schema").Literal<"emoji">;
276
+ readonly value: import("effect/Schema").String;
277
+ }>, import("effect/Schema").Struct<{
278
+ readonly type: import("effect/Schema").Literal<"image">;
279
+ readonly value: import("effect/Schema").String;
280
+ }>]>>;
281
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
282
+ }>;
283
+ policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
284
+ readonly type: import("effect/Schema").Literal<"evm.contract-access">;
285
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
286
+ readonly version: import("effect/Schema").Literal<1>;
287
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
288
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
289
+ }>, import("effect/Schema").Struct<{
290
+ readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
291
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
292
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
293
+ readonly version: import("effect/Schema").Literal<1>;
294
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
295
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
296
+ }>, import("effect/Schema").Struct<{
297
+ readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
298
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
299
+ readonly version: import("effect/Schema").Literal<1>;
300
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
301
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
302
+ }>, import("effect/Schema").Struct<{
303
+ readonly type: import("effect/Schema").Literal<"evm.account-functions">;
304
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
305
+ readonly version: import("effect/Schema").Literal<1>;
306
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
307
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
308
+ }>, import("effect/Schema").Struct<{
309
+ readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
310
+ readonly version: import("effect/Schema").Literal<1>;
311
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
312
+ readonly allowance: import("effect/Schema").BigIntFromString;
313
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
314
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
315
+ }>, import("effect/Schema").Struct<{
316
+ readonly type: import("effect/Schema").Literal<"evm.time-window">;
317
+ readonly version: import("effect/Schema").Literal<1>;
318
+ readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
319
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
320
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
321
+ readonly appliesTo: import("effect/Schema").Literal<"both">;
322
+ }>, import("effect/Schema").Struct<{
323
+ readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
324
+ readonly version: import("effect/Schema").Literal<1>;
325
+ readonly chainIds: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>>;
326
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
327
+ readonly appliesTo: import("effect/Schema").Literal<"both">;
328
+ }>, import("effect/Schema").Struct<{
329
+ readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
330
+ readonly version: import("effect/Schema").Literal<1>;
331
+ readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
332
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
333
+ readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
334
+ readonly maxCost: import("effect/Schema").BigIntFromString;
335
+ }>>;
336
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
337
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
338
+ }>, import("effect/Schema").Struct<{
339
+ readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
340
+ readonly version: import("effect/Schema").Literal<1>;
341
+ readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
342
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
343
+ readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
344
+ readonly maxAmount: import("effect/Schema").BigIntFromString;
345
+ }>>;
346
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
347
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
348
+ }>, import("effect/Schema").Struct<{
349
+ readonly type: import("effect/Schema").Literal<"evm.signature">;
350
+ readonly version: import("effect/Schema").Literal<1>;
351
+ readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
352
+ readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
353
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
354
+ readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
355
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
356
+ readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
357
+ readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
358
+ }>>>;
359
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
360
+ readonly appliesTo: import("effect/Schema").Literal<"signature">;
361
+ }>]>>;
362
+ policyHash: import("effect/Schema").String;
363
+ status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
364
+ revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
365
+ createdAt: import("effect/Schema").DateTimeUtcFromDate;
366
+ }>]>>;
367
+ readonly creator: import("effect/Schema").Struct<{
368
+ readonly organizationMember: import("effect/Schema").Struct<{
369
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
370
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
371
+ readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
372
+ readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
373
+ readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
374
+ }>;
375
+ readonly user: import("effect/Schema").Struct<{
376
+ readonly metadata: import("effect/Schema").Struct<{
377
+ readonly version: import("effect/Schema").Literal<1>;
378
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
379
+ readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
380
+ readonly type: import("effect/Schema").Literal<"icon">;
381
+ readonly value: import("effect/Schema").String;
382
+ readonly color: import("effect/Schema").String;
383
+ }>, import("effect/Schema").Struct<{
384
+ readonly type: import("effect/Schema").Literal<"emoji">;
385
+ readonly value: import("effect/Schema").String;
386
+ }>, import("effect/Schema").Struct<{
387
+ readonly type: import("effect/Schema").Literal<"image">;
388
+ readonly value: import("effect/Schema").String;
389
+ }>]>>;
390
+ }>;
391
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
392
+ readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
393
+ readonly email: import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "Email">;
394
+ readonly emailVerified: import("effect/Schema").Boolean;
395
+ }>;
396
+ readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
397
+ readonly type: import("effect/Schema").Literal<"system">;
398
+ readonly metadata: import("effect/Schema").Struct<{
399
+ readonly version: import("effect/Schema").Literal<1>;
400
+ readonly name: import("effect/Schema").String;
401
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
402
+ readonly type: import("effect/Schema").Literal<"icon">;
403
+ readonly value: import("effect/Schema").String;
404
+ readonly color: import("effect/Schema").String;
405
+ }>, import("effect/Schema").Struct<{
406
+ readonly type: import("effect/Schema").Literal<"emoji">;
407
+ readonly value: import("effect/Schema").String;
408
+ }>, import("effect/Schema").Struct<{
409
+ readonly type: import("effect/Schema").Literal<"image">;
410
+ readonly value: import("effect/Schema").String;
411
+ }>]>>;
412
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
413
+ }>;
414
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
415
+ readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
416
+ readonly key: import("effect/Schema").String;
417
+ readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["organization:read", "organization:update", "member:read", "member:update", "member:remove", "invitation:read", "invitation:create", "invitation:cancel", "role:read", "role:create", "role:update", "role:delete", "billing:read", "billing:update", "billing:cancel", "wallet:read", "wallet:create", "wallet:update", "session-key:read", "session-key:create", "session-key:revoke", "api-key:read", "api-key:create", "api-key:revoke", "execution:read", "mcp-authorization:read", "mcp-authorization:create", "mcp-authorization:revoke", "cli-authorization:read", "cli-authorization:create", "cli-authorization:revoke"]>>;
418
+ }>, import("effect/Schema").Struct<{
419
+ readonly type: import("effect/Schema").Literal<"custom">;
420
+ readonly metadata: import("effect/Schema").Struct<{
421
+ readonly version: import("effect/Schema").Literal<1>;
422
+ readonly name: import("effect/Schema").String;
423
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
424
+ readonly type: import("effect/Schema").Literal<"icon">;
425
+ readonly value: import("effect/Schema").String;
426
+ readonly color: import("effect/Schema").String;
427
+ }>, import("effect/Schema").Struct<{
428
+ readonly type: import("effect/Schema").Literal<"emoji">;
429
+ readonly value: import("effect/Schema").String;
430
+ }>, import("effect/Schema").Struct<{
431
+ readonly type: import("effect/Schema").Literal<"image">;
432
+ readonly value: import("effect/Schema").String;
433
+ }>]>>;
434
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
435
+ }>;
436
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
437
+ readonly systemRoleId: import("effect/Schema").Null;
438
+ readonly key: import("effect/Schema").String;
439
+ readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["organization:read", "organization:update", "member:read", "member:update", "member:remove", "invitation:read", "invitation:create", "invitation:cancel", "role:read", "role:create", "role:update", "role:delete", "billing:read", "billing:update", "billing:cancel", "wallet:read", "wallet:create", "wallet:update", "session-key:read", "session-key:create", "session-key:revoke", "api-key:read", "api-key:create", "api-key:revoke", "execution:read", "mcp-authorization:read", "mcp-authorization:create", "mcp-authorization:revoke", "cli-authorization:read", "cli-authorization:create", "cli-authorization:revoke"]>>;
440
+ }>]>;
441
+ }>;
442
+ }>>>, import("effect/Schema").toCodecJson<HttpApiSchema.asNoContent<typeof import("effect/unstable/httpapi/HttpApiError").Forbidden> | HttpApiSchema.asNoContent<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError> | typeof import("@namera-ai/protocol").RateLimitExceeded>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/api-keys/:apiKeyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
443
+ readonly apiKeyId: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
444
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
445
+ readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
446
+ readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
447
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
448
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
449
+ readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
450
+ readonly metadata: import("effect/Schema").Struct<{
451
+ readonly version: import("effect/Schema").Literal<1>;
452
+ readonly name: import("effect/Schema").String;
453
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
454
+ readonly type: import("effect/Schema").Literal<"icon">;
455
+ readonly value: import("effect/Schema").String;
456
+ readonly color: import("effect/Schema").String;
457
+ }>, import("effect/Schema").Struct<{
458
+ readonly type: import("effect/Schema").Literal<"emoji">;
459
+ readonly value: import("effect/Schema").String;
460
+ }>, import("effect/Schema").Struct<{
461
+ readonly type: import("effect/Schema").Literal<"image">;
462
+ readonly value: import("effect/Schema").String;
463
+ }>]>>;
464
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
465
+ }>;
466
+ readonly keyStart: import("effect/Schema").NonEmptyString;
467
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
468
+ readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
469
+ readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
470
+ readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
471
+ id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
472
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
473
+ walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
474
+ signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
475
+ namespace: import("effect/Schema").Literal<"eip155">;
476
+ metadata: import("effect/Schema").Struct<{
477
+ readonly version: import("effect/Schema").Literal<1>;
478
+ readonly name: import("effect/Schema").String;
479
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
480
+ readonly type: import("effect/Schema").Literal<"icon">;
481
+ readonly value: import("effect/Schema").String;
482
+ readonly color: import("effect/Schema").String;
483
+ }>, import("effect/Schema").Struct<{
484
+ readonly type: import("effect/Schema").Literal<"emoji">;
485
+ readonly value: import("effect/Schema").String;
486
+ }>, import("effect/Schema").Struct<{
487
+ readonly type: import("effect/Schema").Literal<"image">;
488
+ readonly value: import("effect/Schema").String;
489
+ }>]>>;
490
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
491
+ }>;
492
+ policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
493
+ readonly type: import("effect/Schema").Literal<"evm.contract-access">;
494
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
495
+ readonly version: import("effect/Schema").Literal<1>;
496
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
497
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
498
+ }>, import("effect/Schema").Struct<{
499
+ readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
500
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
501
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
502
+ readonly version: import("effect/Schema").Literal<1>;
503
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
504
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
505
+ }>, import("effect/Schema").Struct<{
506
+ readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
507
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
508
+ readonly version: import("effect/Schema").Literal<1>;
509
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
510
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
511
+ }>, import("effect/Schema").Struct<{
512
+ readonly type: import("effect/Schema").Literal<"evm.account-functions">;
513
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
514
+ readonly version: import("effect/Schema").Literal<1>;
515
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
516
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
517
+ }>, import("effect/Schema").Struct<{
518
+ readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
519
+ readonly version: import("effect/Schema").Literal<1>;
520
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
521
+ readonly allowance: import("effect/Schema").BigIntFromString;
522
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
523
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
524
+ }>, import("effect/Schema").Struct<{
525
+ readonly type: import("effect/Schema").Literal<"evm.time-window">;
526
+ readonly version: import("effect/Schema").Literal<1>;
527
+ readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
528
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
529
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
530
+ readonly appliesTo: import("effect/Schema").Literal<"both">;
531
+ }>, import("effect/Schema").Struct<{
532
+ readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
533
+ readonly version: import("effect/Schema").Literal<1>;
534
+ readonly chainIds: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>>;
535
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
536
+ readonly appliesTo: import("effect/Schema").Literal<"both">;
537
+ }>, import("effect/Schema").Struct<{
538
+ readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
539
+ readonly version: import("effect/Schema").Literal<1>;
540
+ readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
541
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
542
+ readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
543
+ readonly maxCost: import("effect/Schema").BigIntFromString;
544
+ }>>;
545
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
546
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
547
+ }>, import("effect/Schema").Struct<{
548
+ readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
549
+ readonly version: import("effect/Schema").Literal<1>;
550
+ readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
551
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
552
+ readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
553
+ readonly maxAmount: import("effect/Schema").BigIntFromString;
554
+ }>>;
555
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
556
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
557
+ }>, import("effect/Schema").Struct<{
558
+ readonly type: import("effect/Schema").Literal<"evm.signature">;
559
+ readonly version: import("effect/Schema").Literal<1>;
560
+ readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
561
+ readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
562
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
563
+ readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
564
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
565
+ readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
566
+ readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
567
+ }>>>;
568
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
569
+ readonly appliesTo: import("effect/Schema").Literal<"signature">;
570
+ }>]>>;
571
+ policyHash: import("effect/Schema").String;
572
+ status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
573
+ revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
574
+ createdAt: import("effect/Schema").DateTimeUtcFromDate;
575
+ }>]>>;
576
+ readonly creator: import("effect/Schema").Struct<{
577
+ readonly organizationMember: import("effect/Schema").Struct<{
578
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
579
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
580
+ readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
581
+ readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
582
+ readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
583
+ }>;
584
+ readonly user: import("effect/Schema").Struct<{
585
+ readonly metadata: import("effect/Schema").Struct<{
586
+ readonly version: import("effect/Schema").Literal<1>;
587
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
588
+ readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
589
+ readonly type: import("effect/Schema").Literal<"icon">;
590
+ readonly value: import("effect/Schema").String;
591
+ readonly color: import("effect/Schema").String;
592
+ }>, import("effect/Schema").Struct<{
593
+ readonly type: import("effect/Schema").Literal<"emoji">;
594
+ readonly value: import("effect/Schema").String;
595
+ }>, import("effect/Schema").Struct<{
596
+ readonly type: import("effect/Schema").Literal<"image">;
597
+ readonly value: import("effect/Schema").String;
598
+ }>]>>;
599
+ }>;
600
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
601
+ readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
602
+ readonly email: import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "Email">;
603
+ readonly emailVerified: import("effect/Schema").Boolean;
604
+ }>;
605
+ readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
606
+ readonly type: import("effect/Schema").Literal<"system">;
607
+ readonly metadata: import("effect/Schema").Struct<{
608
+ readonly version: import("effect/Schema").Literal<1>;
609
+ readonly name: import("effect/Schema").String;
610
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
611
+ readonly type: import("effect/Schema").Literal<"icon">;
612
+ readonly value: import("effect/Schema").String;
613
+ readonly color: import("effect/Schema").String;
614
+ }>, import("effect/Schema").Struct<{
615
+ readonly type: import("effect/Schema").Literal<"emoji">;
616
+ readonly value: import("effect/Schema").String;
617
+ }>, import("effect/Schema").Struct<{
618
+ readonly type: import("effect/Schema").Literal<"image">;
619
+ readonly value: import("effect/Schema").String;
620
+ }>]>>;
621
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
622
+ }>;
623
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
624
+ readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
625
+ readonly key: import("effect/Schema").String;
626
+ readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["organization:read", "organization:update", "member:read", "member:update", "member:remove", "invitation:read", "invitation:create", "invitation:cancel", "role:read", "role:create", "role:update", "role:delete", "billing:read", "billing:update", "billing:cancel", "wallet:read", "wallet:create", "wallet:update", "session-key:read", "session-key:create", "session-key:revoke", "api-key:read", "api-key:create", "api-key:revoke", "execution:read", "mcp-authorization:read", "mcp-authorization:create", "mcp-authorization:revoke", "cli-authorization:read", "cli-authorization:create", "cli-authorization:revoke"]>>;
627
+ }>, import("effect/Schema").Struct<{
628
+ readonly type: import("effect/Schema").Literal<"custom">;
629
+ readonly metadata: import("effect/Schema").Struct<{
630
+ readonly version: import("effect/Schema").Literal<1>;
631
+ readonly name: import("effect/Schema").String;
632
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
633
+ readonly type: import("effect/Schema").Literal<"icon">;
634
+ readonly value: import("effect/Schema").String;
635
+ readonly color: import("effect/Schema").String;
636
+ }>, import("effect/Schema").Struct<{
637
+ readonly type: import("effect/Schema").Literal<"emoji">;
638
+ readonly value: import("effect/Schema").String;
639
+ }>, import("effect/Schema").Struct<{
640
+ readonly type: import("effect/Schema").Literal<"image">;
641
+ readonly value: import("effect/Schema").String;
642
+ }>]>>;
643
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
644
+ }>;
645
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
646
+ readonly systemRoleId: import("effect/Schema").Null;
647
+ readonly key: import("effect/Schema").String;
648
+ readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["organization:read", "organization:update", "member:read", "member:update", "member:remove", "invitation:read", "invitation:create", "invitation:cancel", "role:read", "role:create", "role:update", "role:delete", "billing:read", "billing:update", "billing:cancel", "wallet:read", "wallet:create", "wallet:update", "session-key:read", "session-key:create", "session-key:revoke", "api-key:read", "api-key:create", "api-key:revoke", "execution:read", "mcp-authorization:read", "mcp-authorization:create", "mcp-authorization:revoke", "cli-authorization:read", "cli-authorization:create", "cli-authorization:revoke"]>>;
649
+ }>]>;
650
+ }>;
651
+ }>>, import("effect/Schema").toCodecJson<HttpApiSchema.asNoContent<typeof import("effect/unstable/httpapi/HttpApiError").Forbidden> | HttpApiSchema.asNoContent<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError> | typeof import("@namera-ai/protocol").RateLimitExceeded | typeof ApiKeyNotFoundError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/api-keys/:apiKeyId/revoke", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
652
+ readonly apiKeyId: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
653
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
654
+ readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
655
+ readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
656
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
657
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
658
+ readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
659
+ readonly metadata: import("effect/Schema").Struct<{
660
+ readonly version: import("effect/Schema").Literal<1>;
661
+ readonly name: import("effect/Schema").String;
662
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
663
+ readonly type: import("effect/Schema").Literal<"icon">;
664
+ readonly value: import("effect/Schema").String;
665
+ readonly color: import("effect/Schema").String;
666
+ }>, import("effect/Schema").Struct<{
667
+ readonly type: import("effect/Schema").Literal<"emoji">;
668
+ readonly value: import("effect/Schema").String;
669
+ }>, import("effect/Schema").Struct<{
670
+ readonly type: import("effect/Schema").Literal<"image">;
671
+ readonly value: import("effect/Schema").String;
672
+ }>]>>;
673
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
674
+ }>;
675
+ readonly keyStart: import("effect/Schema").NonEmptyString;
676
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
677
+ readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
678
+ readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
679
+ readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
680
+ id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
681
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
682
+ walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
683
+ signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
684
+ namespace: import("effect/Schema").Literal<"eip155">;
685
+ metadata: import("effect/Schema").Struct<{
686
+ readonly version: import("effect/Schema").Literal<1>;
687
+ readonly name: import("effect/Schema").String;
688
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
689
+ readonly type: import("effect/Schema").Literal<"icon">;
690
+ readonly value: import("effect/Schema").String;
691
+ readonly color: import("effect/Schema").String;
692
+ }>, import("effect/Schema").Struct<{
693
+ readonly type: import("effect/Schema").Literal<"emoji">;
694
+ readonly value: import("effect/Schema").String;
695
+ }>, import("effect/Schema").Struct<{
696
+ readonly type: import("effect/Schema").Literal<"image">;
697
+ readonly value: import("effect/Schema").String;
698
+ }>]>>;
699
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
700
+ }>;
701
+ policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
702
+ readonly type: import("effect/Schema").Literal<"evm.contract-access">;
703
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
704
+ readonly version: import("effect/Schema").Literal<1>;
705
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
706
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
707
+ }>, import("effect/Schema").Struct<{
708
+ readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
709
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
710
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
711
+ readonly version: import("effect/Schema").Literal<1>;
712
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
713
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
714
+ }>, import("effect/Schema").Struct<{
715
+ readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
716
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
717
+ readonly version: import("effect/Schema").Literal<1>;
718
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
719
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
720
+ }>, import("effect/Schema").Struct<{
721
+ readonly type: import("effect/Schema").Literal<"evm.account-functions">;
722
+ readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
723
+ readonly version: import("effect/Schema").Literal<1>;
724
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
725
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
726
+ }>, import("effect/Schema").Struct<{
727
+ readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
728
+ readonly version: import("effect/Schema").Literal<1>;
729
+ readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
730
+ readonly allowance: import("effect/Schema").BigIntFromString;
731
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
732
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
733
+ }>, import("effect/Schema").Struct<{
734
+ readonly type: import("effect/Schema").Literal<"evm.time-window">;
735
+ readonly version: import("effect/Schema").Literal<1>;
736
+ readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
737
+ readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
738
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
739
+ readonly appliesTo: import("effect/Schema").Literal<"both">;
740
+ }>, import("effect/Schema").Struct<{
741
+ readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
742
+ readonly version: import("effect/Schema").Literal<1>;
743
+ readonly chainIds: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>>;
744
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
745
+ readonly appliesTo: import("effect/Schema").Literal<"both">;
746
+ }>, import("effect/Schema").Struct<{
747
+ readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
748
+ readonly version: import("effect/Schema").Literal<1>;
749
+ readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
750
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
751
+ readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
752
+ readonly maxCost: import("effect/Schema").BigIntFromString;
753
+ }>>;
754
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
755
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
756
+ }>, import("effect/Schema").Struct<{
757
+ readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
758
+ readonly version: import("effect/Schema").Literal<1>;
759
+ readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
760
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
761
+ readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
762
+ readonly maxAmount: import("effect/Schema").BigIntFromString;
763
+ }>>;
764
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
765
+ readonly appliesTo: import("effect/Schema").Literal<"execution">;
766
+ }>, import("effect/Schema").Struct<{
767
+ readonly type: import("effect/Schema").Literal<"evm.signature">;
768
+ readonly version: import("effect/Schema").Literal<1>;
769
+ readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
770
+ readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
771
+ readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
772
+ readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
773
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
774
+ readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
775
+ readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
776
+ }>>>;
777
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
778
+ readonly appliesTo: import("effect/Schema").Literal<"signature">;
779
+ }>]>>;
780
+ policyHash: import("effect/Schema").String;
781
+ status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
782
+ revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
783
+ createdAt: import("effect/Schema").DateTimeUtcFromDate;
784
+ }>]>>;
785
+ readonly creator: import("effect/Schema").Struct<{
786
+ readonly organizationMember: import("effect/Schema").Struct<{
787
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
788
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
789
+ readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
790
+ readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
791
+ readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
792
+ }>;
793
+ readonly user: import("effect/Schema").Struct<{
794
+ readonly metadata: import("effect/Schema").Struct<{
795
+ readonly version: import("effect/Schema").Literal<1>;
796
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
797
+ readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
798
+ readonly type: import("effect/Schema").Literal<"icon">;
799
+ readonly value: import("effect/Schema").String;
800
+ readonly color: import("effect/Schema").String;
801
+ }>, import("effect/Schema").Struct<{
802
+ readonly type: import("effect/Schema").Literal<"emoji">;
803
+ readonly value: import("effect/Schema").String;
804
+ }>, import("effect/Schema").Struct<{
805
+ readonly type: import("effect/Schema").Literal<"image">;
806
+ readonly value: import("effect/Schema").String;
807
+ }>]>>;
808
+ }>;
809
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
810
+ readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
811
+ readonly email: import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "Email">;
812
+ readonly emailVerified: import("effect/Schema").Boolean;
813
+ }>;
814
+ readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
815
+ readonly type: import("effect/Schema").Literal<"system">;
816
+ readonly metadata: import("effect/Schema").Struct<{
817
+ readonly version: import("effect/Schema").Literal<1>;
818
+ readonly name: import("effect/Schema").String;
819
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
820
+ readonly type: import("effect/Schema").Literal<"icon">;
821
+ readonly value: import("effect/Schema").String;
822
+ readonly color: import("effect/Schema").String;
823
+ }>, import("effect/Schema").Struct<{
824
+ readonly type: import("effect/Schema").Literal<"emoji">;
825
+ readonly value: import("effect/Schema").String;
826
+ }>, import("effect/Schema").Struct<{
827
+ readonly type: import("effect/Schema").Literal<"image">;
828
+ readonly value: import("effect/Schema").String;
829
+ }>]>>;
830
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
831
+ }>;
832
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
833
+ readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
834
+ readonly key: import("effect/Schema").String;
835
+ readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["organization:read", "organization:update", "member:read", "member:update", "member:remove", "invitation:read", "invitation:create", "invitation:cancel", "role:read", "role:create", "role:update", "role:delete", "billing:read", "billing:update", "billing:cancel", "wallet:read", "wallet:create", "wallet:update", "session-key:read", "session-key:create", "session-key:revoke", "api-key:read", "api-key:create", "api-key:revoke", "execution:read", "mcp-authorization:read", "mcp-authorization:create", "mcp-authorization:revoke", "cli-authorization:read", "cli-authorization:create", "cli-authorization:revoke"]>>;
836
+ }>, import("effect/Schema").Struct<{
837
+ readonly type: import("effect/Schema").Literal<"custom">;
838
+ readonly metadata: import("effect/Schema").Struct<{
839
+ readonly version: import("effect/Schema").Literal<1>;
840
+ readonly name: import("effect/Schema").String;
841
+ readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
842
+ readonly type: import("effect/Schema").Literal<"icon">;
843
+ readonly value: import("effect/Schema").String;
844
+ readonly color: import("effect/Schema").String;
845
+ }>, import("effect/Schema").Struct<{
846
+ readonly type: import("effect/Schema").Literal<"emoji">;
847
+ readonly value: import("effect/Schema").String;
848
+ }>, import("effect/Schema").Struct<{
849
+ readonly type: import("effect/Schema").Literal<"image">;
850
+ readonly value: import("effect/Schema").String;
851
+ }>]>>;
852
+ readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
853
+ }>;
854
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
855
+ readonly systemRoleId: import("effect/Schema").Null;
856
+ readonly key: import("effect/Schema").String;
857
+ readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["organization:read", "organization:update", "member:read", "member:update", "member:remove", "invitation:read", "invitation:create", "invitation:cancel", "role:read", "role:create", "role:update", "role:delete", "billing:read", "billing:update", "billing:cancel", "wallet:read", "wallet:create", "wallet:update", "session-key:read", "session-key:create", "session-key:revoke", "api-key:read", "api-key:create", "api-key:revoke", "execution:read", "mcp-authorization:read", "mcp-authorization:create", "mcp-authorization:revoke", "cli-authorization:read", "cli-authorization:create", "cli-authorization:revoke"]>>;
858
+ }>]>;
859
+ }>;
860
+ }>>, import("effect/Schema").toCodecJson<HttpApiSchema.asNoContent<typeof import("effect/unstable/httpapi/HttpApiError").Forbidden> | HttpApiSchema.asNoContent<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError> | typeof import("@namera-ai/protocol").RateLimitExceeded | typeof ApiKeyNotFoundError>, Authorization, never>, false>;
861
+ declare class ApiKeyGroup extends ApiKeyGroup_base {}
862
+ //#endregion
863
+ export { ApiKeyGroup };
864
+ //# sourceMappingURL=api-key.d.ts.map