@modelprofile.com/authswitch 7.0.0 → 8.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/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/authority-contract.d.ts +1 -3
- package/dist_ts/authority-contract.js +1 -1
- package/dist_ts/classes.authoritybroker.js +1 -5
- package/dist_ts/classes.authoritycli.js +2 -2
- package/dist_ts/classes.authoritydaemon.js +4 -9
- package/dist_ts/classes.authoritydatabase.d.ts +5 -26
- package/dist_ts/classes.authoritydatabase.js +49 -129
- package/dist_ts/classes.authoritymodels.d.ts +27 -43
- package/dist_ts/classes.authoritymodels.js +193 -243
- package/dist_ts/classes.authoritypreuse.js +1 -2
- package/dist_ts/classes.authorityregistry.d.ts +2 -17
- package/dist_ts/classes.authorityregistry.js +18 -74
- package/dist_ts/classes.authoritysecrets.d.ts +1 -1
- package/dist_ts/classes.authoritysecrets.js +2 -2
- package/dist_ts/classes.authorityusage.d.ts +3 -3
- package/dist_ts/classes.claudeauthority.js +3 -7
- package/dist_ts/classes.claudenative.d.ts +1 -8
- package/dist_ts/classes.claudenative.js +2 -25
- package/dist_ts/classes.codexmanaged.d.ts +1 -1
- package/dist_ts/plugins.d.ts +7 -7
- package/dist_ts/plugins.js +8 -8
- package/dist_ts/ts_migration/0001_authority_meta.d.ts +13 -3
- package/dist_ts/ts_migration/0001_authority_meta.js +29 -17
- package/dist_ts/ts_migration/0002_remove_backup_records.d.ts +17 -0
- package/dist_ts/ts_migration/0002_remove_backup_records.js +48 -0
- package/dist_ts/ts_migration/index.d.ts +6 -3
- package/dist_ts/ts_migration/index.js +10 -4
- package/package.json +2 -5
- package/readme.md +22 -26
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/authority-contract.ts +1 -3
- package/ts/classes.authoritybroker.ts +0 -4
- package/ts/classes.authoritycli.ts +1 -1
- package/ts/classes.authoritydaemon.ts +3 -8
- package/ts/classes.authoritydatabase.ts +50 -141
- package/ts/classes.authoritymodels.ts +232 -269
- package/ts/classes.authoritypreuse.ts +0 -1
- package/ts/classes.authorityregistry.ts +20 -91
- package/ts/classes.authoritysecrets.ts +1 -1
- package/ts/classes.authorityusage.ts +3 -3
- package/ts/classes.claudeauthority.ts +2 -6
- package/ts/classes.claudenative.ts +1 -32
- package/ts/classes.codexmanaged.ts +1 -1
- package/ts/plugins.ts +7 -7
- package/ts/ts_migration/0001_authority_meta.ts +29 -17
- package/ts/ts_migration/0002_remove_backup_records.ts +49 -0
- package/ts/ts_migration/index.ts +10 -5
- package/dist_ts/authorityrehearsal.child.d.ts +0 -1
- package/dist_ts/authorityrehearsal.child.js +0 -395
- package/dist_ts/classes.authoritybackup.d.ts +0 -134
- package/dist_ts/classes.authoritybackup.js +0 -769
- package/dist_ts/classes.authorityrehearsal.d.ts +0 -127
- package/dist_ts/classes.authorityrehearsal.js +0 -632
- package/ts/authorityrehearsal.child.ts +0 -330
- package/ts/classes.authoritybackup.ts +0 -780
- package/ts/classes.authorityrehearsal.ts +0 -625
|
@@ -3,8 +3,6 @@ import type { TAuthSwitchLoginPrompt } from './authority-contract.js';
|
|
|
3
3
|
import type { IAuthSwitchStoredUsage } from './classes.authorityusage.js';
|
|
4
4
|
export interface IStoredAuthorityMeta {
|
|
5
5
|
id: 'authswitch-authority';
|
|
6
|
-
schemaVersion: 2;
|
|
7
|
-
admission: 'open' | 'closed_restored';
|
|
8
6
|
epoch: string;
|
|
9
7
|
revision: number;
|
|
10
8
|
updateId: string;
|
|
@@ -142,7 +140,6 @@ export interface IStoredAuthorityHandoff {
|
|
|
142
140
|
operationId: string;
|
|
143
141
|
sourceDigest: string;
|
|
144
142
|
verifiedSourceDigest: string | null;
|
|
145
|
-
backupDigest: string | null;
|
|
146
143
|
revision: number;
|
|
147
144
|
statusObservedAt: string;
|
|
148
145
|
updateId: string;
|
|
@@ -157,7 +154,6 @@ export interface IStoredAuthorityMigrationLedger {
|
|
|
157
154
|
status: 'pending_native_owner' | 'prepared' | 'verified' | 'complete' | 'quarantined';
|
|
158
155
|
accountId: string | null;
|
|
159
156
|
grantId: string | null;
|
|
160
|
-
backupDigest: string | null;
|
|
161
157
|
revision: number;
|
|
162
158
|
statusObservedAt: string;
|
|
163
159
|
updateId: string;
|
|
@@ -193,7 +189,7 @@ export interface IStoredAuthorityDeviceOperation {
|
|
|
193
189
|
revision: number;
|
|
194
190
|
updateId: string;
|
|
195
191
|
}
|
|
196
|
-
export type TStoredAuthorityPreuseProblem = 'none' | 'target_unavailable' | 'access_unavailable' | 'catalog_unavailable' | 'account_busy' | 'cancelled' | 'authority_closing' | 'interrupted' | 'request_uncertain'
|
|
192
|
+
export type TStoredAuthorityPreuseProblem = 'none' | 'target_unavailable' | 'access_unavailable' | 'catalog_unavailable' | 'account_busy' | 'cancelled' | 'authority_closing' | 'interrupted' | 'request_uncertain';
|
|
197
193
|
/** One quota-consuming request. The prompt and generated prose never enter persistence. */
|
|
198
194
|
export interface IStoredAuthorityPreuseOperation {
|
|
199
195
|
id: string;
|
|
@@ -260,25 +256,15 @@ export declare const assertStoredAuthorityMigrationLedger: (value: unknown) => a
|
|
|
260
256
|
export declare const assertStoredAuthorityEvent: (value: unknown) => asserts value is IStoredAuthorityEvent;
|
|
261
257
|
export declare const assertStoredAuthorityOperation: (value: unknown) => asserts value is IStoredAuthorityOperation;
|
|
262
258
|
export declare const assertStoredAuthorityOperationDocument: (value: unknown) => asserts value is IStoredAuthorityOperationDocument;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
* evidence and is handled separately: a snapshot captured in `preparing` may have sent after capture.
|
|
266
|
-
*/
|
|
267
|
-
export declare const restoreStoredAuthorityOperation: (operation: IStoredAuthorityOperation, options: {
|
|
268
|
-
restoredAt: string;
|
|
269
|
-
updateId: string;
|
|
270
|
-
}) => IStoredAuthorityOperation;
|
|
271
|
-
export declare class AuthSwitchAuthorityMetaModel extends plugins.smartdata.SmartDataDbDoc<AuthSwitchAuthorityMetaModel, IStoredAuthorityMeta> {
|
|
272
|
-
static exact: plugins.smartdata.TExact<AuthSwitchAuthorityMetaModel>;
|
|
259
|
+
export declare class AuthSwitchAuthorityMetaModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityMetaModel, IStoredAuthorityMeta> {
|
|
260
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityMetaModel>;
|
|
273
261
|
id: 'authswitch-authority';
|
|
274
|
-
schemaVersion: 2;
|
|
275
|
-
admission: IStoredAuthorityMeta['admission'];
|
|
276
262
|
epoch: string;
|
|
277
263
|
revision: number;
|
|
278
264
|
updateId: string;
|
|
279
265
|
}
|
|
280
|
-
export declare class AuthSwitchAuthorityAccountModel extends plugins.
|
|
281
|
-
static exact: plugins.
|
|
266
|
+
export declare class AuthSwitchAuthorityAccountModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityAccountModel, IStoredAuthorityAccount> {
|
|
267
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityAccountModel>;
|
|
282
268
|
id: string;
|
|
283
269
|
providerId: string;
|
|
284
270
|
issuer: string;
|
|
@@ -293,8 +279,8 @@ export declare class AuthSwitchAuthorityAccountModel extends plugins.smartdata.S
|
|
|
293
279
|
statusObservedAt: string;
|
|
294
280
|
updateId: string;
|
|
295
281
|
}
|
|
296
|
-
export declare class AuthSwitchAuthorityGrantModel extends plugins.
|
|
297
|
-
static exact: plugins.
|
|
282
|
+
export declare class AuthSwitchAuthorityGrantModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityGrantModel, IStoredAuthorityGrant> {
|
|
283
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityGrantModel>;
|
|
298
284
|
id: string;
|
|
299
285
|
accountId: string;
|
|
300
286
|
providerId: string;
|
|
@@ -314,8 +300,8 @@ export declare class AuthSwitchAuthorityGrantModel extends plugins.smartdata.Sma
|
|
|
314
300
|
statusObservedAt: string;
|
|
315
301
|
updateId: string;
|
|
316
302
|
}
|
|
317
|
-
export declare class AuthSwitchAuthorityUsageModel extends plugins.
|
|
318
|
-
static exact: plugins.
|
|
303
|
+
export declare class AuthSwitchAuthorityUsageModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityUsageModel, IStoredAuthorityUsage> {
|
|
304
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityUsageModel>;
|
|
319
305
|
id: string;
|
|
320
306
|
accountId: string;
|
|
321
307
|
loginId: string;
|
|
@@ -330,8 +316,8 @@ export declare class AuthSwitchAuthorityUsageModel extends plugins.smartdata.Sma
|
|
|
330
316
|
failures: number;
|
|
331
317
|
problem: IAuthSwitchStoredUsage['problem'];
|
|
332
318
|
}
|
|
333
|
-
export declare class AuthSwitchAuthorityBindingModel extends plugins.
|
|
334
|
-
static exact: plugins.
|
|
319
|
+
export declare class AuthSwitchAuthorityBindingModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityBindingModel, IStoredAuthorityBinding> {
|
|
320
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityBindingModel>;
|
|
335
321
|
id: string;
|
|
336
322
|
accountId: string;
|
|
337
323
|
grantId: string;
|
|
@@ -343,16 +329,16 @@ export declare class AuthSwitchAuthorityBindingModel extends plugins.smartdata.S
|
|
|
343
329
|
capabilityHash: string;
|
|
344
330
|
updateId: string;
|
|
345
331
|
}
|
|
346
|
-
export declare class AuthSwitchAuthorityEnrollmentModel extends plugins.
|
|
347
|
-
static exact: plugins.
|
|
332
|
+
export declare class AuthSwitchAuthorityEnrollmentModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityEnrollmentModel, IStoredAuthorityEnrollment> {
|
|
333
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityEnrollmentModel>;
|
|
348
334
|
id: string;
|
|
349
335
|
accountId: string;
|
|
350
336
|
ciphertext: string;
|
|
351
337
|
revision: number;
|
|
352
338
|
updateId: string;
|
|
353
339
|
}
|
|
354
|
-
export declare class AuthSwitchAuthorityCodexHomeModel extends plugins.
|
|
355
|
-
static exact: plugins.
|
|
340
|
+
export declare class AuthSwitchAuthorityCodexHomeModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityCodexHomeModel, IStoredAuthorityCodexHome> {
|
|
341
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityCodexHomeModel>;
|
|
356
342
|
id: string;
|
|
357
343
|
accountId: string;
|
|
358
344
|
grantId: string;
|
|
@@ -361,8 +347,8 @@ export declare class AuthSwitchAuthorityCodexHomeModel extends plugins.smartdata
|
|
|
361
347
|
createdAt: string;
|
|
362
348
|
updateId: string;
|
|
363
349
|
}
|
|
364
|
-
export declare class AuthSwitchAuthorityClaudeHomeModel extends plugins.
|
|
365
|
-
static exact: plugins.
|
|
350
|
+
export declare class AuthSwitchAuthorityClaudeHomeModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityClaudeHomeModel, IStoredAuthorityClaudeHome> {
|
|
351
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityClaudeHomeModel>;
|
|
366
352
|
id: string;
|
|
367
353
|
activeAccountId: string;
|
|
368
354
|
activeGrantId: string;
|
|
@@ -372,8 +358,8 @@ export declare class AuthSwitchAuthorityClaudeHomeModel extends plugins.smartdat
|
|
|
372
358
|
createdAt: string;
|
|
373
359
|
updateId: string;
|
|
374
360
|
}
|
|
375
|
-
export declare class AuthSwitchAuthorityClaudeHandoffModel extends plugins.
|
|
376
|
-
static exact: plugins.
|
|
361
|
+
export declare class AuthSwitchAuthorityClaudeHandoffModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityClaudeHandoffModel, IStoredAuthorityClaudeHandoff> {
|
|
362
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityClaudeHandoffModel>;
|
|
377
363
|
id: string;
|
|
378
364
|
homeId: string;
|
|
379
365
|
outgoingAccountId: string;
|
|
@@ -395,8 +381,8 @@ export declare class AuthSwitchAuthorityClaudeHandoffModel extends plugins.smart
|
|
|
395
381
|
revision: number;
|
|
396
382
|
updateId: string;
|
|
397
383
|
}
|
|
398
|
-
export declare class AuthSwitchAuthorityHandoffModel extends plugins.
|
|
399
|
-
static exact: plugins.
|
|
384
|
+
export declare class AuthSwitchAuthorityHandoffModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityHandoffModel, IStoredAuthorityHandoff> {
|
|
385
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityHandoffModel>;
|
|
400
386
|
id: string;
|
|
401
387
|
accountId: string;
|
|
402
388
|
grantId: string;
|
|
@@ -406,13 +392,12 @@ export declare class AuthSwitchAuthorityHandoffModel extends plugins.smartdata.S
|
|
|
406
392
|
operationId: string;
|
|
407
393
|
sourceDigest: string;
|
|
408
394
|
verifiedSourceDigest: string | null;
|
|
409
|
-
backupDigest: string | null;
|
|
410
395
|
revision: number;
|
|
411
396
|
statusObservedAt: string;
|
|
412
397
|
updateId: string;
|
|
413
398
|
}
|
|
414
|
-
export declare class AuthSwitchAuthorityMigrationLedgerModel extends plugins.
|
|
415
|
-
static exact: plugins.
|
|
399
|
+
export declare class AuthSwitchAuthorityMigrationLedgerModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityMigrationLedgerModel, IStoredAuthorityMigrationLedger> {
|
|
400
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityMigrationLedgerModel>;
|
|
416
401
|
id: string;
|
|
417
402
|
version: number;
|
|
418
403
|
sourceKind: IStoredAuthorityMigrationLedger['sourceKind'];
|
|
@@ -421,21 +406,20 @@ export declare class AuthSwitchAuthorityMigrationLedgerModel extends plugins.sma
|
|
|
421
406
|
status: IStoredAuthorityMigrationLedger['status'];
|
|
422
407
|
accountId: string | null;
|
|
423
408
|
grantId: string | null;
|
|
424
|
-
backupDigest: string | null;
|
|
425
409
|
revision: number;
|
|
426
410
|
statusObservedAt: string;
|
|
427
411
|
updateId: string;
|
|
428
412
|
}
|
|
429
|
-
export declare class AuthSwitchAuthorityEventModel extends plugins.
|
|
430
|
-
static exact: plugins.
|
|
413
|
+
export declare class AuthSwitchAuthorityEventModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityEventModel, IStoredAuthorityEvent> {
|
|
414
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityEventModel>;
|
|
431
415
|
id: string;
|
|
432
416
|
epoch: string;
|
|
433
417
|
revision: number;
|
|
434
418
|
kind: IStoredAuthorityEvent['kind'];
|
|
435
419
|
accountId: string;
|
|
436
420
|
}
|
|
437
|
-
export declare class AuthSwitchAuthorityOperationModel extends plugins.
|
|
438
|
-
static exact: plugins.
|
|
421
|
+
export declare class AuthSwitchAuthorityOperationModel extends plugins.nosqldb.SmartDataDbDoc<AuthSwitchAuthorityOperationModel, IStoredAuthorityOperationDocument> {
|
|
422
|
+
static exact: plugins.nosqldb.TExact<AuthSwitchAuthorityOperationModel>;
|
|
439
423
|
id: string;
|
|
440
424
|
kind: IStoredAuthorityOperationDocument['kind'];
|
|
441
425
|
purpose: IStoredAuthorityOperation['purpose'];
|