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