@absolutejs/auth 0.56.3 → 0.56.4
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/cli/migrate.js.map +1 -1
- package/dist/index.js +31 -1
- package/dist/index.js.map +4 -4
- package/dist/oidc/index.js +11 -1
- package/dist/oidc/index.js.map +3 -3
- package/dist/server.js +31 -1
- package/dist/server.js.map +4 -4
- package/package.json +1 -1
- package/dist/adaptive/config.d.ts +0 -34
- package/dist/adaptive/fingerprint.d.ts +0 -2
- package/dist/adaptive/inMemoryStores.d.ts +0 -3
- package/dist/adaptive/postgresStores.d.ts +0 -245
- package/dist/adaptive/types.d.ts +0 -62
- package/dist/agents/idJag.d.ts +0 -49
- package/dist/agents/inMemoryStores.d.ts +0 -4
- package/dist/agents/oidcAdapter.d.ts +0 -12
- package/dist/agents/postgresStores.d.ts +0 -569
- package/dist/agents/registrationClient.d.ts +0 -50
- package/dist/apikeys/inMemoryStores.d.ts +0 -4
- package/dist/apikeys/postgresStores.d.ts +0 -359
- package/dist/fga/config.d.ts +0 -53
- package/dist/fga/inMemoryStores.d.ts +0 -3
- package/dist/fga/postgresStores.d.ts +0 -116
- package/dist/fga/redisCheckCache.d.ts +0 -11
- package/dist/fga/schema.d.ts +0 -2
- package/dist/fga/types.d.ts +0 -28
- package/dist/migrations/generate.d.ts +0 -2
- package/dist/migrations/index.d.ts +0 -5
- package/dist/migrations/runner.d.ts +0 -13
- package/dist/migrations/types.d.ts +0 -14
- package/dist/oidc/clientIdMetadata.d.ts +0 -32
- package/dist/oidc/inMemoryStores.d.ts +0 -11
- package/dist/oidc/postgresStores.d.ts +0 -1217
- package/dist/organizations/inMemoryOrganizationStore.d.ts +0 -2
- package/dist/organizations/postgresOrganizationStore.d.ts +0 -340
- package/dist/passwordless/inMemoryPasswordlessTokenStore.d.ts +0 -2
- package/dist/passwordless/postgresPasswordlessTokenStore.d.ts +0 -56
- package/dist/portal/inMemorySetupSessionStore.d.ts +0 -2
- package/dist/portal/postgresSetupSessionStore.d.ts +0 -116
- package/dist/roles/inMemoryRoleStore.d.ts +0 -2
- package/dist/roles/postgresRoleStore.d.ts +0 -86
- package/dist/roles/resolver.d.ts +0 -17
- package/dist/scim/postgresScimTokenStore.d.ts +0 -86
- package/dist/sso/inMemorySamlServiceProviderStore.d.ts +0 -2
- package/dist/sso/inMemorySsoConnectionStore.d.ts +0 -2
- package/dist/sso/postgresSamlServiceProviderStore.d.ts +0 -101
- package/dist/sso/postgresSsoConnectionStore.d.ts +0 -116
- package/dist/sso/samlIdpRoutes.d.ts +0 -139
- package/dist/webauthn/inMemoryWebAuthnCredentialStore.d.ts +0 -2
- package/dist/webauthn/postgresWebAuthnCredentialStore.d.ts +0 -146
- package/dist/webhooks/inMemoryStore.d.ts +0 -2
- package/dist/webhooks/postgresStore.d.ts +0 -116
|
@@ -1,569 +0,0 @@
|
|
|
1
|
-
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
-
import type { AgentDelegationStatus, AgentDelegationStore, AgentIdentityRegistrationKind, AgentIdentityRegistrationStatus, AgentIdentityRegistrationStore, AgentRegistrationStatus, AgentRegistrationStore } from './types';
|
|
3
|
-
export declare const agentDelegationsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
-
name: "auth_agent_delegations";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
agent_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
8
|
-
name: string;
|
|
9
|
-
tableName: "auth_agent_delegations";
|
|
10
|
-
dataType: "string";
|
|
11
|
-
data: string;
|
|
12
|
-
driverParam: string;
|
|
13
|
-
notNull: true;
|
|
14
|
-
hasDefault: false;
|
|
15
|
-
isPrimaryKey: false;
|
|
16
|
-
isAutoincrement: false;
|
|
17
|
-
hasRuntimeDefault: false;
|
|
18
|
-
enumValues: undefined;
|
|
19
|
-
identity: undefined;
|
|
20
|
-
generated: undefined;
|
|
21
|
-
}>;
|
|
22
|
-
authorization_details: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Record<string, unknown>[]>, {
|
|
23
|
-
name: string;
|
|
24
|
-
tableName: "auth_agent_delegations";
|
|
25
|
-
dataType: "object json";
|
|
26
|
-
data: Record<string, unknown>[];
|
|
27
|
-
driverParam: unknown;
|
|
28
|
-
notNull: false;
|
|
29
|
-
hasDefault: false;
|
|
30
|
-
isPrimaryKey: false;
|
|
31
|
-
isAutoincrement: false;
|
|
32
|
-
hasRuntimeDefault: false;
|
|
33
|
-
enumValues: undefined;
|
|
34
|
-
identity: undefined;
|
|
35
|
-
generated: undefined;
|
|
36
|
-
}>;
|
|
37
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
38
|
-
name: string;
|
|
39
|
-
tableName: "auth_agent_delegations";
|
|
40
|
-
dataType: "number int53";
|
|
41
|
-
data: number;
|
|
42
|
-
driverParam: string | number;
|
|
43
|
-
notNull: true;
|
|
44
|
-
hasDefault: false;
|
|
45
|
-
isPrimaryKey: false;
|
|
46
|
-
isAutoincrement: false;
|
|
47
|
-
hasRuntimeDefault: false;
|
|
48
|
-
enumValues: undefined;
|
|
49
|
-
identity: undefined;
|
|
50
|
-
generated: undefined;
|
|
51
|
-
}>;
|
|
52
|
-
delegation_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
53
|
-
name: string;
|
|
54
|
-
tableName: "auth_agent_delegations";
|
|
55
|
-
dataType: "string";
|
|
56
|
-
data: string;
|
|
57
|
-
driverParam: string;
|
|
58
|
-
notNull: true;
|
|
59
|
-
hasDefault: false;
|
|
60
|
-
isPrimaryKey: false;
|
|
61
|
-
isAutoincrement: false;
|
|
62
|
-
hasRuntimeDefault: false;
|
|
63
|
-
enumValues: undefined;
|
|
64
|
-
identity: undefined;
|
|
65
|
-
generated: undefined;
|
|
66
|
-
}>;
|
|
67
|
-
expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
68
|
-
name: string;
|
|
69
|
-
tableName: "auth_agent_delegations";
|
|
70
|
-
dataType: "number int53";
|
|
71
|
-
data: number;
|
|
72
|
-
driverParam: string | number;
|
|
73
|
-
notNull: false;
|
|
74
|
-
hasDefault: false;
|
|
75
|
-
isPrimaryKey: false;
|
|
76
|
-
isAutoincrement: false;
|
|
77
|
-
hasRuntimeDefault: false;
|
|
78
|
-
enumValues: undefined;
|
|
79
|
-
identity: undefined;
|
|
80
|
-
generated: undefined;
|
|
81
|
-
}>;
|
|
82
|
-
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
83
|
-
name: string;
|
|
84
|
-
tableName: "auth_agent_delegations";
|
|
85
|
-
dataType: "string";
|
|
86
|
-
data: string;
|
|
87
|
-
driverParam: string;
|
|
88
|
-
notNull: false;
|
|
89
|
-
hasDefault: false;
|
|
90
|
-
isPrimaryKey: false;
|
|
91
|
-
isAutoincrement: false;
|
|
92
|
-
hasRuntimeDefault: false;
|
|
93
|
-
enumValues: undefined;
|
|
94
|
-
identity: undefined;
|
|
95
|
-
generated: undefined;
|
|
96
|
-
}>;
|
|
97
|
-
scopes: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>>>, {
|
|
98
|
-
name: string;
|
|
99
|
-
tableName: "auth_agent_delegations";
|
|
100
|
-
dataType: "object json";
|
|
101
|
-
data: string[];
|
|
102
|
-
driverParam: unknown;
|
|
103
|
-
notNull: true;
|
|
104
|
-
hasDefault: true;
|
|
105
|
-
isPrimaryKey: false;
|
|
106
|
-
isAutoincrement: false;
|
|
107
|
-
hasRuntimeDefault: false;
|
|
108
|
-
enumValues: undefined;
|
|
109
|
-
identity: undefined;
|
|
110
|
-
generated: undefined;
|
|
111
|
-
}>;
|
|
112
|
-
status: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, AgentDelegationStatus>>, {
|
|
113
|
-
name: string;
|
|
114
|
-
tableName: "auth_agent_delegations";
|
|
115
|
-
dataType: "string";
|
|
116
|
-
data: AgentDelegationStatus;
|
|
117
|
-
driverParam: string;
|
|
118
|
-
notNull: true;
|
|
119
|
-
hasDefault: false;
|
|
120
|
-
isPrimaryKey: false;
|
|
121
|
-
isAutoincrement: false;
|
|
122
|
-
hasRuntimeDefault: false;
|
|
123
|
-
enumValues: undefined;
|
|
124
|
-
identity: undefined;
|
|
125
|
-
generated: undefined;
|
|
126
|
-
}>;
|
|
127
|
-
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
128
|
-
name: string;
|
|
129
|
-
tableName: "auth_agent_delegations";
|
|
130
|
-
dataType: "number int53";
|
|
131
|
-
data: number;
|
|
132
|
-
driverParam: string | number;
|
|
133
|
-
notNull: true;
|
|
134
|
-
hasDefault: false;
|
|
135
|
-
isPrimaryKey: false;
|
|
136
|
-
isAutoincrement: false;
|
|
137
|
-
hasRuntimeDefault: false;
|
|
138
|
-
enumValues: undefined;
|
|
139
|
-
identity: undefined;
|
|
140
|
-
generated: undefined;
|
|
141
|
-
}>;
|
|
142
|
-
user_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_delegations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
143
|
-
name: string;
|
|
144
|
-
tableName: "auth_agent_delegations";
|
|
145
|
-
dataType: "string";
|
|
146
|
-
data: string;
|
|
147
|
-
driverParam: string;
|
|
148
|
-
notNull: true;
|
|
149
|
-
hasDefault: false;
|
|
150
|
-
isPrimaryKey: false;
|
|
151
|
-
isAutoincrement: false;
|
|
152
|
-
hasRuntimeDefault: false;
|
|
153
|
-
enumValues: undefined;
|
|
154
|
-
identity: undefined;
|
|
155
|
-
generated: undefined;
|
|
156
|
-
}>;
|
|
157
|
-
};
|
|
158
|
-
dialect: "pg";
|
|
159
|
-
}>;
|
|
160
|
-
export declare const agentIdentityRegistrationsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
161
|
-
name: "auth_agent_identity_registrations";
|
|
162
|
-
schema: undefined;
|
|
163
|
-
columns: {
|
|
164
|
-
agent_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
165
|
-
name: string;
|
|
166
|
-
tableName: "auth_agent_identity_registrations";
|
|
167
|
-
dataType: "string";
|
|
168
|
-
data: string;
|
|
169
|
-
driverParam: string;
|
|
170
|
-
notNull: true;
|
|
171
|
-
hasDefault: false;
|
|
172
|
-
isPrimaryKey: false;
|
|
173
|
-
isAutoincrement: false;
|
|
174
|
-
hasRuntimeDefault: false;
|
|
175
|
-
enumValues: undefined;
|
|
176
|
-
identity: undefined;
|
|
177
|
-
generated: undefined;
|
|
178
|
-
}>;
|
|
179
|
-
claim_attempt: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, import("./types").AgentClaimAttempt | undefined>, {
|
|
180
|
-
name: string;
|
|
181
|
-
tableName: "auth_agent_identity_registrations";
|
|
182
|
-
dataType: "object json";
|
|
183
|
-
data: import("./types").AgentClaimAttempt | undefined;
|
|
184
|
-
driverParam: unknown;
|
|
185
|
-
notNull: false;
|
|
186
|
-
hasDefault: false;
|
|
187
|
-
isPrimaryKey: false;
|
|
188
|
-
isAutoincrement: false;
|
|
189
|
-
hasRuntimeDefault: false;
|
|
190
|
-
enumValues: undefined;
|
|
191
|
-
identity: undefined;
|
|
192
|
-
generated: undefined;
|
|
193
|
-
}>;
|
|
194
|
-
claim_attempt_token_hash: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
195
|
-
name: string;
|
|
196
|
-
tableName: "auth_agent_identity_registrations";
|
|
197
|
-
dataType: "string";
|
|
198
|
-
data: string;
|
|
199
|
-
driverParam: string;
|
|
200
|
-
notNull: false;
|
|
201
|
-
hasDefault: false;
|
|
202
|
-
isPrimaryKey: false;
|
|
203
|
-
isAutoincrement: false;
|
|
204
|
-
hasRuntimeDefault: false;
|
|
205
|
-
enumValues: undefined;
|
|
206
|
-
identity: undefined;
|
|
207
|
-
generated: undefined;
|
|
208
|
-
}>;
|
|
209
|
-
claim_expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
210
|
-
name: string;
|
|
211
|
-
tableName: "auth_agent_identity_registrations";
|
|
212
|
-
dataType: "number int53";
|
|
213
|
-
data: number;
|
|
214
|
-
driverParam: string | number;
|
|
215
|
-
notNull: true;
|
|
216
|
-
hasDefault: false;
|
|
217
|
-
isPrimaryKey: false;
|
|
218
|
-
isAutoincrement: false;
|
|
219
|
-
hasRuntimeDefault: false;
|
|
220
|
-
enumValues: undefined;
|
|
221
|
-
identity: undefined;
|
|
222
|
-
generated: undefined;
|
|
223
|
-
}>;
|
|
224
|
-
claim_token_hash: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
225
|
-
name: string;
|
|
226
|
-
tableName: "auth_agent_identity_registrations";
|
|
227
|
-
dataType: "string";
|
|
228
|
-
data: string;
|
|
229
|
-
driverParam: string;
|
|
230
|
-
notNull: true;
|
|
231
|
-
hasDefault: false;
|
|
232
|
-
isPrimaryKey: false;
|
|
233
|
-
isAutoincrement: false;
|
|
234
|
-
hasRuntimeDefault: false;
|
|
235
|
-
enumValues: undefined;
|
|
236
|
-
identity: undefined;
|
|
237
|
-
generated: undefined;
|
|
238
|
-
}>;
|
|
239
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
240
|
-
name: string;
|
|
241
|
-
tableName: "auth_agent_identity_registrations";
|
|
242
|
-
dataType: "number int53";
|
|
243
|
-
data: number;
|
|
244
|
-
driverParam: string | number;
|
|
245
|
-
notNull: true;
|
|
246
|
-
hasDefault: false;
|
|
247
|
-
isPrimaryKey: false;
|
|
248
|
-
isAutoincrement: false;
|
|
249
|
-
hasRuntimeDefault: false;
|
|
250
|
-
enumValues: undefined;
|
|
251
|
-
identity: undefined;
|
|
252
|
-
generated: undefined;
|
|
253
|
-
}>;
|
|
254
|
-
expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
255
|
-
name: string;
|
|
256
|
-
tableName: "auth_agent_identity_registrations";
|
|
257
|
-
dataType: "number int53";
|
|
258
|
-
data: number;
|
|
259
|
-
driverParam: string | number;
|
|
260
|
-
notNull: true;
|
|
261
|
-
hasDefault: false;
|
|
262
|
-
isPrimaryKey: false;
|
|
263
|
-
isAutoincrement: false;
|
|
264
|
-
hasRuntimeDefault: false;
|
|
265
|
-
enumValues: undefined;
|
|
266
|
-
identity: undefined;
|
|
267
|
-
generated: undefined;
|
|
268
|
-
}>;
|
|
269
|
-
kind: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, AgentIdentityRegistrationKind>>, {
|
|
270
|
-
name: string;
|
|
271
|
-
tableName: "auth_agent_identity_registrations";
|
|
272
|
-
dataType: "string";
|
|
273
|
-
data: AgentIdentityRegistrationKind;
|
|
274
|
-
driverParam: string;
|
|
275
|
-
notNull: true;
|
|
276
|
-
hasDefault: false;
|
|
277
|
-
isPrimaryKey: false;
|
|
278
|
-
isAutoincrement: false;
|
|
279
|
-
hasRuntimeDefault: false;
|
|
280
|
-
enumValues: undefined;
|
|
281
|
-
identity: undefined;
|
|
282
|
-
generated: undefined;
|
|
283
|
-
}>;
|
|
284
|
-
last_polled_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
285
|
-
name: string;
|
|
286
|
-
tableName: "auth_agent_identity_registrations";
|
|
287
|
-
dataType: "number int53";
|
|
288
|
-
data: number;
|
|
289
|
-
driverParam: string | number;
|
|
290
|
-
notNull: false;
|
|
291
|
-
hasDefault: false;
|
|
292
|
-
isPrimaryKey: false;
|
|
293
|
-
isAutoincrement: false;
|
|
294
|
-
hasRuntimeDefault: false;
|
|
295
|
-
enumValues: undefined;
|
|
296
|
-
identity: undefined;
|
|
297
|
-
generated: undefined;
|
|
298
|
-
}>;
|
|
299
|
-
login_hint: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
300
|
-
name: string;
|
|
301
|
-
tableName: "auth_agent_identity_registrations";
|
|
302
|
-
dataType: "string";
|
|
303
|
-
data: string;
|
|
304
|
-
driverParam: string;
|
|
305
|
-
notNull: false;
|
|
306
|
-
hasDefault: false;
|
|
307
|
-
isPrimaryKey: false;
|
|
308
|
-
isAutoincrement: false;
|
|
309
|
-
hasRuntimeDefault: false;
|
|
310
|
-
enumValues: undefined;
|
|
311
|
-
identity: undefined;
|
|
312
|
-
generated: undefined;
|
|
313
|
-
}>;
|
|
314
|
-
registration_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
315
|
-
name: string;
|
|
316
|
-
tableName: "auth_agent_identity_registrations";
|
|
317
|
-
dataType: "string";
|
|
318
|
-
data: string;
|
|
319
|
-
driverParam: string;
|
|
320
|
-
notNull: true;
|
|
321
|
-
hasDefault: false;
|
|
322
|
-
isPrimaryKey: false;
|
|
323
|
-
isAutoincrement: false;
|
|
324
|
-
hasRuntimeDefault: false;
|
|
325
|
-
enumValues: undefined;
|
|
326
|
-
identity: undefined;
|
|
327
|
-
generated: undefined;
|
|
328
|
-
}>;
|
|
329
|
-
status: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, AgentIdentityRegistrationStatus>>, {
|
|
330
|
-
name: string;
|
|
331
|
-
tableName: "auth_agent_identity_registrations";
|
|
332
|
-
dataType: "string";
|
|
333
|
-
data: AgentIdentityRegistrationStatus;
|
|
334
|
-
driverParam: string;
|
|
335
|
-
notNull: true;
|
|
336
|
-
hasDefault: false;
|
|
337
|
-
isPrimaryKey: false;
|
|
338
|
-
isAutoincrement: false;
|
|
339
|
-
hasRuntimeDefault: false;
|
|
340
|
-
enumValues: undefined;
|
|
341
|
-
identity: undefined;
|
|
342
|
-
generated: undefined;
|
|
343
|
-
}>;
|
|
344
|
-
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
345
|
-
name: string;
|
|
346
|
-
tableName: "auth_agent_identity_registrations";
|
|
347
|
-
dataType: "number int53";
|
|
348
|
-
data: number;
|
|
349
|
-
driverParam: string | number;
|
|
350
|
-
notNull: true;
|
|
351
|
-
hasDefault: false;
|
|
352
|
-
isPrimaryKey: false;
|
|
353
|
-
isAutoincrement: false;
|
|
354
|
-
hasRuntimeDefault: false;
|
|
355
|
-
enumValues: undefined;
|
|
356
|
-
identity: undefined;
|
|
357
|
-
generated: undefined;
|
|
358
|
-
}>;
|
|
359
|
-
upstream_client_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
360
|
-
name: string;
|
|
361
|
-
tableName: "auth_agent_identity_registrations";
|
|
362
|
-
dataType: "string";
|
|
363
|
-
data: string;
|
|
364
|
-
driverParam: string;
|
|
365
|
-
notNull: false;
|
|
366
|
-
hasDefault: false;
|
|
367
|
-
isPrimaryKey: false;
|
|
368
|
-
isAutoincrement: false;
|
|
369
|
-
hasRuntimeDefault: false;
|
|
370
|
-
enumValues: undefined;
|
|
371
|
-
identity: undefined;
|
|
372
|
-
generated: undefined;
|
|
373
|
-
}>;
|
|
374
|
-
upstream_issuer: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
375
|
-
name: string;
|
|
376
|
-
tableName: "auth_agent_identity_registrations";
|
|
377
|
-
dataType: "string";
|
|
378
|
-
data: string;
|
|
379
|
-
driverParam: string;
|
|
380
|
-
notNull: false;
|
|
381
|
-
hasDefault: false;
|
|
382
|
-
isPrimaryKey: false;
|
|
383
|
-
isAutoincrement: false;
|
|
384
|
-
hasRuntimeDefault: false;
|
|
385
|
-
enumValues: undefined;
|
|
386
|
-
identity: undefined;
|
|
387
|
-
generated: undefined;
|
|
388
|
-
}>;
|
|
389
|
-
upstream_subject: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
390
|
-
name: string;
|
|
391
|
-
tableName: "auth_agent_identity_registrations";
|
|
392
|
-
dataType: "string";
|
|
393
|
-
data: string;
|
|
394
|
-
driverParam: string;
|
|
395
|
-
notNull: false;
|
|
396
|
-
hasDefault: false;
|
|
397
|
-
isPrimaryKey: false;
|
|
398
|
-
isAutoincrement: false;
|
|
399
|
-
hasRuntimeDefault: false;
|
|
400
|
-
enumValues: undefined;
|
|
401
|
-
identity: undefined;
|
|
402
|
-
generated: undefined;
|
|
403
|
-
}>;
|
|
404
|
-
user_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
405
|
-
name: string;
|
|
406
|
-
tableName: "auth_agent_identity_registrations";
|
|
407
|
-
dataType: "string";
|
|
408
|
-
data: string;
|
|
409
|
-
driverParam: string;
|
|
410
|
-
notNull: false;
|
|
411
|
-
hasDefault: false;
|
|
412
|
-
isPrimaryKey: false;
|
|
413
|
-
isAutoincrement: false;
|
|
414
|
-
hasRuntimeDefault: false;
|
|
415
|
-
enumValues: undefined;
|
|
416
|
-
identity: undefined;
|
|
417
|
-
generated: undefined;
|
|
418
|
-
}>;
|
|
419
|
-
version: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_identity_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>, {
|
|
420
|
-
name: string;
|
|
421
|
-
tableName: "auth_agent_identity_registrations";
|
|
422
|
-
dataType: "number int32";
|
|
423
|
-
data: number;
|
|
424
|
-
driverParam: string | number;
|
|
425
|
-
notNull: true;
|
|
426
|
-
hasDefault: false;
|
|
427
|
-
isPrimaryKey: false;
|
|
428
|
-
isAutoincrement: false;
|
|
429
|
-
hasRuntimeDefault: false;
|
|
430
|
-
enumValues: undefined;
|
|
431
|
-
identity: undefined;
|
|
432
|
-
generated: undefined;
|
|
433
|
-
}>;
|
|
434
|
-
};
|
|
435
|
-
dialect: "pg";
|
|
436
|
-
}>;
|
|
437
|
-
export declare const agentRegistrationsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
438
|
-
name: "auth_agent_registrations";
|
|
439
|
-
schema: undefined;
|
|
440
|
-
columns: {
|
|
441
|
-
agent_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_registrations", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
442
|
-
name: string;
|
|
443
|
-
tableName: "auth_agent_registrations";
|
|
444
|
-
dataType: "string";
|
|
445
|
-
data: string;
|
|
446
|
-
driverParam: string;
|
|
447
|
-
notNull: true;
|
|
448
|
-
hasDefault: false;
|
|
449
|
-
isPrimaryKey: false;
|
|
450
|
-
isAutoincrement: false;
|
|
451
|
-
hasRuntimeDefault: false;
|
|
452
|
-
enumValues: undefined;
|
|
453
|
-
identity: undefined;
|
|
454
|
-
generated: undefined;
|
|
455
|
-
}>;
|
|
456
|
-
allowed_scopes: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_registrations", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>>>, {
|
|
457
|
-
name: string;
|
|
458
|
-
tableName: "auth_agent_registrations";
|
|
459
|
-
dataType: "object json";
|
|
460
|
-
data: string[];
|
|
461
|
-
driverParam: unknown;
|
|
462
|
-
notNull: true;
|
|
463
|
-
hasDefault: true;
|
|
464
|
-
isPrimaryKey: false;
|
|
465
|
-
isAutoincrement: false;
|
|
466
|
-
hasRuntimeDefault: false;
|
|
467
|
-
enumValues: undefined;
|
|
468
|
-
identity: undefined;
|
|
469
|
-
generated: undefined;
|
|
470
|
-
}>;
|
|
471
|
-
client_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_registrations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
472
|
-
name: string;
|
|
473
|
-
tableName: "auth_agent_registrations";
|
|
474
|
-
dataType: "string";
|
|
475
|
-
data: string;
|
|
476
|
-
driverParam: string;
|
|
477
|
-
notNull: false;
|
|
478
|
-
hasDefault: false;
|
|
479
|
-
isPrimaryKey: false;
|
|
480
|
-
isAutoincrement: false;
|
|
481
|
-
hasRuntimeDefault: false;
|
|
482
|
-
enumValues: undefined;
|
|
483
|
-
identity: undefined;
|
|
484
|
-
generated: undefined;
|
|
485
|
-
}>;
|
|
486
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
487
|
-
name: string;
|
|
488
|
-
tableName: "auth_agent_registrations";
|
|
489
|
-
dataType: "number int53";
|
|
490
|
-
data: number;
|
|
491
|
-
driverParam: string | number;
|
|
492
|
-
notNull: true;
|
|
493
|
-
hasDefault: false;
|
|
494
|
-
isPrimaryKey: false;
|
|
495
|
-
isAutoincrement: false;
|
|
496
|
-
hasRuntimeDefault: false;
|
|
497
|
-
enumValues: undefined;
|
|
498
|
-
identity: undefined;
|
|
499
|
-
generated: undefined;
|
|
500
|
-
}>;
|
|
501
|
-
metadata: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_registrations", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Record<string, unknown>>, {
|
|
502
|
-
name: string;
|
|
503
|
-
tableName: "auth_agent_registrations";
|
|
504
|
-
dataType: "object json";
|
|
505
|
-
data: Record<string, unknown>;
|
|
506
|
-
driverParam: unknown;
|
|
507
|
-
notNull: false;
|
|
508
|
-
hasDefault: false;
|
|
509
|
-
isPrimaryKey: false;
|
|
510
|
-
isAutoincrement: false;
|
|
511
|
-
hasRuntimeDefault: false;
|
|
512
|
-
enumValues: undefined;
|
|
513
|
-
identity: undefined;
|
|
514
|
-
generated: undefined;
|
|
515
|
-
}>;
|
|
516
|
-
name: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
517
|
-
name: string;
|
|
518
|
-
tableName: "auth_agent_registrations";
|
|
519
|
-
dataType: "string";
|
|
520
|
-
data: string;
|
|
521
|
-
driverParam: string;
|
|
522
|
-
notNull: true;
|
|
523
|
-
hasDefault: false;
|
|
524
|
-
isPrimaryKey: false;
|
|
525
|
-
isAutoincrement: false;
|
|
526
|
-
hasRuntimeDefault: false;
|
|
527
|
-
enumValues: undefined;
|
|
528
|
-
identity: undefined;
|
|
529
|
-
generated: undefined;
|
|
530
|
-
}>;
|
|
531
|
-
status: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, AgentRegistrationStatus>>, {
|
|
532
|
-
name: string;
|
|
533
|
-
tableName: "auth_agent_registrations";
|
|
534
|
-
dataType: "string";
|
|
535
|
-
data: AgentRegistrationStatus;
|
|
536
|
-
driverParam: string;
|
|
537
|
-
notNull: true;
|
|
538
|
-
hasDefault: false;
|
|
539
|
-
isPrimaryKey: false;
|
|
540
|
-
isAutoincrement: false;
|
|
541
|
-
hasRuntimeDefault: false;
|
|
542
|
-
enumValues: undefined;
|
|
543
|
-
identity: undefined;
|
|
544
|
-
generated: undefined;
|
|
545
|
-
}>;
|
|
546
|
-
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_agent_registrations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
547
|
-
name: string;
|
|
548
|
-
tableName: "auth_agent_registrations";
|
|
549
|
-
dataType: "number int53";
|
|
550
|
-
data: number;
|
|
551
|
-
driverParam: string | number;
|
|
552
|
-
notNull: true;
|
|
553
|
-
hasDefault: false;
|
|
554
|
-
isPrimaryKey: false;
|
|
555
|
-
isAutoincrement: false;
|
|
556
|
-
hasRuntimeDefault: false;
|
|
557
|
-
enumValues: undefined;
|
|
558
|
-
identity: undefined;
|
|
559
|
-
generated: undefined;
|
|
560
|
-
}>;
|
|
561
|
-
};
|
|
562
|
-
dialect: "pg";
|
|
563
|
-
}>;
|
|
564
|
-
export declare const createNeonAgentDelegationStore: (databaseUrl: string) => AgentDelegationStore;
|
|
565
|
-
export declare const createNeonAgentIdentityRegistrationStore: (databaseUrl: string) => AgentIdentityRegistrationStore;
|
|
566
|
-
export declare const createNeonAgentRegistrationStore: (databaseUrl: string) => AgentRegistrationStore;
|
|
567
|
-
export declare const createPostgresAgentDelegationStore: <DB extends AnyPgDatabase>(db: DB) => AgentDelegationStore;
|
|
568
|
-
export declare const createPostgresAgentIdentityRegistrationStore: <DB extends AnyPgDatabase>(db: DB) => AgentIdentityRegistrationStore;
|
|
569
|
-
export declare const createPostgresAgentRegistrationStore: <DB extends AnyPgDatabase>(db: DB) => AgentRegistrationStore;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
type JsonObject = Record<string, unknown>;
|
|
2
|
-
export type DiscoveredAgentRegistration = {
|
|
3
|
-
agentAuth: {
|
|
4
|
-
claimEndpoint: string;
|
|
5
|
-
identityAssertionTypes: string[];
|
|
6
|
-
identityEndpoint: string;
|
|
7
|
-
identityTypes: string[];
|
|
8
|
-
skill: string;
|
|
9
|
-
};
|
|
10
|
-
authorizationServer: string;
|
|
11
|
-
resource: string;
|
|
12
|
-
resourceMetadataUrl: string;
|
|
13
|
-
scopes: string[];
|
|
14
|
-
tokenEndpoint: string;
|
|
15
|
-
};
|
|
16
|
-
export type AgentRegistrationClientOptions = {
|
|
17
|
-
allowInsecureLocalhost?: boolean;
|
|
18
|
-
maxResponseBytes?: number;
|
|
19
|
-
request?: typeof fetch;
|
|
20
|
-
};
|
|
21
|
-
/** Discovers agent registration using RFC 9728 followed by RFC 8414. Network
|
|
22
|
-
* policy is injected through `request`; redirects are rejected by default. */
|
|
23
|
-
export declare const createAgentRegistrationClient: (discovery: DiscoveredAgentRegistration, options?: AgentRegistrationClientOptions) => {
|
|
24
|
-
beginAnonymous: () => Promise<{
|
|
25
|
-
body: JsonObject;
|
|
26
|
-
response: Response;
|
|
27
|
-
}>;
|
|
28
|
-
beginServiceAuth: (loginHint: string) => Promise<{
|
|
29
|
-
body: JsonObject;
|
|
30
|
-
response: Response;
|
|
31
|
-
}>;
|
|
32
|
-
beginVerified: (assertion: string) => Promise<{
|
|
33
|
-
body: JsonObject;
|
|
34
|
-
response: Response;
|
|
35
|
-
}>;
|
|
36
|
-
claim: (claimToken: string, email: string) => Promise<{
|
|
37
|
-
body: JsonObject;
|
|
38
|
-
response: Response;
|
|
39
|
-
}>;
|
|
40
|
-
exchangeAssertion: (assertion: string) => Promise<{
|
|
41
|
-
body: JsonObject;
|
|
42
|
-
response: Response;
|
|
43
|
-
}>;
|
|
44
|
-
pollClaim: (claimToken: string) => Promise<{
|
|
45
|
-
body: JsonObject;
|
|
46
|
-
response: Response;
|
|
47
|
-
}>;
|
|
48
|
-
};
|
|
49
|
-
export declare const discoverAgentRegistration: (resource: string, options?: AgentRegistrationClientOptions) => Promise<DiscoveredAgentRegistration>;
|
|
50
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AccessTokenStore, ApiClientStore, ApiKeyStore } from './types';
|
|
2
|
-
export declare const createInMemoryAccessTokenStore: () => AccessTokenStore;
|
|
3
|
-
export declare const createInMemoryApiClientStore: () => ApiClientStore;
|
|
4
|
-
export declare const createInMemoryApiKeyStore: () => ApiKeyStore;
|