@roamcode.ai/server 1.2.0 → 1.3.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/container/relay.js +751 -37
- package/dist/index.d.ts +1732 -8
- package/dist/index.js +7632 -1266
- package/dist/relay-start.d.ts +4 -0
- package/dist/relay-start.js +751 -37
- package/dist/start.d.ts +156 -99
- package/dist/start.js +12155 -6614
- package/package.json +2 -2
package/dist/relay-start.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ interface RelayAccountRecord {
|
|
|
15
15
|
updatedAt: number;
|
|
16
16
|
}
|
|
17
17
|
interface RelayAccountFields {
|
|
18
|
+
/** Stable control-plane identity. Omit for the legacy server-generated account flow. */
|
|
19
|
+
id?: string;
|
|
18
20
|
label: string;
|
|
19
21
|
plan?: RelayAccountPlan;
|
|
20
22
|
maxRoutes?: number;
|
|
@@ -47,6 +49,8 @@ interface RelayAccountStore {
|
|
|
47
49
|
/** Verify ownership for recovery without granting a suspended account route access. */
|
|
48
50
|
verifyCredential(credential: string): RelayAccountRecord | undefined;
|
|
49
51
|
authenticate(credential: string): RelayAccountRecord | undefined;
|
|
52
|
+
/** Constant-time comparison for idempotent control-plane provisioning and credential rotation. */
|
|
53
|
+
credentialMatches(id: string, credential: RelayAccountCredentialInput): boolean;
|
|
50
54
|
updateAccount(id: string, input: UpdateRelayAccountInput, expectedRevision: number, now?: number): RelayAccountRecord | undefined;
|
|
51
55
|
rotateCredential(id: string, credential: RelayAccountCredentialInput, expectedRevision: number, now?: number): RelayAccountRecord | undefined;
|
|
52
56
|
close(): void;
|