@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,1347 @@
|
|
|
1
|
+
import { Authorization } from "../../middlewares/auth.js";
|
|
2
|
+
import "../../middlewares/index.js";
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
|
|
4
|
+
import { OAuthAuthorizationError, OAuthAuthorizationRequestError, OAuthDeviceAuthorizationError } from "@namera-ai/protocol";
|
|
5
|
+
//#region src/routes/auth/oauth.d.ts
|
|
6
|
+
declare const OAuthGroup_base: HttpApiGroup.HttpApiGroup<"oauth", HttpApiEndpoint.HttpApiEndpoint<"getOAuthAuthorizationRequest", "GET", "/oauth/authorization-requests/:requestId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
7
|
+
readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationRequestId">;
|
|
8
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
9
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationRequestId">;
|
|
10
|
+
readonly client: import("effect/Schema").Struct<{
|
|
11
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthClientId">;
|
|
12
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
13
|
+
readonly registrationType: import("effect/Schema").Literals<readonly ["metadata-document", "pre-registered", "dynamic"]>;
|
|
14
|
+
readonly clientName: import("effect/Schema").NonEmptyString;
|
|
15
|
+
readonly clientUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
16
|
+
readonly logoUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
17
|
+
}>;
|
|
18
|
+
readonly redirectUri: import("effect/Schema").NonEmptyString;
|
|
19
|
+
readonly resource: import("effect/Schema").NonEmptyString;
|
|
20
|
+
readonly requestedScopes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["mcp:read", "mcp:execute", "wallet:read", "session-key:read", "execution:read", "execution:execute", "signature:create", "offline_access"]>>;
|
|
21
|
+
readonly expiresAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
22
|
+
readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
23
|
+
}>>, import("effect/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 | typeof OAuthAuthorizationRequestError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"approveOAuthAuthorizationRequest", "POST", "/oauth/authorization-requests/approve", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
24
|
+
readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationRequestId">;
|
|
25
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
26
|
+
readonly sessionKeyIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">>;
|
|
27
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
28
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
29
|
+
readonly redirectUrl: import("effect/Schema").NonEmptyString;
|
|
30
|
+
}>>, import("effect/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 | typeof OAuthAuthorizationRequestError | typeof OAuthAuthorizationError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"denyOAuthAuthorizationRequest", "POST", "/oauth/authorization-requests/deny", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
31
|
+
readonly requestId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationRequestId">;
|
|
32
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
33
|
+
readonly redirectUrl: import("effect/Schema").NonEmptyString;
|
|
34
|
+
}>>, import("effect/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 | typeof OAuthAuthorizationRequestError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"getOAuthDeviceAuthorization", "GET", "/oauth/device-authorizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
35
|
+
readonly userCode: import("effect/Schema").NonEmptyString;
|
|
36
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
37
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthDeviceAuthorizationId">;
|
|
38
|
+
readonly userCode: import("effect/Schema").NonEmptyString;
|
|
39
|
+
readonly client: import("effect/Schema").Struct<{
|
|
40
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthClientId">;
|
|
41
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
42
|
+
readonly registrationType: import("effect/Schema").Literals<readonly ["metadata-document", "pre-registered", "dynamic"]>;
|
|
43
|
+
readonly clientName: import("effect/Schema").NonEmptyString;
|
|
44
|
+
readonly clientUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
45
|
+
readonly logoUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
46
|
+
}>;
|
|
47
|
+
readonly requestedScopes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["mcp:read", "mcp:execute", "wallet:read", "session-key:read", "execution:read", "execution:execute", "signature:create", "offline_access"]>>;
|
|
48
|
+
readonly resource: import("effect/Schema").NonEmptyString;
|
|
49
|
+
readonly deviceName: import("effect/Schema").NonEmptyString;
|
|
50
|
+
readonly cliVersion: import("effect/Schema").NonEmptyString;
|
|
51
|
+
readonly platform: import("effect/Schema").NonEmptyString;
|
|
52
|
+
readonly expiresAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
53
|
+
}>>, import("effect/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 | typeof OAuthDeviceAuthorizationError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"approveOAuthDeviceAuthorization", "POST", "/oauth/device-authorizations/approve", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
54
|
+
readonly deviceAuthorizationId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthDeviceAuthorizationId">;
|
|
55
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
56
|
+
readonly sessionKeyIds: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">>;
|
|
57
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
58
|
+
readonly status: import("effect/Schema").Literals<readonly ["approved", "denied"]>;
|
|
59
|
+
}>>, import("effect/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 | typeof OAuthDeviceAuthorizationError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"denyOAuthDeviceAuthorization", "POST", "/oauth/device-authorizations/deny", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
60
|
+
readonly deviceAuthorizationId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthDeviceAuthorizationId">;
|
|
61
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
62
|
+
readonly status: import("effect/Schema").Literals<readonly ["approved", "denied"]>;
|
|
63
|
+
}>>, import("effect/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 | typeof OAuthDeviceAuthorizationError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"listMcpAuthorizations", "GET", "/oauth/authorizations", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
64
|
+
readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
65
|
+
readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
66
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
67
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
68
|
+
readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
|
|
69
|
+
readonly type: import("effect/Schema").Literals<readonly ["mcp", "cli"]>;
|
|
70
|
+
readonly client: import("effect/Schema").Struct<{
|
|
71
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthClientId">;
|
|
72
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
73
|
+
readonly registrationType: import("effect/Schema").Literals<readonly ["metadata-document", "pre-registered", "dynamic"]>;
|
|
74
|
+
readonly clientName: import("effect/Schema").NonEmptyString;
|
|
75
|
+
readonly clientUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
76
|
+
readonly logoUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
77
|
+
}>;
|
|
78
|
+
readonly authorizedBy: import("effect/Schema").Struct<{
|
|
79
|
+
readonly organizationMember: import("effect/Schema").Struct<{
|
|
80
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
|
|
81
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
82
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
83
|
+
readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
84
|
+
readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
85
|
+
}>;
|
|
86
|
+
readonly user: import("effect/Schema").Struct<{
|
|
87
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
88
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
89
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
90
|
+
readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
91
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
92
|
+
readonly value: import("effect/Schema").String;
|
|
93
|
+
readonly color: import("effect/Schema").String;
|
|
94
|
+
}>, import("effect/Schema").Struct<{
|
|
95
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
96
|
+
readonly value: import("effect/Schema").String;
|
|
97
|
+
}>, import("effect/Schema").Struct<{
|
|
98
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
99
|
+
readonly value: import("effect/Schema").String;
|
|
100
|
+
}>]>>;
|
|
101
|
+
}>;
|
|
102
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
103
|
+
readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
104
|
+
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">;
|
|
105
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
106
|
+
}>;
|
|
107
|
+
readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
108
|
+
readonly type: import("effect/Schema").Literal<"system">;
|
|
109
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
110
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
111
|
+
readonly name: import("effect/Schema").String;
|
|
112
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
113
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
114
|
+
readonly value: import("effect/Schema").String;
|
|
115
|
+
readonly color: import("effect/Schema").String;
|
|
116
|
+
}>, import("effect/Schema").Struct<{
|
|
117
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
118
|
+
readonly value: import("effect/Schema").String;
|
|
119
|
+
}>, import("effect/Schema").Struct<{
|
|
120
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
121
|
+
readonly value: import("effect/Schema").String;
|
|
122
|
+
}>]>>;
|
|
123
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
124
|
+
}>;
|
|
125
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
126
|
+
readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
|
|
127
|
+
readonly key: import("effect/Schema").String;
|
|
128
|
+
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"]>>;
|
|
129
|
+
}>, import("effect/Schema").Struct<{
|
|
130
|
+
readonly type: import("effect/Schema").Literal<"custom">;
|
|
131
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
132
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
133
|
+
readonly name: import("effect/Schema").String;
|
|
134
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
135
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
136
|
+
readonly value: import("effect/Schema").String;
|
|
137
|
+
readonly color: import("effect/Schema").String;
|
|
138
|
+
}>, import("effect/Schema").Struct<{
|
|
139
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
140
|
+
readonly value: import("effect/Schema").String;
|
|
141
|
+
}>, import("effect/Schema").Struct<{
|
|
142
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
143
|
+
readonly value: import("effect/Schema").String;
|
|
144
|
+
}>]>>;
|
|
145
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
146
|
+
}>;
|
|
147
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
148
|
+
readonly systemRoleId: import("effect/Schema").Null;
|
|
149
|
+
readonly key: import("effect/Schema").String;
|
|
150
|
+
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"]>>;
|
|
151
|
+
}>]>;
|
|
152
|
+
}>;
|
|
153
|
+
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["mcp:read", "mcp:execute", "wallet:read", "session-key:read", "execution:read", "execution:execute", "signature:create", "offline_access"]>>;
|
|
154
|
+
readonly resource: import("effect/Schema").NonEmptyString;
|
|
155
|
+
readonly status: import("effect/Schema").Literals<readonly ["active", "revoked"]>;
|
|
156
|
+
readonly metadata: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
157
|
+
readonly type: import("effect/Schema").Literal<"mcp">;
|
|
158
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
159
|
+
}>, import("effect/Schema").Struct<{
|
|
160
|
+
readonly type: import("effect/Schema").Literal<"cli">;
|
|
161
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
162
|
+
readonly deviceName: import("effect/Schema").NonEmptyString;
|
|
163
|
+
readonly cliVersion: import("effect/Schema").NonEmptyString;
|
|
164
|
+
readonly platform: import("effect/Schema").NonEmptyString;
|
|
165
|
+
}>]>;
|
|
166
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
167
|
+
readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
168
|
+
readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
169
|
+
readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
170
|
+
id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
|
|
171
|
+
organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
172
|
+
walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
|
|
173
|
+
signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
|
|
174
|
+
namespace: import("effect/Schema").Literal<"eip155">;
|
|
175
|
+
metadata: import("effect/Schema").Struct<{
|
|
176
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
177
|
+
readonly name: import("effect/Schema").String;
|
|
178
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
179
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
180
|
+
readonly value: import("effect/Schema").String;
|
|
181
|
+
readonly color: import("effect/Schema").String;
|
|
182
|
+
}>, import("effect/Schema").Struct<{
|
|
183
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
184
|
+
readonly value: import("effect/Schema").String;
|
|
185
|
+
}>, import("effect/Schema").Struct<{
|
|
186
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
187
|
+
readonly value: import("effect/Schema").String;
|
|
188
|
+
}>]>>;
|
|
189
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
190
|
+
}>;
|
|
191
|
+
policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
192
|
+
readonly type: import("effect/Schema").Literal<"evm.contract-access">;
|
|
193
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
194
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
195
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
196
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
197
|
+
}>, import("effect/Schema").Struct<{
|
|
198
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
|
|
199
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
200
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
201
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
202
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
203
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
204
|
+
}>, import("effect/Schema").Struct<{
|
|
205
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
|
|
206
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
207
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
208
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
209
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
210
|
+
}>, import("effect/Schema").Struct<{
|
|
211
|
+
readonly type: import("effect/Schema").Literal<"evm.account-functions">;
|
|
212
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
213
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
214
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
215
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
216
|
+
}>, import("effect/Schema").Struct<{
|
|
217
|
+
readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
|
|
218
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
219
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
220
|
+
readonly allowance: import("effect/Schema").BigIntFromString;
|
|
221
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
222
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
223
|
+
}>, import("effect/Schema").Struct<{
|
|
224
|
+
readonly type: import("effect/Schema").Literal<"evm.time-window">;
|
|
225
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
226
|
+
readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
|
|
227
|
+
readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
|
|
228
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
229
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
230
|
+
}>, import("effect/Schema").Struct<{
|
|
231
|
+
readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
|
|
232
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
233
|
+
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"]>>;
|
|
234
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
235
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
236
|
+
}>, import("effect/Schema").Struct<{
|
|
237
|
+
readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
|
|
238
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
239
|
+
readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
240
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
241
|
+
readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
|
|
242
|
+
readonly maxCost: import("effect/Schema").BigIntFromString;
|
|
243
|
+
}>>;
|
|
244
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
245
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
246
|
+
}>, import("effect/Schema").Struct<{
|
|
247
|
+
readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
|
|
248
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
249
|
+
readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
250
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
251
|
+
readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
|
|
252
|
+
readonly maxAmount: import("effect/Schema").BigIntFromString;
|
|
253
|
+
}>>;
|
|
254
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
255
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
256
|
+
}>, import("effect/Schema").Struct<{
|
|
257
|
+
readonly type: import("effect/Schema").Literal<"evm.signature">;
|
|
258
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
259
|
+
readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
|
|
260
|
+
readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
261
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
262
|
+
readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
263
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
264
|
+
readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
265
|
+
readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
266
|
+
}>>>;
|
|
267
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
268
|
+
readonly appliesTo: import("effect/Schema").Literal<"signature">;
|
|
269
|
+
}>]>>;
|
|
270
|
+
policyHash: import("effect/Schema").String;
|
|
271
|
+
status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
|
|
272
|
+
revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
273
|
+
createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
274
|
+
}>]>>;
|
|
275
|
+
}>>>, import("effect/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<"getMcpAuthorization", "GET", "/oauth/authorizations/:authorizationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
276
|
+
readonly authorizationId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
277
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
278
|
+
readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
279
|
+
readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
280
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
281
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
282
|
+
readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
|
|
283
|
+
readonly type: import("effect/Schema").Literals<readonly ["mcp", "cli"]>;
|
|
284
|
+
readonly client: import("effect/Schema").Struct<{
|
|
285
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthClientId">;
|
|
286
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
287
|
+
readonly registrationType: import("effect/Schema").Literals<readonly ["metadata-document", "pre-registered", "dynamic"]>;
|
|
288
|
+
readonly clientName: import("effect/Schema").NonEmptyString;
|
|
289
|
+
readonly clientUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
290
|
+
readonly logoUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
291
|
+
}>;
|
|
292
|
+
readonly authorizedBy: import("effect/Schema").Struct<{
|
|
293
|
+
readonly organizationMember: import("effect/Schema").Struct<{
|
|
294
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
|
|
295
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
296
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
297
|
+
readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
298
|
+
readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
299
|
+
}>;
|
|
300
|
+
readonly user: import("effect/Schema").Struct<{
|
|
301
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
302
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
303
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
304
|
+
readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
305
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
306
|
+
readonly value: import("effect/Schema").String;
|
|
307
|
+
readonly color: import("effect/Schema").String;
|
|
308
|
+
}>, import("effect/Schema").Struct<{
|
|
309
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
310
|
+
readonly value: import("effect/Schema").String;
|
|
311
|
+
}>, import("effect/Schema").Struct<{
|
|
312
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
313
|
+
readonly value: import("effect/Schema").String;
|
|
314
|
+
}>]>>;
|
|
315
|
+
}>;
|
|
316
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
317
|
+
readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
318
|
+
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">;
|
|
319
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
320
|
+
}>;
|
|
321
|
+
readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
322
|
+
readonly type: import("effect/Schema").Literal<"system">;
|
|
323
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
324
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
325
|
+
readonly name: import("effect/Schema").String;
|
|
326
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
327
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
328
|
+
readonly value: import("effect/Schema").String;
|
|
329
|
+
readonly color: import("effect/Schema").String;
|
|
330
|
+
}>, import("effect/Schema").Struct<{
|
|
331
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
332
|
+
readonly value: import("effect/Schema").String;
|
|
333
|
+
}>, import("effect/Schema").Struct<{
|
|
334
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
335
|
+
readonly value: import("effect/Schema").String;
|
|
336
|
+
}>]>>;
|
|
337
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
338
|
+
}>;
|
|
339
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
340
|
+
readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
|
|
341
|
+
readonly key: import("effect/Schema").String;
|
|
342
|
+
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"]>>;
|
|
343
|
+
}>, import("effect/Schema").Struct<{
|
|
344
|
+
readonly type: import("effect/Schema").Literal<"custom">;
|
|
345
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
346
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
347
|
+
readonly name: import("effect/Schema").String;
|
|
348
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
349
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
350
|
+
readonly value: import("effect/Schema").String;
|
|
351
|
+
readonly color: import("effect/Schema").String;
|
|
352
|
+
}>, import("effect/Schema").Struct<{
|
|
353
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
354
|
+
readonly value: import("effect/Schema").String;
|
|
355
|
+
}>, import("effect/Schema").Struct<{
|
|
356
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
357
|
+
readonly value: import("effect/Schema").String;
|
|
358
|
+
}>]>>;
|
|
359
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
360
|
+
}>;
|
|
361
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
362
|
+
readonly systemRoleId: import("effect/Schema").Null;
|
|
363
|
+
readonly key: import("effect/Schema").String;
|
|
364
|
+
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"]>>;
|
|
365
|
+
}>]>;
|
|
366
|
+
}>;
|
|
367
|
+
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["mcp:read", "mcp:execute", "wallet:read", "session-key:read", "execution:read", "execution:execute", "signature:create", "offline_access"]>>;
|
|
368
|
+
readonly resource: import("effect/Schema").NonEmptyString;
|
|
369
|
+
readonly status: import("effect/Schema").Literals<readonly ["active", "revoked"]>;
|
|
370
|
+
readonly metadata: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
371
|
+
readonly type: import("effect/Schema").Literal<"mcp">;
|
|
372
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
373
|
+
}>, import("effect/Schema").Struct<{
|
|
374
|
+
readonly type: import("effect/Schema").Literal<"cli">;
|
|
375
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
376
|
+
readonly deviceName: import("effect/Schema").NonEmptyString;
|
|
377
|
+
readonly cliVersion: import("effect/Schema").NonEmptyString;
|
|
378
|
+
readonly platform: import("effect/Schema").NonEmptyString;
|
|
379
|
+
}>]>;
|
|
380
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
381
|
+
readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
382
|
+
readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
383
|
+
readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
384
|
+
id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
|
|
385
|
+
organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
386
|
+
walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
|
|
387
|
+
signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
|
|
388
|
+
namespace: import("effect/Schema").Literal<"eip155">;
|
|
389
|
+
metadata: import("effect/Schema").Struct<{
|
|
390
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
391
|
+
readonly name: import("effect/Schema").String;
|
|
392
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
393
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
394
|
+
readonly value: import("effect/Schema").String;
|
|
395
|
+
readonly color: import("effect/Schema").String;
|
|
396
|
+
}>, import("effect/Schema").Struct<{
|
|
397
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
398
|
+
readonly value: import("effect/Schema").String;
|
|
399
|
+
}>, import("effect/Schema").Struct<{
|
|
400
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
401
|
+
readonly value: import("effect/Schema").String;
|
|
402
|
+
}>]>>;
|
|
403
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
404
|
+
}>;
|
|
405
|
+
policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
406
|
+
readonly type: import("effect/Schema").Literal<"evm.contract-access">;
|
|
407
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
408
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
409
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
410
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
411
|
+
}>, import("effect/Schema").Struct<{
|
|
412
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
|
|
413
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
414
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
415
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
416
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
417
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
418
|
+
}>, import("effect/Schema").Struct<{
|
|
419
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
|
|
420
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
421
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
422
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
423
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
424
|
+
}>, import("effect/Schema").Struct<{
|
|
425
|
+
readonly type: import("effect/Schema").Literal<"evm.account-functions">;
|
|
426
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
427
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
428
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
429
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
430
|
+
}>, import("effect/Schema").Struct<{
|
|
431
|
+
readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
|
|
432
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
433
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
434
|
+
readonly allowance: import("effect/Schema").BigIntFromString;
|
|
435
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
436
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
437
|
+
}>, import("effect/Schema").Struct<{
|
|
438
|
+
readonly type: import("effect/Schema").Literal<"evm.time-window">;
|
|
439
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
440
|
+
readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
|
|
441
|
+
readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
|
|
442
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
443
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
444
|
+
}>, import("effect/Schema").Struct<{
|
|
445
|
+
readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
|
|
446
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
447
|
+
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"]>>;
|
|
448
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
449
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
450
|
+
}>, import("effect/Schema").Struct<{
|
|
451
|
+
readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
|
|
452
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
453
|
+
readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
454
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
455
|
+
readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
|
|
456
|
+
readonly maxCost: import("effect/Schema").BigIntFromString;
|
|
457
|
+
}>>;
|
|
458
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
459
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
460
|
+
}>, import("effect/Schema").Struct<{
|
|
461
|
+
readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
|
|
462
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
463
|
+
readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
464
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
465
|
+
readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
|
|
466
|
+
readonly maxAmount: import("effect/Schema").BigIntFromString;
|
|
467
|
+
}>>;
|
|
468
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
469
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
470
|
+
}>, import("effect/Schema").Struct<{
|
|
471
|
+
readonly type: import("effect/Schema").Literal<"evm.signature">;
|
|
472
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
473
|
+
readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
|
|
474
|
+
readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
475
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
476
|
+
readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
477
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
478
|
+
readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
479
|
+
readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
480
|
+
}>>>;
|
|
481
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
482
|
+
readonly appliesTo: import("effect/Schema").Literal<"signature">;
|
|
483
|
+
}>]>>;
|
|
484
|
+
policyHash: import("effect/Schema").String;
|
|
485
|
+
status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
|
|
486
|
+
revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
487
|
+
createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
488
|
+
}>]>>;
|
|
489
|
+
}>>, import("effect/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 | typeof OAuthAuthorizationError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revokeMcpAuthorization", "POST", "/oauth/authorizations/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
490
|
+
readonly authorizationId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
491
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
492
|
+
readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
493
|
+
readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
494
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
495
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
496
|
+
readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
|
|
497
|
+
readonly type: import("effect/Schema").Literals<readonly ["mcp", "cli"]>;
|
|
498
|
+
readonly client: import("effect/Schema").Struct<{
|
|
499
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthClientId">;
|
|
500
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
501
|
+
readonly registrationType: import("effect/Schema").Literals<readonly ["metadata-document", "pre-registered", "dynamic"]>;
|
|
502
|
+
readonly clientName: import("effect/Schema").NonEmptyString;
|
|
503
|
+
readonly clientUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
504
|
+
readonly logoUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
505
|
+
}>;
|
|
506
|
+
readonly authorizedBy: import("effect/Schema").Struct<{
|
|
507
|
+
readonly organizationMember: import("effect/Schema").Struct<{
|
|
508
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
|
|
509
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
510
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
511
|
+
readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
512
|
+
readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
513
|
+
}>;
|
|
514
|
+
readonly user: import("effect/Schema").Struct<{
|
|
515
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
516
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
517
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
518
|
+
readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
519
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
520
|
+
readonly value: import("effect/Schema").String;
|
|
521
|
+
readonly color: import("effect/Schema").String;
|
|
522
|
+
}>, import("effect/Schema").Struct<{
|
|
523
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
524
|
+
readonly value: import("effect/Schema").String;
|
|
525
|
+
}>, import("effect/Schema").Struct<{
|
|
526
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
527
|
+
readonly value: import("effect/Schema").String;
|
|
528
|
+
}>]>>;
|
|
529
|
+
}>;
|
|
530
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
531
|
+
readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
532
|
+
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">;
|
|
533
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
534
|
+
}>;
|
|
535
|
+
readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
536
|
+
readonly type: import("effect/Schema").Literal<"system">;
|
|
537
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
538
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
539
|
+
readonly name: import("effect/Schema").String;
|
|
540
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
541
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
542
|
+
readonly value: import("effect/Schema").String;
|
|
543
|
+
readonly color: import("effect/Schema").String;
|
|
544
|
+
}>, import("effect/Schema").Struct<{
|
|
545
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
546
|
+
readonly value: import("effect/Schema").String;
|
|
547
|
+
}>, import("effect/Schema").Struct<{
|
|
548
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
549
|
+
readonly value: import("effect/Schema").String;
|
|
550
|
+
}>]>>;
|
|
551
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
552
|
+
}>;
|
|
553
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
554
|
+
readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
|
|
555
|
+
readonly key: import("effect/Schema").String;
|
|
556
|
+
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"]>>;
|
|
557
|
+
}>, import("effect/Schema").Struct<{
|
|
558
|
+
readonly type: import("effect/Schema").Literal<"custom">;
|
|
559
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
560
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
561
|
+
readonly name: import("effect/Schema").String;
|
|
562
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
563
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
564
|
+
readonly value: import("effect/Schema").String;
|
|
565
|
+
readonly color: import("effect/Schema").String;
|
|
566
|
+
}>, import("effect/Schema").Struct<{
|
|
567
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
568
|
+
readonly value: import("effect/Schema").String;
|
|
569
|
+
}>, import("effect/Schema").Struct<{
|
|
570
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
571
|
+
readonly value: import("effect/Schema").String;
|
|
572
|
+
}>]>>;
|
|
573
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
574
|
+
}>;
|
|
575
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
576
|
+
readonly systemRoleId: import("effect/Schema").Null;
|
|
577
|
+
readonly key: import("effect/Schema").String;
|
|
578
|
+
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"]>>;
|
|
579
|
+
}>]>;
|
|
580
|
+
}>;
|
|
581
|
+
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["mcp:read", "mcp:execute", "wallet:read", "session-key:read", "execution:read", "execution:execute", "signature:create", "offline_access"]>>;
|
|
582
|
+
readonly resource: import("effect/Schema").NonEmptyString;
|
|
583
|
+
readonly status: import("effect/Schema").Literals<readonly ["active", "revoked"]>;
|
|
584
|
+
readonly metadata: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
585
|
+
readonly type: import("effect/Schema").Literal<"mcp">;
|
|
586
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
587
|
+
}>, import("effect/Schema").Struct<{
|
|
588
|
+
readonly type: import("effect/Schema").Literal<"cli">;
|
|
589
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
590
|
+
readonly deviceName: import("effect/Schema").NonEmptyString;
|
|
591
|
+
readonly cliVersion: import("effect/Schema").NonEmptyString;
|
|
592
|
+
readonly platform: import("effect/Schema").NonEmptyString;
|
|
593
|
+
}>]>;
|
|
594
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
595
|
+
readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
596
|
+
readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
597
|
+
readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
598
|
+
id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
|
|
599
|
+
organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
600
|
+
walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
|
|
601
|
+
signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
|
|
602
|
+
namespace: import("effect/Schema").Literal<"eip155">;
|
|
603
|
+
metadata: import("effect/Schema").Struct<{
|
|
604
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
605
|
+
readonly name: import("effect/Schema").String;
|
|
606
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
607
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
608
|
+
readonly value: import("effect/Schema").String;
|
|
609
|
+
readonly color: import("effect/Schema").String;
|
|
610
|
+
}>, import("effect/Schema").Struct<{
|
|
611
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
612
|
+
readonly value: import("effect/Schema").String;
|
|
613
|
+
}>, import("effect/Schema").Struct<{
|
|
614
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
615
|
+
readonly value: import("effect/Schema").String;
|
|
616
|
+
}>]>>;
|
|
617
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
618
|
+
}>;
|
|
619
|
+
policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
620
|
+
readonly type: import("effect/Schema").Literal<"evm.contract-access">;
|
|
621
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
622
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
623
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
624
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
625
|
+
}>, import("effect/Schema").Struct<{
|
|
626
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
|
|
627
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
628
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
629
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
630
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
631
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
632
|
+
}>, import("effect/Schema").Struct<{
|
|
633
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
|
|
634
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
635
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
636
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
637
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
638
|
+
}>, import("effect/Schema").Struct<{
|
|
639
|
+
readonly type: import("effect/Schema").Literal<"evm.account-functions">;
|
|
640
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
641
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
642
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
643
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
644
|
+
}>, import("effect/Schema").Struct<{
|
|
645
|
+
readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
|
|
646
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
647
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
648
|
+
readonly allowance: import("effect/Schema").BigIntFromString;
|
|
649
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
650
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
651
|
+
}>, import("effect/Schema").Struct<{
|
|
652
|
+
readonly type: import("effect/Schema").Literal<"evm.time-window">;
|
|
653
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
654
|
+
readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
|
|
655
|
+
readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
|
|
656
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
657
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
658
|
+
}>, import("effect/Schema").Struct<{
|
|
659
|
+
readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
|
|
660
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
661
|
+
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"]>>;
|
|
662
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
663
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
664
|
+
}>, import("effect/Schema").Struct<{
|
|
665
|
+
readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
|
|
666
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
667
|
+
readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
668
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
669
|
+
readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
|
|
670
|
+
readonly maxCost: import("effect/Schema").BigIntFromString;
|
|
671
|
+
}>>;
|
|
672
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
673
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
674
|
+
}>, import("effect/Schema").Struct<{
|
|
675
|
+
readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
|
|
676
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
677
|
+
readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
678
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
679
|
+
readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
|
|
680
|
+
readonly maxAmount: import("effect/Schema").BigIntFromString;
|
|
681
|
+
}>>;
|
|
682
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
683
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
684
|
+
}>, import("effect/Schema").Struct<{
|
|
685
|
+
readonly type: import("effect/Schema").Literal<"evm.signature">;
|
|
686
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
687
|
+
readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
|
|
688
|
+
readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
689
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
690
|
+
readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
691
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
692
|
+
readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
693
|
+
readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
694
|
+
}>>>;
|
|
695
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
696
|
+
readonly appliesTo: import("effect/Schema").Literal<"signature">;
|
|
697
|
+
}>]>>;
|
|
698
|
+
policyHash: import("effect/Schema").String;
|
|
699
|
+
status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
|
|
700
|
+
revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
701
|
+
createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
702
|
+
}>]>>;
|
|
703
|
+
}>>, import("effect/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 | typeof OAuthAuthorizationError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"listCliAuthorizations", "GET", "/oauth/cli-authorizations", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
704
|
+
readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
705
|
+
readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
706
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
707
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
708
|
+
readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
|
|
709
|
+
readonly type: import("effect/Schema").Literals<readonly ["mcp", "cli"]>;
|
|
710
|
+
readonly client: import("effect/Schema").Struct<{
|
|
711
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthClientId">;
|
|
712
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
713
|
+
readonly registrationType: import("effect/Schema").Literals<readonly ["metadata-document", "pre-registered", "dynamic"]>;
|
|
714
|
+
readonly clientName: import("effect/Schema").NonEmptyString;
|
|
715
|
+
readonly clientUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
716
|
+
readonly logoUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
717
|
+
}>;
|
|
718
|
+
readonly authorizedBy: import("effect/Schema").Struct<{
|
|
719
|
+
readonly organizationMember: import("effect/Schema").Struct<{
|
|
720
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
|
|
721
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
722
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
723
|
+
readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
724
|
+
readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
725
|
+
}>;
|
|
726
|
+
readonly user: import("effect/Schema").Struct<{
|
|
727
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
728
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
729
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
730
|
+
readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
731
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
732
|
+
readonly value: import("effect/Schema").String;
|
|
733
|
+
readonly color: import("effect/Schema").String;
|
|
734
|
+
}>, import("effect/Schema").Struct<{
|
|
735
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
736
|
+
readonly value: import("effect/Schema").String;
|
|
737
|
+
}>, import("effect/Schema").Struct<{
|
|
738
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
739
|
+
readonly value: import("effect/Schema").String;
|
|
740
|
+
}>]>>;
|
|
741
|
+
}>;
|
|
742
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
743
|
+
readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
744
|
+
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">;
|
|
745
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
746
|
+
}>;
|
|
747
|
+
readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
748
|
+
readonly type: import("effect/Schema").Literal<"system">;
|
|
749
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
750
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
751
|
+
readonly name: import("effect/Schema").String;
|
|
752
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
753
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
754
|
+
readonly value: import("effect/Schema").String;
|
|
755
|
+
readonly color: import("effect/Schema").String;
|
|
756
|
+
}>, import("effect/Schema").Struct<{
|
|
757
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
758
|
+
readonly value: import("effect/Schema").String;
|
|
759
|
+
}>, import("effect/Schema").Struct<{
|
|
760
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
761
|
+
readonly value: import("effect/Schema").String;
|
|
762
|
+
}>]>>;
|
|
763
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
764
|
+
}>;
|
|
765
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
766
|
+
readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
|
|
767
|
+
readonly key: import("effect/Schema").String;
|
|
768
|
+
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"]>>;
|
|
769
|
+
}>, import("effect/Schema").Struct<{
|
|
770
|
+
readonly type: import("effect/Schema").Literal<"custom">;
|
|
771
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
772
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
773
|
+
readonly name: import("effect/Schema").String;
|
|
774
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
775
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
776
|
+
readonly value: import("effect/Schema").String;
|
|
777
|
+
readonly color: import("effect/Schema").String;
|
|
778
|
+
}>, import("effect/Schema").Struct<{
|
|
779
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
780
|
+
readonly value: import("effect/Schema").String;
|
|
781
|
+
}>, import("effect/Schema").Struct<{
|
|
782
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
783
|
+
readonly value: import("effect/Schema").String;
|
|
784
|
+
}>]>>;
|
|
785
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
786
|
+
}>;
|
|
787
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
788
|
+
readonly systemRoleId: import("effect/Schema").Null;
|
|
789
|
+
readonly key: import("effect/Schema").String;
|
|
790
|
+
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"]>>;
|
|
791
|
+
}>]>;
|
|
792
|
+
}>;
|
|
793
|
+
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["mcp:read", "mcp:execute", "wallet:read", "session-key:read", "execution:read", "execution:execute", "signature:create", "offline_access"]>>;
|
|
794
|
+
readonly resource: import("effect/Schema").NonEmptyString;
|
|
795
|
+
readonly status: import("effect/Schema").Literals<readonly ["active", "revoked"]>;
|
|
796
|
+
readonly metadata: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
797
|
+
readonly type: import("effect/Schema").Literal<"mcp">;
|
|
798
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
799
|
+
}>, import("effect/Schema").Struct<{
|
|
800
|
+
readonly type: import("effect/Schema").Literal<"cli">;
|
|
801
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
802
|
+
readonly deviceName: import("effect/Schema").NonEmptyString;
|
|
803
|
+
readonly cliVersion: import("effect/Schema").NonEmptyString;
|
|
804
|
+
readonly platform: import("effect/Schema").NonEmptyString;
|
|
805
|
+
}>]>;
|
|
806
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
807
|
+
readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
808
|
+
readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
809
|
+
readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
810
|
+
id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
|
|
811
|
+
organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
812
|
+
walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
|
|
813
|
+
signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
|
|
814
|
+
namespace: import("effect/Schema").Literal<"eip155">;
|
|
815
|
+
metadata: import("effect/Schema").Struct<{
|
|
816
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
817
|
+
readonly name: import("effect/Schema").String;
|
|
818
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
819
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
820
|
+
readonly value: import("effect/Schema").String;
|
|
821
|
+
readonly color: import("effect/Schema").String;
|
|
822
|
+
}>, import("effect/Schema").Struct<{
|
|
823
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
824
|
+
readonly value: import("effect/Schema").String;
|
|
825
|
+
}>, import("effect/Schema").Struct<{
|
|
826
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
827
|
+
readonly value: import("effect/Schema").String;
|
|
828
|
+
}>]>>;
|
|
829
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
830
|
+
}>;
|
|
831
|
+
policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
832
|
+
readonly type: import("effect/Schema").Literal<"evm.contract-access">;
|
|
833
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
834
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
835
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
836
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
837
|
+
}>, import("effect/Schema").Struct<{
|
|
838
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
|
|
839
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
840
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
841
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
842
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
843
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
844
|
+
}>, import("effect/Schema").Struct<{
|
|
845
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
|
|
846
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
847
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
848
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
849
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
850
|
+
}>, import("effect/Schema").Struct<{
|
|
851
|
+
readonly type: import("effect/Schema").Literal<"evm.account-functions">;
|
|
852
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
853
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
854
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
855
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
856
|
+
}>, import("effect/Schema").Struct<{
|
|
857
|
+
readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
|
|
858
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
859
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
860
|
+
readonly allowance: import("effect/Schema").BigIntFromString;
|
|
861
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
862
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
863
|
+
}>, import("effect/Schema").Struct<{
|
|
864
|
+
readonly type: import("effect/Schema").Literal<"evm.time-window">;
|
|
865
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
866
|
+
readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
|
|
867
|
+
readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
|
|
868
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
869
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
870
|
+
}>, import("effect/Schema").Struct<{
|
|
871
|
+
readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
|
|
872
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
873
|
+
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"]>>;
|
|
874
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
875
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
876
|
+
}>, import("effect/Schema").Struct<{
|
|
877
|
+
readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
|
|
878
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
879
|
+
readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
880
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
881
|
+
readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
|
|
882
|
+
readonly maxCost: import("effect/Schema").BigIntFromString;
|
|
883
|
+
}>>;
|
|
884
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
885
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
886
|
+
}>, import("effect/Schema").Struct<{
|
|
887
|
+
readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
|
|
888
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
889
|
+
readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
890
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
891
|
+
readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
|
|
892
|
+
readonly maxAmount: import("effect/Schema").BigIntFromString;
|
|
893
|
+
}>>;
|
|
894
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
895
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
896
|
+
}>, import("effect/Schema").Struct<{
|
|
897
|
+
readonly type: import("effect/Schema").Literal<"evm.signature">;
|
|
898
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
899
|
+
readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
|
|
900
|
+
readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
901
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
902
|
+
readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
903
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
904
|
+
readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
905
|
+
readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
906
|
+
}>>>;
|
|
907
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
908
|
+
readonly appliesTo: import("effect/Schema").Literal<"signature">;
|
|
909
|
+
}>]>>;
|
|
910
|
+
policyHash: import("effect/Schema").String;
|
|
911
|
+
status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
|
|
912
|
+
revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
913
|
+
createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
914
|
+
}>]>>;
|
|
915
|
+
}>>>, import("effect/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<"getCliAuthorization", "GET", "/oauth/cli-authorizations/:authorizationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
916
|
+
readonly authorizationId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
917
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
918
|
+
readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
919
|
+
readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
920
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
921
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
922
|
+
readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
|
|
923
|
+
readonly type: import("effect/Schema").Literals<readonly ["mcp", "cli"]>;
|
|
924
|
+
readonly client: import("effect/Schema").Struct<{
|
|
925
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthClientId">;
|
|
926
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
927
|
+
readonly registrationType: import("effect/Schema").Literals<readonly ["metadata-document", "pre-registered", "dynamic"]>;
|
|
928
|
+
readonly clientName: import("effect/Schema").NonEmptyString;
|
|
929
|
+
readonly clientUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
930
|
+
readonly logoUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
931
|
+
}>;
|
|
932
|
+
readonly authorizedBy: import("effect/Schema").Struct<{
|
|
933
|
+
readonly organizationMember: import("effect/Schema").Struct<{
|
|
934
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
|
|
935
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
936
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
937
|
+
readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
938
|
+
readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
939
|
+
}>;
|
|
940
|
+
readonly user: import("effect/Schema").Struct<{
|
|
941
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
942
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
943
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
944
|
+
readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
945
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
946
|
+
readonly value: import("effect/Schema").String;
|
|
947
|
+
readonly color: import("effect/Schema").String;
|
|
948
|
+
}>, import("effect/Schema").Struct<{
|
|
949
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
950
|
+
readonly value: import("effect/Schema").String;
|
|
951
|
+
}>, import("effect/Schema").Struct<{
|
|
952
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
953
|
+
readonly value: import("effect/Schema").String;
|
|
954
|
+
}>]>>;
|
|
955
|
+
}>;
|
|
956
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
957
|
+
readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
958
|
+
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">;
|
|
959
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
960
|
+
}>;
|
|
961
|
+
readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
962
|
+
readonly type: import("effect/Schema").Literal<"system">;
|
|
963
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
964
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
965
|
+
readonly name: import("effect/Schema").String;
|
|
966
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
967
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
968
|
+
readonly value: import("effect/Schema").String;
|
|
969
|
+
readonly color: import("effect/Schema").String;
|
|
970
|
+
}>, import("effect/Schema").Struct<{
|
|
971
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
972
|
+
readonly value: import("effect/Schema").String;
|
|
973
|
+
}>, import("effect/Schema").Struct<{
|
|
974
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
975
|
+
readonly value: import("effect/Schema").String;
|
|
976
|
+
}>]>>;
|
|
977
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
978
|
+
}>;
|
|
979
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
980
|
+
readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
|
|
981
|
+
readonly key: import("effect/Schema").String;
|
|
982
|
+
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"]>>;
|
|
983
|
+
}>, import("effect/Schema").Struct<{
|
|
984
|
+
readonly type: import("effect/Schema").Literal<"custom">;
|
|
985
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
986
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
987
|
+
readonly name: import("effect/Schema").String;
|
|
988
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
989
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
990
|
+
readonly value: import("effect/Schema").String;
|
|
991
|
+
readonly color: import("effect/Schema").String;
|
|
992
|
+
}>, import("effect/Schema").Struct<{
|
|
993
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
994
|
+
readonly value: import("effect/Schema").String;
|
|
995
|
+
}>, import("effect/Schema").Struct<{
|
|
996
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
997
|
+
readonly value: import("effect/Schema").String;
|
|
998
|
+
}>]>>;
|
|
999
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1000
|
+
}>;
|
|
1001
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
1002
|
+
readonly systemRoleId: import("effect/Schema").Null;
|
|
1003
|
+
readonly key: import("effect/Schema").String;
|
|
1004
|
+
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"]>>;
|
|
1005
|
+
}>]>;
|
|
1006
|
+
}>;
|
|
1007
|
+
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["mcp:read", "mcp:execute", "wallet:read", "session-key:read", "execution:read", "execution:execute", "signature:create", "offline_access"]>>;
|
|
1008
|
+
readonly resource: import("effect/Schema").NonEmptyString;
|
|
1009
|
+
readonly status: import("effect/Schema").Literals<readonly ["active", "revoked"]>;
|
|
1010
|
+
readonly metadata: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1011
|
+
readonly type: import("effect/Schema").Literal<"mcp">;
|
|
1012
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1013
|
+
}>, import("effect/Schema").Struct<{
|
|
1014
|
+
readonly type: import("effect/Schema").Literal<"cli">;
|
|
1015
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1016
|
+
readonly deviceName: import("effect/Schema").NonEmptyString;
|
|
1017
|
+
readonly cliVersion: import("effect/Schema").NonEmptyString;
|
|
1018
|
+
readonly platform: import("effect/Schema").NonEmptyString;
|
|
1019
|
+
}>]>;
|
|
1020
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1021
|
+
readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1022
|
+
readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1023
|
+
readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1024
|
+
id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
|
|
1025
|
+
organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
1026
|
+
walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
|
|
1027
|
+
signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
|
|
1028
|
+
namespace: import("effect/Schema").Literal<"eip155">;
|
|
1029
|
+
metadata: import("effect/Schema").Struct<{
|
|
1030
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1031
|
+
readonly name: import("effect/Schema").String;
|
|
1032
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1033
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
1034
|
+
readonly value: import("effect/Schema").String;
|
|
1035
|
+
readonly color: import("effect/Schema").String;
|
|
1036
|
+
}>, import("effect/Schema").Struct<{
|
|
1037
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
1038
|
+
readonly value: import("effect/Schema").String;
|
|
1039
|
+
}>, import("effect/Schema").Struct<{
|
|
1040
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
1041
|
+
readonly value: import("effect/Schema").String;
|
|
1042
|
+
}>]>>;
|
|
1043
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1044
|
+
}>;
|
|
1045
|
+
policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1046
|
+
readonly type: import("effect/Schema").Literal<"evm.contract-access">;
|
|
1047
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
1048
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1049
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1050
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1051
|
+
}>, import("effect/Schema").Struct<{
|
|
1052
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
|
|
1053
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
1054
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
1055
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1056
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1057
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1058
|
+
}>, import("effect/Schema").Struct<{
|
|
1059
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
|
|
1060
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
1061
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1062
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1063
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1064
|
+
}>, import("effect/Schema").Struct<{
|
|
1065
|
+
readonly type: import("effect/Schema").Literal<"evm.account-functions">;
|
|
1066
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
1067
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1068
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1069
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1070
|
+
}>, import("effect/Schema").Struct<{
|
|
1071
|
+
readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
|
|
1072
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1073
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
1074
|
+
readonly allowance: import("effect/Schema").BigIntFromString;
|
|
1075
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1076
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1077
|
+
}>, import("effect/Schema").Struct<{
|
|
1078
|
+
readonly type: import("effect/Schema").Literal<"evm.time-window">;
|
|
1079
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1080
|
+
readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
|
|
1081
|
+
readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
|
|
1082
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1083
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
1084
|
+
}>, import("effect/Schema").Struct<{
|
|
1085
|
+
readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
|
|
1086
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1087
|
+
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"]>>;
|
|
1088
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1089
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
1090
|
+
}>, import("effect/Schema").Struct<{
|
|
1091
|
+
readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
|
|
1092
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1093
|
+
readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1094
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
1095
|
+
readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
|
|
1096
|
+
readonly maxCost: import("effect/Schema").BigIntFromString;
|
|
1097
|
+
}>>;
|
|
1098
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1099
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1100
|
+
}>, import("effect/Schema").Struct<{
|
|
1101
|
+
readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
|
|
1102
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1103
|
+
readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1104
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
1105
|
+
readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
|
|
1106
|
+
readonly maxAmount: import("effect/Schema").BigIntFromString;
|
|
1107
|
+
}>>;
|
|
1108
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1109
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1110
|
+
}>, import("effect/Schema").Struct<{
|
|
1111
|
+
readonly type: import("effect/Schema").Literal<"evm.signature">;
|
|
1112
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1113
|
+
readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
|
|
1114
|
+
readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1115
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
1116
|
+
readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
1117
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1118
|
+
readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1119
|
+
readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1120
|
+
}>>>;
|
|
1121
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1122
|
+
readonly appliesTo: import("effect/Schema").Literal<"signature">;
|
|
1123
|
+
}>]>>;
|
|
1124
|
+
policyHash: import("effect/Schema").String;
|
|
1125
|
+
status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
|
|
1126
|
+
revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1127
|
+
createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
1128
|
+
}>]>>;
|
|
1129
|
+
}>>, import("effect/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 | typeof OAuthAuthorizationError>, Authorization, never> | HttpApiEndpoint.HttpApiEndpoint<"revokeCliAuthorization", "POST", "/oauth/cli-authorizations/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1130
|
+
readonly authorizationId: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
1131
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1132
|
+
readonly createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
1133
|
+
readonly updatedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
1134
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthAuthorizationId">;
|
|
1135
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
1136
|
+
readonly actorId: import("effect/Schema").brand<import("effect/Schema").String, "ActorId">;
|
|
1137
|
+
readonly type: import("effect/Schema").Literals<readonly ["mcp", "cli"]>;
|
|
1138
|
+
readonly client: import("effect/Schema").Struct<{
|
|
1139
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OAuthClientId">;
|
|
1140
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
1141
|
+
readonly registrationType: import("effect/Schema").Literals<readonly ["metadata-document", "pre-registered", "dynamic"]>;
|
|
1142
|
+
readonly clientName: import("effect/Schema").NonEmptyString;
|
|
1143
|
+
readonly clientUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1144
|
+
readonly logoUri: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1145
|
+
}>;
|
|
1146
|
+
readonly authorizedBy: import("effect/Schema").Struct<{
|
|
1147
|
+
readonly organizationMember: import("effect/Schema").Struct<{
|
|
1148
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationMemberId">;
|
|
1149
|
+
readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
1150
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
1151
|
+
readonly organizationRoleId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
1152
|
+
readonly joinedAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
1153
|
+
}>;
|
|
1154
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1155
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
1156
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1157
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1158
|
+
readonly image: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1159
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
1160
|
+
readonly value: import("effect/Schema").String;
|
|
1161
|
+
readonly color: import("effect/Schema").String;
|
|
1162
|
+
}>, import("effect/Schema").Struct<{
|
|
1163
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
1164
|
+
readonly value: import("effect/Schema").String;
|
|
1165
|
+
}>, import("effect/Schema").Struct<{
|
|
1166
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
1167
|
+
readonly value: import("effect/Schema").String;
|
|
1168
|
+
}>]>>;
|
|
1169
|
+
}>;
|
|
1170
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
|
|
1171
|
+
readonly lastLoginAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1172
|
+
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">;
|
|
1173
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1174
|
+
}>;
|
|
1175
|
+
readonly organizationRole: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1176
|
+
readonly type: import("effect/Schema").Literal<"system">;
|
|
1177
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
1178
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1179
|
+
readonly name: import("effect/Schema").String;
|
|
1180
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1181
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
1182
|
+
readonly value: import("effect/Schema").String;
|
|
1183
|
+
readonly color: import("effect/Schema").String;
|
|
1184
|
+
}>, import("effect/Schema").Struct<{
|
|
1185
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
1186
|
+
readonly value: import("effect/Schema").String;
|
|
1187
|
+
}>, import("effect/Schema").Struct<{
|
|
1188
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
1189
|
+
readonly value: import("effect/Schema").String;
|
|
1190
|
+
}>]>>;
|
|
1191
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1192
|
+
}>;
|
|
1193
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
1194
|
+
readonly systemRoleId: import("effect/Schema").brand<import("effect/Schema").String, "SystemRoleId">;
|
|
1195
|
+
readonly key: import("effect/Schema").String;
|
|
1196
|
+
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"]>>;
|
|
1197
|
+
}>, import("effect/Schema").Struct<{
|
|
1198
|
+
readonly type: import("effect/Schema").Literal<"custom">;
|
|
1199
|
+
readonly metadata: import("effect/Schema").Struct<{
|
|
1200
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1201
|
+
readonly name: import("effect/Schema").String;
|
|
1202
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1203
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
1204
|
+
readonly value: import("effect/Schema").String;
|
|
1205
|
+
readonly color: import("effect/Schema").String;
|
|
1206
|
+
}>, import("effect/Schema").Struct<{
|
|
1207
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
1208
|
+
readonly value: import("effect/Schema").String;
|
|
1209
|
+
}>, import("effect/Schema").Struct<{
|
|
1210
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
1211
|
+
readonly value: import("effect/Schema").String;
|
|
1212
|
+
}>]>>;
|
|
1213
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1214
|
+
}>;
|
|
1215
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationRoleId">;
|
|
1216
|
+
readonly systemRoleId: import("effect/Schema").Null;
|
|
1217
|
+
readonly key: import("effect/Schema").String;
|
|
1218
|
+
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"]>>;
|
|
1219
|
+
}>]>;
|
|
1220
|
+
}>;
|
|
1221
|
+
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["mcp:read", "mcp:execute", "wallet:read", "session-key:read", "execution:read", "execution:execute", "signature:create", "offline_access"]>>;
|
|
1222
|
+
readonly resource: import("effect/Schema").NonEmptyString;
|
|
1223
|
+
readonly status: import("effect/Schema").Literals<readonly ["active", "revoked"]>;
|
|
1224
|
+
readonly metadata: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1225
|
+
readonly type: import("effect/Schema").Literal<"mcp">;
|
|
1226
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1227
|
+
}>, import("effect/Schema").Struct<{
|
|
1228
|
+
readonly type: import("effect/Schema").Literal<"cli">;
|
|
1229
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1230
|
+
readonly deviceName: import("effect/Schema").NonEmptyString;
|
|
1231
|
+
readonly cliVersion: import("effect/Schema").NonEmptyString;
|
|
1232
|
+
readonly platform: import("effect/Schema").NonEmptyString;
|
|
1233
|
+
}>]>;
|
|
1234
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1235
|
+
readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1236
|
+
readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1237
|
+
readonly sessionKeys: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1238
|
+
id: import("effect/Schema").brand<import("effect/Schema").String, "SessionKeyId">;
|
|
1239
|
+
organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
|
|
1240
|
+
walletId: import("effect/Schema").brand<import("effect/Schema").String, "WalletId">;
|
|
1241
|
+
signingKeyId: import("effect/Schema").brand<import("effect/Schema").String, "SigningKeyId">;
|
|
1242
|
+
namespace: import("effect/Schema").Literal<"eip155">;
|
|
1243
|
+
metadata: import("effect/Schema").Struct<{
|
|
1244
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1245
|
+
readonly name: import("effect/Schema").String;
|
|
1246
|
+
readonly logo: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1247
|
+
readonly type: import("effect/Schema").Literal<"icon">;
|
|
1248
|
+
readonly value: import("effect/Schema").String;
|
|
1249
|
+
readonly color: import("effect/Schema").String;
|
|
1250
|
+
}>, import("effect/Schema").Struct<{
|
|
1251
|
+
readonly type: import("effect/Schema").Literal<"emoji">;
|
|
1252
|
+
readonly value: import("effect/Schema").String;
|
|
1253
|
+
}>, import("effect/Schema").Struct<{
|
|
1254
|
+
readonly type: import("effect/Schema").Literal<"image">;
|
|
1255
|
+
readonly value: import("effect/Schema").String;
|
|
1256
|
+
}>]>>;
|
|
1257
|
+
readonly description: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1258
|
+
}>;
|
|
1259
|
+
policies: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1260
|
+
readonly type: import("effect/Schema").Literal<"evm.contract-access">;
|
|
1261
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
1262
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1263
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1264
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1265
|
+
}>, import("effect/Schema").Struct<{
|
|
1266
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-contract">;
|
|
1267
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
1268
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
1269
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1270
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1271
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1272
|
+
}>, import("effect/Schema").Struct<{
|
|
1273
|
+
readonly type: import("effect/Schema").Literal<"evm.functions-on-all-contracts">;
|
|
1274
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
1275
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1276
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1277
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1278
|
+
}>, import("effect/Schema").Struct<{
|
|
1279
|
+
readonly type: import("effect/Schema").Literal<"evm.account-functions">;
|
|
1280
|
+
readonly functions: import("effect/Schema").$Array<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>>;
|
|
1281
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1282
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1283
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1284
|
+
}>, import("effect/Schema").Struct<{
|
|
1285
|
+
readonly type: import("effect/Schema").Literal<"evm.erc20-token-transfer">;
|
|
1286
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1287
|
+
readonly address: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
1288
|
+
readonly allowance: import("effect/Schema").BigIntFromString;
|
|
1289
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1290
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1291
|
+
}>, import("effect/Schema").Struct<{
|
|
1292
|
+
readonly type: import("effect/Schema").Literal<"evm.time-window">;
|
|
1293
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1294
|
+
readonly startsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromString>;
|
|
1295
|
+
readonly expiresAt: import("effect/Schema").DateTimeUtcFromString;
|
|
1296
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1297
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
1298
|
+
}>, import("effect/Schema").Struct<{
|
|
1299
|
+
readonly type: import("effect/Schema").Literal<"evm.chain-allowlist">;
|
|
1300
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1301
|
+
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"]>>;
|
|
1302
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1303
|
+
readonly appliesTo: import("effect/Schema").Literal<"both">;
|
|
1304
|
+
}>, import("effect/Schema").Struct<{
|
|
1305
|
+
readonly type: import("effect/Schema").Literal<"evm.gas-budget">;
|
|
1306
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1307
|
+
readonly budgets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1308
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
1309
|
+
readonly period: import("effect/Schema").Literals<readonly ["hour", "day", "week", "lifetime"]>;
|
|
1310
|
+
readonly maxCost: import("effect/Schema").BigIntFromString;
|
|
1311
|
+
}>>;
|
|
1312
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1313
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1314
|
+
}>, import("effect/Schema").Struct<{
|
|
1315
|
+
readonly type: import("effect/Schema").Literal<"evm.native-spend-limit">;
|
|
1316
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1317
|
+
readonly limits: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1318
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
1319
|
+
readonly period: import("effect/Schema").Literals<readonly ["operation", "hour", "day", "week", "month", "lifetime"]>;
|
|
1320
|
+
readonly maxAmount: import("effect/Schema").BigIntFromString;
|
|
1321
|
+
}>>;
|
|
1322
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1323
|
+
readonly appliesTo: import("effect/Schema").Literal<"execution">;
|
|
1324
|
+
}>, import("effect/Schema").Struct<{
|
|
1325
|
+
readonly type: import("effect/Schema").Literal<"evm.signature">;
|
|
1326
|
+
readonly version: import("effect/Schema").Literal<1>;
|
|
1327
|
+
readonly allowedTypes: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["message", "typed-data"]>>;
|
|
1328
|
+
readonly typedDataRules: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1329
|
+
readonly chainId: import("effect/Schema").Literals<readonly ["eip155:1", "eip155:10", "eip155:8453", "eip155:42161", "eip155:84532", "eip155:421614", "eip155:11155111", "eip155:11155420"]>;
|
|
1330
|
+
readonly verifyingContract: import("effect/Schema").brand<import("effect/Schema").TemplateLiteral<readonly ["0x", import("effect/Schema").String]>, "EthereumAddress">;
|
|
1331
|
+
readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1332
|
+
readonly version: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1333
|
+
readonly primaryTypes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1334
|
+
}>>>;
|
|
1335
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
1336
|
+
readonly appliesTo: import("effect/Schema").Literal<"signature">;
|
|
1337
|
+
}>]>>;
|
|
1338
|
+
policyHash: import("effect/Schema").String;
|
|
1339
|
+
status: import("effect/Schema").Literals<readonly ["pending", "active", "revoking", "revoked"]>;
|
|
1340
|
+
revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtcFromDate>;
|
|
1341
|
+
createdAt: import("effect/Schema").DateTimeUtcFromDate;
|
|
1342
|
+
}>]>>;
|
|
1343
|
+
}>>, import("effect/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 | typeof OAuthAuthorizationError>, Authorization, never>, false>;
|
|
1344
|
+
declare class OAuthGroup extends OAuthGroup_base {}
|
|
1345
|
+
//#endregion
|
|
1346
|
+
export { OAuthGroup };
|
|
1347
|
+
//# sourceMappingURL=oauth.d.ts.map
|