@inkeep/agents-api 0.0.1 → 0.42.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/dist/.well-known/workflow/v1/flow.cjs +43 -106
- package/dist/.well-known/workflow/v1/flow.cjs.debug.json +2 -4
- package/dist/.well-known/workflow/v1/manifest.debug.json +16 -54
- package/dist/.well-known/workflow/v1/step.cjs +406 -1646
- package/dist/.well-known/workflow/v1/step.cjs.debug.json +2 -4
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/workflow/functions/evaluateConversation.d.ts +4 -1
- package/dist/domains/evals/workflow/functions/evaluateConversation.js +2 -1
- package/dist/domains/evals/workflow/functions/runDatasetItem.d.ts +4 -1
- package/dist/domains/evals/workflow/functions/runDatasetItem.js +2 -1
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/routes/agent.js +2 -0
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/triggers.js +37 -5
- package/dist/domains/run/a2a/handlers.js +2 -10
- package/dist/domains/run/a2a/types.d.ts +2 -6
- package/dist/domains/run/agents/generateTaskHandler.js +14 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/handlers/executionHandler.d.ts +3 -1
- package/dist/domains/run/handlers/executionHandler.js +6 -5
- package/dist/domains/run/routes/webhooks.js +24 -5
- package/dist/domains/run/types/xml.d.ts +1 -5
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/factory.d.ts +272 -266
- package/dist/index.d.ts +269 -263
- package/dist/index.js +16 -1
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/dist/templates/v1/phase1/system-prompt.js +1 -1
- package/dist/templates/v1/phase1/thinking-preparation.js +1 -1
- package/dist/templates/v1/phase1/tool.js +1 -1
- package/dist/templates/v1/phase2/data-component.js +1 -1
- package/dist/templates/v1/phase2/data-components.js +1 -1
- package/dist/templates/v1/phase2/system-prompt.js +1 -1
- package/dist/templates/v1/shared/artifact-retrieval-guidance.js +1 -1
- package/dist/templates/v1/shared/artifact.js +1 -1
- package/package.json +21 -22
package/dist/index.d.ts
CHANGED
|
@@ -7,17 +7,17 @@ import { initializeDefaultUser } from "./initialization.js";
|
|
|
7
7
|
import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
|
|
8
8
|
import { SSOProviderConfig, UserAuthConfig, createAgentsApp } from "./factory.js";
|
|
9
9
|
import { Hono } from "hono";
|
|
10
|
-
import * as
|
|
10
|
+
import * as zod205 from "zod";
|
|
11
11
|
import * as hono_types3 from "hono/types";
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
12
|
+
import * as better_auth78 from "better-auth";
|
|
13
|
+
import * as better_auth_plugins69 from "better-auth/plugins";
|
|
14
|
+
import * as _better_auth_sso10 from "@better-auth/sso";
|
|
15
15
|
|
|
16
16
|
//#region src/index.d.ts
|
|
17
|
-
declare const auth:
|
|
17
|
+
declare const auth: better_auth78.Auth<{
|
|
18
18
|
baseURL: string;
|
|
19
19
|
secret: string;
|
|
20
|
-
database: (options:
|
|
20
|
+
database: (options: better_auth78.BetterAuthOptions) => better_auth78.DBAdapter<better_auth78.BetterAuthOptions>;
|
|
21
21
|
emailAndPassword: {
|
|
22
22
|
enabled: true;
|
|
23
23
|
minPasswordLength: number;
|
|
@@ -25,6 +25,12 @@ declare const auth: better_auth0.Auth<{
|
|
|
25
25
|
requireEmailVerification: false;
|
|
26
26
|
autoSignIn: true;
|
|
27
27
|
};
|
|
28
|
+
account: {
|
|
29
|
+
accountLinking: {
|
|
30
|
+
enabled: true;
|
|
31
|
+
trustedProviders: ("google" | "email-password" | "auth0")[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
28
34
|
databaseHooks: {
|
|
29
35
|
session: {
|
|
30
36
|
create: {
|
|
@@ -66,7 +72,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
66
72
|
clientKey?: string | undefined;
|
|
67
73
|
disableIdTokenSignIn?: boolean | undefined;
|
|
68
74
|
verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
|
|
69
|
-
getUserInfo?: ((token:
|
|
75
|
+
getUserInfo?: ((token: better_auth78.OAuth2Tokens) => Promise<{
|
|
70
76
|
user: {
|
|
71
77
|
id: string;
|
|
72
78
|
name?: string;
|
|
@@ -77,8 +83,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
77
83
|
};
|
|
78
84
|
data: any;
|
|
79
85
|
} | null>) | undefined;
|
|
80
|
-
refreshAccessToken?: ((refreshToken: string) => Promise<
|
|
81
|
-
mapProfileToUser?: ((profile:
|
|
86
|
+
refreshAccessToken?: ((refreshToken: string) => Promise<better_auth78.OAuth2Tokens>) | undefined;
|
|
87
|
+
mapProfileToUser?: ((profile: better_auth78.GoogleProfile) => {
|
|
82
88
|
id?: string;
|
|
83
89
|
name?: string;
|
|
84
90
|
email?: string | null;
|
|
@@ -125,15 +131,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
125
131
|
cookies?: {
|
|
126
132
|
[key: string]: {
|
|
127
133
|
name?: string;
|
|
128
|
-
attributes?:
|
|
134
|
+
attributes?: better_auth78.CookieOptions;
|
|
129
135
|
};
|
|
130
136
|
} | undefined;
|
|
131
|
-
defaultCookieAttributes:
|
|
137
|
+
defaultCookieAttributes: better_auth78.CookieOptions;
|
|
132
138
|
cookiePrefix?: string | undefined;
|
|
133
139
|
database?: {
|
|
134
140
|
defaultFindManyLimit?: number;
|
|
135
141
|
useNumberId?: boolean;
|
|
136
|
-
generateId?:
|
|
142
|
+
generateId?: better_auth78.GenerateIdFn | false | "serial" | "uuid";
|
|
137
143
|
} | undefined;
|
|
138
144
|
trustedProxyHeaders?: boolean | undefined;
|
|
139
145
|
backgroundTasks?: {
|
|
@@ -145,31 +151,31 @@ declare const auth: better_auth0.Auth<{
|
|
|
145
151
|
id: "bearer";
|
|
146
152
|
hooks: {
|
|
147
153
|
before: {
|
|
148
|
-
matcher(context:
|
|
149
|
-
handler: (inputContext:
|
|
154
|
+
matcher(context: better_auth78.HookEndpointContext): boolean;
|
|
155
|
+
handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
|
|
150
156
|
context: {
|
|
151
157
|
headers: Headers;
|
|
152
158
|
};
|
|
153
159
|
} | undefined>;
|
|
154
160
|
}[];
|
|
155
161
|
after: {
|
|
156
|
-
matcher(context:
|
|
157
|
-
handler: (inputContext:
|
|
162
|
+
matcher(context: better_auth78.HookEndpointContext): true;
|
|
163
|
+
handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
|
|
158
164
|
}[];
|
|
159
165
|
};
|
|
160
|
-
options:
|
|
166
|
+
options: better_auth_plugins69.BearerOptions | undefined;
|
|
161
167
|
}, {
|
|
162
168
|
id: "sso";
|
|
163
169
|
endpoints: {
|
|
164
|
-
spMetadata: ReturnType<() =>
|
|
170
|
+
spMetadata: ReturnType<() => better_auth78.StrictEndpoint<"/sso/saml2/sp/metadata", {
|
|
165
171
|
method: "GET";
|
|
166
|
-
query:
|
|
167
|
-
providerId:
|
|
168
|
-
format:
|
|
172
|
+
query: zod205.ZodObject<{
|
|
173
|
+
providerId: zod205.ZodString;
|
|
174
|
+
format: zod205.ZodDefault<zod205.ZodEnum<{
|
|
169
175
|
xml: "xml";
|
|
170
176
|
json: "json";
|
|
171
177
|
}>>;
|
|
172
|
-
},
|
|
178
|
+
}, better_auth78.$strip>;
|
|
173
179
|
metadata: {
|
|
174
180
|
openapi: {
|
|
175
181
|
operationId: string;
|
|
@@ -183,86 +189,86 @@ declare const auth: better_auth0.Auth<{
|
|
|
183
189
|
};
|
|
184
190
|
};
|
|
185
191
|
}, Response>>;
|
|
186
|
-
registerSSOProvider:
|
|
192
|
+
registerSSOProvider: better_auth78.StrictEndpoint<"/sso/register", {
|
|
187
193
|
method: "POST";
|
|
188
|
-
body:
|
|
189
|
-
providerId:
|
|
190
|
-
issuer:
|
|
191
|
-
domain:
|
|
192
|
-
oidcConfig:
|
|
193
|
-
clientId:
|
|
194
|
-
clientSecret:
|
|
195
|
-
authorizationEndpoint:
|
|
196
|
-
tokenEndpoint:
|
|
197
|
-
userInfoEndpoint:
|
|
198
|
-
tokenEndpointAuthentication:
|
|
194
|
+
body: zod205.ZodObject<{
|
|
195
|
+
providerId: zod205.ZodString;
|
|
196
|
+
issuer: zod205.ZodString;
|
|
197
|
+
domain: zod205.ZodString;
|
|
198
|
+
oidcConfig: zod205.ZodOptional<zod205.ZodObject<{
|
|
199
|
+
clientId: zod205.ZodString;
|
|
200
|
+
clientSecret: zod205.ZodString;
|
|
201
|
+
authorizationEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
202
|
+
tokenEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
203
|
+
userInfoEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
204
|
+
tokenEndpointAuthentication: zod205.ZodOptional<zod205.ZodEnum<{
|
|
199
205
|
client_secret_post: "client_secret_post";
|
|
200
206
|
client_secret_basic: "client_secret_basic";
|
|
201
207
|
}>>;
|
|
202
|
-
jwksEndpoint:
|
|
203
|
-
discoveryEndpoint:
|
|
204
|
-
skipDiscovery:
|
|
205
|
-
scopes:
|
|
206
|
-
pkce:
|
|
207
|
-
mapping:
|
|
208
|
-
id:
|
|
209
|
-
email:
|
|
210
|
-
emailVerified:
|
|
211
|
-
name:
|
|
212
|
-
image:
|
|
213
|
-
extraFields:
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
samlConfig:
|
|
217
|
-
entryPoint:
|
|
218
|
-
cert:
|
|
219
|
-
callbackUrl:
|
|
220
|
-
audience:
|
|
221
|
-
idpMetadata:
|
|
222
|
-
metadata:
|
|
223
|
-
entityID:
|
|
224
|
-
cert:
|
|
225
|
-
privateKey:
|
|
226
|
-
privateKeyPass:
|
|
227
|
-
isAssertionEncrypted:
|
|
228
|
-
encPrivateKey:
|
|
229
|
-
encPrivateKeyPass:
|
|
230
|
-
singleSignOnService:
|
|
231
|
-
Binding:
|
|
232
|
-
Location:
|
|
233
|
-
},
|
|
234
|
-
},
|
|
235
|
-
spMetadata:
|
|
236
|
-
metadata:
|
|
237
|
-
entityID:
|
|
238
|
-
binding:
|
|
239
|
-
privateKey:
|
|
240
|
-
privateKeyPass:
|
|
241
|
-
isAssertionEncrypted:
|
|
242
|
-
encPrivateKey:
|
|
243
|
-
encPrivateKeyPass:
|
|
244
|
-
},
|
|
245
|
-
wantAssertionsSigned:
|
|
246
|
-
signatureAlgorithm:
|
|
247
|
-
digestAlgorithm:
|
|
248
|
-
identifierFormat:
|
|
249
|
-
privateKey:
|
|
250
|
-
decryptionPvk:
|
|
251
|
-
additionalParams:
|
|
252
|
-
mapping:
|
|
253
|
-
id:
|
|
254
|
-
email:
|
|
255
|
-
emailVerified:
|
|
256
|
-
name:
|
|
257
|
-
firstName:
|
|
258
|
-
lastName:
|
|
259
|
-
extraFields:
|
|
260
|
-
},
|
|
261
|
-
},
|
|
262
|
-
organizationId:
|
|
263
|
-
overrideUserInfo:
|
|
264
|
-
},
|
|
265
|
-
use: ((inputContext:
|
|
208
|
+
jwksEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
209
|
+
discoveryEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
210
|
+
skipDiscovery: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
211
|
+
scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
|
|
212
|
+
pkce: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
|
|
213
|
+
mapping: zod205.ZodOptional<zod205.ZodObject<{
|
|
214
|
+
id: zod205.ZodString;
|
|
215
|
+
email: zod205.ZodString;
|
|
216
|
+
emailVerified: zod205.ZodOptional<zod205.ZodString>;
|
|
217
|
+
name: zod205.ZodString;
|
|
218
|
+
image: zod205.ZodOptional<zod205.ZodString>;
|
|
219
|
+
extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
220
|
+
}, better_auth78.$strip>>;
|
|
221
|
+
}, better_auth78.$strip>>;
|
|
222
|
+
samlConfig: zod205.ZodOptional<zod205.ZodObject<{
|
|
223
|
+
entryPoint: zod205.ZodString;
|
|
224
|
+
cert: zod205.ZodString;
|
|
225
|
+
callbackUrl: zod205.ZodString;
|
|
226
|
+
audience: zod205.ZodOptional<zod205.ZodString>;
|
|
227
|
+
idpMetadata: zod205.ZodOptional<zod205.ZodObject<{
|
|
228
|
+
metadata: zod205.ZodOptional<zod205.ZodString>;
|
|
229
|
+
entityID: zod205.ZodOptional<zod205.ZodString>;
|
|
230
|
+
cert: zod205.ZodOptional<zod205.ZodString>;
|
|
231
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
232
|
+
privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
233
|
+
isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
234
|
+
encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
235
|
+
encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
236
|
+
singleSignOnService: zod205.ZodOptional<zod205.ZodArray<zod205.ZodObject<{
|
|
237
|
+
Binding: zod205.ZodString;
|
|
238
|
+
Location: zod205.ZodString;
|
|
239
|
+
}, better_auth78.$strip>>>;
|
|
240
|
+
}, better_auth78.$strip>>;
|
|
241
|
+
spMetadata: zod205.ZodObject<{
|
|
242
|
+
metadata: zod205.ZodOptional<zod205.ZodString>;
|
|
243
|
+
entityID: zod205.ZodOptional<zod205.ZodString>;
|
|
244
|
+
binding: zod205.ZodOptional<zod205.ZodString>;
|
|
245
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
246
|
+
privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
247
|
+
isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
248
|
+
encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
249
|
+
encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
250
|
+
}, better_auth78.$strip>;
|
|
251
|
+
wantAssertionsSigned: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
252
|
+
signatureAlgorithm: zod205.ZodOptional<zod205.ZodString>;
|
|
253
|
+
digestAlgorithm: zod205.ZodOptional<zod205.ZodString>;
|
|
254
|
+
identifierFormat: zod205.ZodOptional<zod205.ZodString>;
|
|
255
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
256
|
+
decryptionPvk: zod205.ZodOptional<zod205.ZodString>;
|
|
257
|
+
additionalParams: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
258
|
+
mapping: zod205.ZodOptional<zod205.ZodObject<{
|
|
259
|
+
id: zod205.ZodString;
|
|
260
|
+
email: zod205.ZodString;
|
|
261
|
+
emailVerified: zod205.ZodOptional<zod205.ZodString>;
|
|
262
|
+
name: zod205.ZodString;
|
|
263
|
+
firstName: zod205.ZodOptional<zod205.ZodString>;
|
|
264
|
+
lastName: zod205.ZodOptional<zod205.ZodString>;
|
|
265
|
+
extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
266
|
+
}, better_auth78.$strip>>;
|
|
267
|
+
}, better_auth78.$strip>>;
|
|
268
|
+
organizationId: zod205.ZodOptional<zod205.ZodString>;
|
|
269
|
+
overrideUserInfo: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
|
|
270
|
+
}, better_auth78.$strip>;
|
|
271
|
+
use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
|
|
266
272
|
session: {
|
|
267
273
|
session: Record<string, any> & {
|
|
268
274
|
id: string;
|
|
@@ -448,35 +454,35 @@ declare const auth: better_auth0.Auth<{
|
|
|
448
454
|
};
|
|
449
455
|
}, {
|
|
450
456
|
redirectURI: string;
|
|
451
|
-
oidcConfig:
|
|
452
|
-
samlConfig:
|
|
457
|
+
oidcConfig: _better_auth_sso10.OIDCConfig | null;
|
|
458
|
+
samlConfig: _better_auth_sso10.SAMLConfig | null;
|
|
453
459
|
} & Omit<{
|
|
454
460
|
issuer: string;
|
|
455
|
-
oidcConfig?:
|
|
456
|
-
samlConfig?:
|
|
461
|
+
oidcConfig?: _better_auth_sso10.OIDCConfig | undefined;
|
|
462
|
+
samlConfig?: _better_auth_sso10.SAMLConfig | undefined;
|
|
457
463
|
userId: string;
|
|
458
464
|
providerId: string;
|
|
459
465
|
organizationId?: string | undefined;
|
|
460
466
|
domain: string;
|
|
461
467
|
}, "oidcConfig" | "samlConfig">>;
|
|
462
|
-
signInSSO: ReturnType<(options?:
|
|
468
|
+
signInSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sign-in/sso", {
|
|
463
469
|
method: "POST";
|
|
464
|
-
body:
|
|
465
|
-
email:
|
|
466
|
-
organizationSlug:
|
|
467
|
-
providerId:
|
|
468
|
-
domain:
|
|
469
|
-
callbackURL:
|
|
470
|
-
errorCallbackURL:
|
|
471
|
-
newUserCallbackURL:
|
|
472
|
-
scopes:
|
|
473
|
-
loginHint:
|
|
474
|
-
requestSignUp:
|
|
475
|
-
providerType:
|
|
470
|
+
body: zod205.ZodObject<{
|
|
471
|
+
email: zod205.ZodOptional<zod205.ZodString>;
|
|
472
|
+
organizationSlug: zod205.ZodOptional<zod205.ZodString>;
|
|
473
|
+
providerId: zod205.ZodOptional<zod205.ZodString>;
|
|
474
|
+
domain: zod205.ZodOptional<zod205.ZodString>;
|
|
475
|
+
callbackURL: zod205.ZodString;
|
|
476
|
+
errorCallbackURL: zod205.ZodOptional<zod205.ZodString>;
|
|
477
|
+
newUserCallbackURL: zod205.ZodOptional<zod205.ZodString>;
|
|
478
|
+
scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
|
|
479
|
+
loginHint: zod205.ZodOptional<zod205.ZodString>;
|
|
480
|
+
requestSignUp: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
481
|
+
providerType: zod205.ZodOptional<zod205.ZodEnum<{
|
|
476
482
|
saml: "saml";
|
|
477
483
|
oidc: "oidc";
|
|
478
484
|
}>>;
|
|
479
|
-
},
|
|
485
|
+
}, better_auth78.$strip>;
|
|
480
486
|
metadata: {
|
|
481
487
|
openapi: {
|
|
482
488
|
operationId: string;
|
|
@@ -553,14 +559,14 @@ declare const auth: better_auth0.Auth<{
|
|
|
553
559
|
url: string;
|
|
554
560
|
redirect: boolean;
|
|
555
561
|
}>>;
|
|
556
|
-
callbackSSO: ReturnType<(options?:
|
|
562
|
+
callbackSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/callback/:providerId", {
|
|
557
563
|
method: "GET";
|
|
558
|
-
query:
|
|
559
|
-
code:
|
|
560
|
-
state:
|
|
561
|
-
error:
|
|
562
|
-
error_description:
|
|
563
|
-
},
|
|
564
|
+
query: zod205.ZodObject<{
|
|
565
|
+
code: zod205.ZodOptional<zod205.ZodString>;
|
|
566
|
+
state: zod205.ZodString;
|
|
567
|
+
error: zod205.ZodOptional<zod205.ZodString>;
|
|
568
|
+
error_description: zod205.ZodOptional<zod205.ZodString>;
|
|
569
|
+
}, better_auth78.$strip>;
|
|
564
570
|
allowedMediaTypes: string[];
|
|
565
571
|
metadata: {
|
|
566
572
|
openapi: {
|
|
@@ -576,12 +582,12 @@ declare const auth: better_auth0.Auth<{
|
|
|
576
582
|
scope: "server";
|
|
577
583
|
};
|
|
578
584
|
}, never>>;
|
|
579
|
-
callbackSSOSAML: ReturnType<(options?:
|
|
585
|
+
callbackSSOSAML: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/saml2/callback/:providerId", {
|
|
580
586
|
method: "POST";
|
|
581
|
-
body:
|
|
582
|
-
SAMLResponse:
|
|
583
|
-
RelayState:
|
|
584
|
-
},
|
|
587
|
+
body: zod205.ZodObject<{
|
|
588
|
+
SAMLResponse: zod205.ZodString;
|
|
589
|
+
RelayState: zod205.ZodOptional<zod205.ZodString>;
|
|
590
|
+
}, better_auth78.$strip>;
|
|
585
591
|
metadata: {
|
|
586
592
|
allowedMediaTypes: string[];
|
|
587
593
|
openapi: {
|
|
@@ -603,15 +609,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
603
609
|
scope: "server";
|
|
604
610
|
};
|
|
605
611
|
}, never>>;
|
|
606
|
-
acsEndpoint: ReturnType<(options?:
|
|
612
|
+
acsEndpoint: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
|
|
607
613
|
method: "POST";
|
|
608
|
-
params:
|
|
609
|
-
providerId:
|
|
610
|
-
},
|
|
611
|
-
body:
|
|
612
|
-
SAMLResponse:
|
|
613
|
-
RelayState:
|
|
614
|
-
},
|
|
614
|
+
params: zod205.ZodObject<{
|
|
615
|
+
providerId: zod205.ZodOptional<zod205.ZodString>;
|
|
616
|
+
}, better_auth78.$strip>;
|
|
617
|
+
body: zod205.ZodObject<{
|
|
618
|
+
SAMLResponse: zod205.ZodString;
|
|
619
|
+
RelayState: zod205.ZodOptional<zod205.ZodString>;
|
|
620
|
+
}, better_auth78.$strip>;
|
|
615
621
|
metadata: {
|
|
616
622
|
allowedMediaTypes: string[];
|
|
617
623
|
openapi: {
|
|
@@ -628,11 +634,11 @@ declare const auth: better_auth0.Auth<{
|
|
|
628
634
|
};
|
|
629
635
|
}, never>>;
|
|
630
636
|
} & {
|
|
631
|
-
requestDomainVerification: ReturnType<(options:
|
|
637
|
+
requestDomainVerification: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/request-domain-verification", {
|
|
632
638
|
method: "POST";
|
|
633
|
-
body:
|
|
634
|
-
providerId:
|
|
635
|
-
},
|
|
639
|
+
body: zod205.ZodObject<{
|
|
640
|
+
providerId: zod205.ZodString;
|
|
641
|
+
}, better_auth78.$strip>;
|
|
636
642
|
metadata: {
|
|
637
643
|
openapi: {
|
|
638
644
|
summary: string;
|
|
@@ -650,7 +656,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
650
656
|
};
|
|
651
657
|
};
|
|
652
658
|
};
|
|
653
|
-
use: ((inputContext:
|
|
659
|
+
use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
|
|
654
660
|
session: {
|
|
655
661
|
session: Record<string, any> & {
|
|
656
662
|
id: string;
|
|
@@ -676,11 +682,11 @@ declare const auth: better_auth0.Auth<{
|
|
|
676
682
|
}, {
|
|
677
683
|
domainVerificationToken: string;
|
|
678
684
|
}>>;
|
|
679
|
-
verifyDomain: ReturnType<(options:
|
|
685
|
+
verifyDomain: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/verify-domain", {
|
|
680
686
|
method: "POST";
|
|
681
|
-
body:
|
|
682
|
-
providerId:
|
|
683
|
-
},
|
|
687
|
+
body: zod205.ZodObject<{
|
|
688
|
+
providerId: zod205.ZodString;
|
|
689
|
+
}, better_auth78.$strip>;
|
|
684
690
|
metadata: {
|
|
685
691
|
openapi: {
|
|
686
692
|
summary: string;
|
|
@@ -701,7 +707,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
701
707
|
};
|
|
702
708
|
};
|
|
703
709
|
};
|
|
704
|
-
use: ((inputContext:
|
|
710
|
+
use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
|
|
705
711
|
session: {
|
|
706
712
|
session: Record<string, any> & {
|
|
707
713
|
id: string;
|
|
@@ -727,7 +733,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
727
733
|
}, void>>;
|
|
728
734
|
};
|
|
729
735
|
schema: any;
|
|
730
|
-
options:
|
|
736
|
+
options: _better_auth_sso10.SSOOptions & {
|
|
731
737
|
domainVerification?: {
|
|
732
738
|
enabled: true;
|
|
733
739
|
};
|
|
@@ -738,14 +744,14 @@ declare const auth: better_auth0.Auth<{
|
|
|
738
744
|
productionURL: string;
|
|
739
745
|
}>;
|
|
740
746
|
endpoints: {
|
|
741
|
-
oAuthProxy:
|
|
747
|
+
oAuthProxy: better_auth78.StrictEndpoint<"/oauth-proxy-callback", {
|
|
742
748
|
method: "GET";
|
|
743
749
|
operationId: string;
|
|
744
|
-
query:
|
|
745
|
-
callbackURL:
|
|
746
|
-
cookies:
|
|
747
|
-
},
|
|
748
|
-
use: ((inputContext:
|
|
750
|
+
query: zod205.ZodObject<{
|
|
751
|
+
callbackURL: zod205.ZodString;
|
|
752
|
+
cookies: zod205.ZodString;
|
|
753
|
+
}, better_auth78.$strip>;
|
|
754
|
+
use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>)[];
|
|
749
755
|
metadata: {
|
|
750
756
|
openapi: {
|
|
751
757
|
operationId: string;
|
|
@@ -775,40 +781,40 @@ declare const auth: better_auth0.Auth<{
|
|
|
775
781
|
};
|
|
776
782
|
hooks: {
|
|
777
783
|
before: {
|
|
778
|
-
matcher(context:
|
|
779
|
-
handler: (inputContext:
|
|
784
|
+
matcher(context: better_auth78.HookEndpointContext): boolean;
|
|
785
|
+
handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
|
|
780
786
|
}[];
|
|
781
787
|
after: {
|
|
782
|
-
matcher(context:
|
|
783
|
-
handler: (inputContext:
|
|
788
|
+
matcher(context: better_auth78.HookEndpointContext): boolean;
|
|
789
|
+
handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
|
|
784
790
|
}[];
|
|
785
791
|
};
|
|
786
792
|
}, {
|
|
787
793
|
id: "organization";
|
|
788
|
-
endpoints:
|
|
794
|
+
endpoints: better_auth_plugins69.OrganizationEndpoints<{
|
|
789
795
|
allowUserToCreateOrganization: true;
|
|
790
|
-
ac:
|
|
796
|
+
ac: better_auth_plugins69.AccessControl;
|
|
791
797
|
roles: {
|
|
792
798
|
member: {
|
|
793
|
-
authorize<K_1 extends "organization" | "
|
|
794
|
-
actions:
|
|
799
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
800
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
795
801
|
connector: "OR" | "AND";
|
|
796
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
797
|
-
statements:
|
|
802
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
803
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
798
804
|
};
|
|
799
805
|
admin: {
|
|
800
|
-
authorize<K_1 extends "organization" | "
|
|
801
|
-
actions:
|
|
806
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
807
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
802
808
|
connector: "OR" | "AND";
|
|
803
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
804
|
-
statements:
|
|
809
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
810
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
805
811
|
};
|
|
806
812
|
owner: {
|
|
807
|
-
authorize<K_1 extends "organization" | "
|
|
808
|
-
actions:
|
|
813
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
814
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
809
815
|
connector: "OR" | "AND";
|
|
810
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
811
|
-
statements:
|
|
816
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
817
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
812
818
|
};
|
|
813
819
|
};
|
|
814
820
|
membershipLimit: number;
|
|
@@ -818,10 +824,10 @@ declare const auth: better_auth0.Auth<{
|
|
|
818
824
|
id: string;
|
|
819
825
|
role: string;
|
|
820
826
|
email: string;
|
|
821
|
-
organization:
|
|
822
|
-
invitation:
|
|
823
|
-
inviter:
|
|
824
|
-
user:
|
|
827
|
+
organization: better_auth_plugins69.Organization;
|
|
828
|
+
invitation: better_auth_plugins69.Invitation;
|
|
829
|
+
inviter: better_auth_plugins69.Member & {
|
|
830
|
+
user: better_auth78.User;
|
|
825
831
|
};
|
|
826
832
|
}): Promise<void>;
|
|
827
833
|
organizationHooks: {
|
|
@@ -830,28 +836,28 @@ declare const auth: better_auth0.Auth<{
|
|
|
830
836
|
user,
|
|
831
837
|
organization: org
|
|
832
838
|
}: {
|
|
833
|
-
invitation:
|
|
834
|
-
member:
|
|
835
|
-
user:
|
|
836
|
-
organization:
|
|
839
|
+
invitation: better_auth_plugins69.Invitation & Record<string, any>;
|
|
840
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
841
|
+
user: better_auth78.User & Record<string, any>;
|
|
842
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
837
843
|
}) => Promise<void>;
|
|
838
844
|
afterUpdateMemberRole: ({
|
|
839
845
|
member,
|
|
840
846
|
organization: org,
|
|
841
847
|
previousRole
|
|
842
848
|
}: {
|
|
843
|
-
member:
|
|
849
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
844
850
|
previousRole: string;
|
|
845
|
-
user:
|
|
846
|
-
organization:
|
|
851
|
+
user: better_auth78.User & Record<string, any>;
|
|
852
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
847
853
|
}) => Promise<void>;
|
|
848
854
|
afterRemoveMember: ({
|
|
849
855
|
member,
|
|
850
856
|
organization: org
|
|
851
857
|
}: {
|
|
852
|
-
member:
|
|
853
|
-
user:
|
|
854
|
-
organization:
|
|
858
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
859
|
+
user: better_auth78.User & Record<string, any>;
|
|
860
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
855
861
|
}) => Promise<void>;
|
|
856
862
|
};
|
|
857
863
|
}>;
|
|
@@ -982,8 +988,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
982
988
|
id: string;
|
|
983
989
|
organizationId: string;
|
|
984
990
|
email: string;
|
|
985
|
-
role: "
|
|
986
|
-
status:
|
|
991
|
+
role: "member" | "admin" | "owner";
|
|
992
|
+
status: better_auth_plugins69.InvitationStatus;
|
|
987
993
|
inviterId: string;
|
|
988
994
|
expiresAt: Date;
|
|
989
995
|
createdAt: Date;
|
|
@@ -991,7 +997,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
991
997
|
Member: {
|
|
992
998
|
id: string;
|
|
993
999
|
organizationId: string;
|
|
994
|
-
role: "
|
|
1000
|
+
role: "member" | "admin" | "owner";
|
|
995
1001
|
createdAt: Date;
|
|
996
1002
|
userId: string;
|
|
997
1003
|
user: {
|
|
@@ -1007,7 +1013,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
1007
1013
|
members: {
|
|
1008
1014
|
id: string;
|
|
1009
1015
|
organizationId: string;
|
|
1010
|
-
role: "
|
|
1016
|
+
role: "member" | "admin" | "owner";
|
|
1011
1017
|
createdAt: Date;
|
|
1012
1018
|
userId: string;
|
|
1013
1019
|
user: {
|
|
@@ -1021,8 +1027,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
1021
1027
|
id: string;
|
|
1022
1028
|
organizationId: string;
|
|
1023
1029
|
email: string;
|
|
1024
|
-
role: "
|
|
1025
|
-
status:
|
|
1030
|
+
role: "member" | "admin" | "owner";
|
|
1031
|
+
status: better_auth_plugins69.InvitationStatus;
|
|
1026
1032
|
inviterId: string;
|
|
1027
1033
|
expiresAt: Date;
|
|
1028
1034
|
createdAt: Date;
|
|
@@ -1096,28 +1102,28 @@ declare const auth: better_auth0.Auth<{
|
|
|
1096
1102
|
};
|
|
1097
1103
|
options: NoInfer<{
|
|
1098
1104
|
allowUserToCreateOrganization: true;
|
|
1099
|
-
ac:
|
|
1105
|
+
ac: better_auth_plugins69.AccessControl;
|
|
1100
1106
|
roles: {
|
|
1101
1107
|
member: {
|
|
1102
|
-
authorize<K_1 extends "organization" | "
|
|
1103
|
-
actions:
|
|
1108
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
1109
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
1104
1110
|
connector: "OR" | "AND";
|
|
1105
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1106
|
-
statements:
|
|
1111
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1112
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
1107
1113
|
};
|
|
1108
1114
|
admin: {
|
|
1109
|
-
authorize<K_1 extends "organization" | "
|
|
1110
|
-
actions:
|
|
1115
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
1116
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
1111
1117
|
connector: "OR" | "AND";
|
|
1112
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1113
|
-
statements:
|
|
1118
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1119
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
1114
1120
|
};
|
|
1115
1121
|
owner: {
|
|
1116
|
-
authorize<K_1 extends "organization" | "
|
|
1117
|
-
actions:
|
|
1122
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
1123
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
1118
1124
|
connector: "OR" | "AND";
|
|
1119
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1120
|
-
statements:
|
|
1125
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1126
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
1121
1127
|
};
|
|
1122
1128
|
};
|
|
1123
1129
|
membershipLimit: number;
|
|
@@ -1127,10 +1133,10 @@ declare const auth: better_auth0.Auth<{
|
|
|
1127
1133
|
id: string;
|
|
1128
1134
|
role: string;
|
|
1129
1135
|
email: string;
|
|
1130
|
-
organization:
|
|
1131
|
-
invitation:
|
|
1132
|
-
inviter:
|
|
1133
|
-
user:
|
|
1136
|
+
organization: better_auth_plugins69.Organization;
|
|
1137
|
+
invitation: better_auth_plugins69.Invitation;
|
|
1138
|
+
inviter: better_auth_plugins69.Member & {
|
|
1139
|
+
user: better_auth78.User;
|
|
1134
1140
|
};
|
|
1135
1141
|
}): Promise<void>;
|
|
1136
1142
|
organizationHooks: {
|
|
@@ -1139,28 +1145,28 @@ declare const auth: better_auth0.Auth<{
|
|
|
1139
1145
|
user,
|
|
1140
1146
|
organization: org
|
|
1141
1147
|
}: {
|
|
1142
|
-
invitation:
|
|
1143
|
-
member:
|
|
1144
|
-
user:
|
|
1145
|
-
organization:
|
|
1148
|
+
invitation: better_auth_plugins69.Invitation & Record<string, any>;
|
|
1149
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1150
|
+
user: better_auth78.User & Record<string, any>;
|
|
1151
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1146
1152
|
}) => Promise<void>;
|
|
1147
1153
|
afterUpdateMemberRole: ({
|
|
1148
1154
|
member,
|
|
1149
1155
|
organization: org,
|
|
1150
1156
|
previousRole
|
|
1151
1157
|
}: {
|
|
1152
|
-
member:
|
|
1158
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1153
1159
|
previousRole: string;
|
|
1154
|
-
user:
|
|
1155
|
-
organization:
|
|
1160
|
+
user: better_auth78.User & Record<string, any>;
|
|
1161
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1156
1162
|
}) => Promise<void>;
|
|
1157
1163
|
afterRemoveMember: ({
|
|
1158
1164
|
member,
|
|
1159
1165
|
organization: org
|
|
1160
1166
|
}: {
|
|
1161
|
-
member:
|
|
1162
|
-
user:
|
|
1163
|
-
organization:
|
|
1167
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1168
|
+
user: better_auth78.User & Record<string, any>;
|
|
1169
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1164
1170
|
}) => Promise<void>;
|
|
1165
1171
|
};
|
|
1166
1172
|
}>;
|
|
@@ -1209,19 +1215,19 @@ declare const auth: better_auth0.Auth<{
|
|
|
1209
1215
|
};
|
|
1210
1216
|
};
|
|
1211
1217
|
endpoints: {
|
|
1212
|
-
deviceCode:
|
|
1218
|
+
deviceCode: better_auth78.StrictEndpoint<"/device/code", {
|
|
1213
1219
|
method: "POST";
|
|
1214
|
-
body:
|
|
1215
|
-
client_id:
|
|
1216
|
-
scope:
|
|
1217
|
-
},
|
|
1218
|
-
error:
|
|
1219
|
-
error:
|
|
1220
|
+
body: zod205.ZodObject<{
|
|
1221
|
+
client_id: zod205.ZodString;
|
|
1222
|
+
scope: zod205.ZodOptional<zod205.ZodString>;
|
|
1223
|
+
}, better_auth78.$strip>;
|
|
1224
|
+
error: zod205.ZodObject<{
|
|
1225
|
+
error: zod205.ZodEnum<{
|
|
1220
1226
|
invalid_request: "invalid_request";
|
|
1221
1227
|
invalid_client: "invalid_client";
|
|
1222
1228
|
}>;
|
|
1223
|
-
error_description:
|
|
1224
|
-
},
|
|
1229
|
+
error_description: zod205.ZodString;
|
|
1230
|
+
}, better_auth78.$strip>;
|
|
1225
1231
|
metadata: {
|
|
1226
1232
|
openapi: {
|
|
1227
1233
|
description: string;
|
|
@@ -1294,15 +1300,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
1294
1300
|
expires_in: number;
|
|
1295
1301
|
interval: number;
|
|
1296
1302
|
}>;
|
|
1297
|
-
deviceToken:
|
|
1303
|
+
deviceToken: better_auth78.StrictEndpoint<"/device/token", {
|
|
1298
1304
|
method: "POST";
|
|
1299
|
-
body:
|
|
1300
|
-
grant_type:
|
|
1301
|
-
device_code:
|
|
1302
|
-
client_id:
|
|
1303
|
-
},
|
|
1304
|
-
error:
|
|
1305
|
-
error:
|
|
1305
|
+
body: zod205.ZodObject<{
|
|
1306
|
+
grant_type: zod205.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
1307
|
+
device_code: zod205.ZodString;
|
|
1308
|
+
client_id: zod205.ZodString;
|
|
1309
|
+
}, better_auth78.$strip>;
|
|
1310
|
+
error: zod205.ZodObject<{
|
|
1311
|
+
error: zod205.ZodEnum<{
|
|
1306
1312
|
invalid_request: "invalid_request";
|
|
1307
1313
|
authorization_pending: "authorization_pending";
|
|
1308
1314
|
slow_down: "slow_down";
|
|
@@ -1310,8 +1316,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
1310
1316
|
access_denied: "access_denied";
|
|
1311
1317
|
invalid_grant: "invalid_grant";
|
|
1312
1318
|
}>;
|
|
1313
|
-
error_description:
|
|
1314
|
-
},
|
|
1319
|
+
error_description: zod205.ZodString;
|
|
1320
|
+
}, better_auth78.$strip>;
|
|
1315
1321
|
metadata: {
|
|
1316
1322
|
openapi: {
|
|
1317
1323
|
description: string;
|
|
@@ -1362,17 +1368,17 @@ declare const auth: better_auth0.Auth<{
|
|
|
1362
1368
|
expires_in: number;
|
|
1363
1369
|
scope: string;
|
|
1364
1370
|
}>;
|
|
1365
|
-
deviceVerify:
|
|
1371
|
+
deviceVerify: better_auth78.StrictEndpoint<"/device", {
|
|
1366
1372
|
method: "GET";
|
|
1367
|
-
query:
|
|
1368
|
-
user_code:
|
|
1369
|
-
},
|
|
1370
|
-
error:
|
|
1371
|
-
error:
|
|
1373
|
+
query: zod205.ZodObject<{
|
|
1374
|
+
user_code: zod205.ZodString;
|
|
1375
|
+
}, better_auth78.$strip>;
|
|
1376
|
+
error: zod205.ZodObject<{
|
|
1377
|
+
error: zod205.ZodEnum<{
|
|
1372
1378
|
invalid_request: "invalid_request";
|
|
1373
1379
|
}>;
|
|
1374
|
-
error_description:
|
|
1375
|
-
},
|
|
1380
|
+
error_description: zod205.ZodString;
|
|
1381
|
+
}, better_auth78.$strip>;
|
|
1376
1382
|
metadata: {
|
|
1377
1383
|
openapi: {
|
|
1378
1384
|
description: string;
|
|
@@ -1405,19 +1411,19 @@ declare const auth: better_auth0.Auth<{
|
|
|
1405
1411
|
user_code: string;
|
|
1406
1412
|
status: string;
|
|
1407
1413
|
}>;
|
|
1408
|
-
deviceApprove:
|
|
1414
|
+
deviceApprove: better_auth78.StrictEndpoint<"/device/approve", {
|
|
1409
1415
|
method: "POST";
|
|
1410
|
-
body:
|
|
1411
|
-
userCode:
|
|
1412
|
-
},
|
|
1413
|
-
error:
|
|
1414
|
-
error:
|
|
1416
|
+
body: zod205.ZodObject<{
|
|
1417
|
+
userCode: zod205.ZodString;
|
|
1418
|
+
}, better_auth78.$strip>;
|
|
1419
|
+
error: zod205.ZodObject<{
|
|
1420
|
+
error: zod205.ZodEnum<{
|
|
1415
1421
|
invalid_request: "invalid_request";
|
|
1416
1422
|
expired_token: "expired_token";
|
|
1417
1423
|
device_code_already_processed: "device_code_already_processed";
|
|
1418
1424
|
}>;
|
|
1419
|
-
error_description:
|
|
1420
|
-
},
|
|
1425
|
+
error_description: zod205.ZodString;
|
|
1426
|
+
}, better_auth78.$strip>;
|
|
1421
1427
|
requireHeaders: true;
|
|
1422
1428
|
metadata: {
|
|
1423
1429
|
openapi: {
|
|
@@ -1444,18 +1450,18 @@ declare const auth: better_auth0.Auth<{
|
|
|
1444
1450
|
}, {
|
|
1445
1451
|
success: boolean;
|
|
1446
1452
|
}>;
|
|
1447
|
-
deviceDeny:
|
|
1453
|
+
deviceDeny: better_auth78.StrictEndpoint<"/device/deny", {
|
|
1448
1454
|
method: "POST";
|
|
1449
|
-
body:
|
|
1450
|
-
userCode:
|
|
1451
|
-
},
|
|
1452
|
-
error:
|
|
1453
|
-
error:
|
|
1455
|
+
body: zod205.ZodObject<{
|
|
1456
|
+
userCode: zod205.ZodString;
|
|
1457
|
+
}, better_auth78.$strip>;
|
|
1458
|
+
error: zod205.ZodObject<{
|
|
1459
|
+
error: zod205.ZodEnum<{
|
|
1454
1460
|
invalid_request: "invalid_request";
|
|
1455
1461
|
expired_token: "expired_token";
|
|
1456
1462
|
}>;
|
|
1457
|
-
error_description:
|
|
1458
|
-
},
|
|
1463
|
+
error_description: zod205.ZodString;
|
|
1464
|
+
}, better_auth78.$strip>;
|
|
1459
1465
|
metadata: {
|
|
1460
1466
|
openapi: {
|
|
1461
1467
|
description: string;
|
|
@@ -1497,8 +1503,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
1497
1503
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1498
1504
|
};
|
|
1499
1505
|
options: Partial<{
|
|
1500
|
-
expiresIn:
|
|
1501
|
-
interval:
|
|
1506
|
+
expiresIn: better_auth_plugins69.TimeString;
|
|
1507
|
+
interval: better_auth_plugins69.TimeString;
|
|
1502
1508
|
deviceCodeLength: number;
|
|
1503
1509
|
userCodeLength: number;
|
|
1504
1510
|
schema: {
|