@oxy.so/contracts 1.1.1 → 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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/identity.js +3 -2
- package/dist/cjs/identityMove.js +156 -0
- package/dist/cjs/identityProof.js +164 -0
- package/dist/cjs/identityRecovery.js +51 -0
- package/dist/cjs/index.js +75 -19
- package/dist/cjs/inference/catalogue.js +7 -6
- package/dist/cjs/inference/identifiers.js +3 -1
- package/dist/cjs/inference/providerConnection.js +1 -1
- package/dist/cjs/inference/request.js +15 -1
- package/dist/cjs/inference/streamEvents.js +24 -2
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/userResponse.js +82 -1
- package/dist/cjs/username.js +70 -2
- package/dist/cjs/webIdentityCarrier.js +181 -0
- package/dist/cjs/webauthn.js +14 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/identity.js +3 -2
- package/dist/esm/identityMove.js +148 -0
- package/dist/esm/identityProof.js +159 -0
- package/dist/esm/identityRecovery.js +48 -0
- package/dist/esm/index.js +16 -7
- package/dist/esm/inference/catalogue.js +7 -6
- package/dist/esm/inference/identifiers.js +2 -0
- package/dist/esm/inference/providerConnection.js +2 -2
- package/dist/esm/inference/request.js +14 -0
- package/dist/esm/inference/streamEvents.js +24 -2
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/userResponse.js +81 -0
- package/dist/esm/username.js +69 -1
- package/dist/esm/webIdentityCarrier.js +178 -0
- package/dist/esm/webauthn.js +14 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +7 -7
- package/dist/types/agency.d.ts +24 -24
- package/dist/types/browserHub.d.ts +16 -16
- package/dist/types/deviceDirectory.d.ts +28 -28
- package/dist/types/externalIdentity.d.ts +21 -7
- package/dist/types/identity.d.ts +3 -2
- package/dist/types/identityMove.d.ts +185 -0
- package/dist/types/identityProof.d.ts +156 -0
- package/dist/types/identityRecovery.d.ts +246 -0
- package/dist/types/index.d.ts +14 -8
- package/dist/types/inference/catalogue.d.ts +21 -20
- package/dist/types/inference/embeddings.d.ts +12 -12
- package/dist/types/inference/errors.d.ts +4 -4
- package/dist/types/inference/identifiers.d.ts +2 -0
- package/dist/types/inference/inbox.d.ts +6 -6
- package/dist/types/inference/providerConnection.d.ts +40 -40
- package/dist/types/inference/request.d.ts +84 -36
- package/dist/types/inference/streamEvents.d.ts +69 -13
- package/dist/types/inference/usage.d.ts +8 -8
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/keyRotation.d.ts +2 -2
- package/dist/types/oauth.d.ts +30 -30
- package/dist/types/sessionStatus.d.ts +6 -6
- package/dist/types/transparency.d.ts +10 -10
- package/dist/types/userResponse.d.ts +386 -18
- package/dist/types/username.d.ts +25 -2
- package/dist/types/webIdentityCarrier.d.ts +1130 -0
- package/dist/types/webauthn.d.ts +208 -0
- package/package.json +1 -1
- package/dist/cjs/devicePairing.js +0 -138
- package/dist/esm/devicePairing.js +0 -135
- package/dist/types/devicePairing.d.ts +0 -130
package/dist/types/username.d.ts
CHANGED
|
@@ -106,6 +106,29 @@ export declare const USERNAME_MIN_LENGTH = 3;
|
|
|
106
106
|
export declare const USERNAME_MAX_LENGTH = 30;
|
|
107
107
|
/** The 400 / inline-validation copy for every path that rejects a handle. */
|
|
108
108
|
export declare const USERNAME_INVALID_MESSAGE: string;
|
|
109
|
+
/**
|
|
110
|
+
* Exact-match handles nobody may newly claim, regardless of account kind.
|
|
111
|
+
*
|
|
112
|
+
* This is NOT a namespace tightening like the bot suffix — it is a list of
|
|
113
|
+
* names withheld from `users_lower_username_key` before anybody asks for
|
|
114
|
+
* them. Compared against the same normalization the unique index applies
|
|
115
|
+
* (`lower(btrim(username))`), so `Admin`, ` ADMIN ` and `admin` are the one
|
|
116
|
+
* name this list means.
|
|
117
|
+
*
|
|
118
|
+
* `oxy`, `mention`, `homiio`, `clarity`, `faircoin`, `astro` and `mercaria`
|
|
119
|
+
* are deliberately NOT here: each already has an `organization`/`project`
|
|
120
|
+
* row, so the unique index already refuses a second one, and `oxy` is the
|
|
121
|
+
* name `USERNAME_MIN_LENGTH` is pinned against in
|
|
122
|
+
* `__tests__/username.test.ts` — listing it would make
|
|
123
|
+
* `usernameSchema.safeParse('oxy')` fail and falsify that comment. A brand
|
|
124
|
+
* with no account of its own yet (measured 2026-09-18: Alia, Allo, TNP,
|
|
125
|
+
* Kaana, Bloom) has no row to protect it, so it is listed until one exists.
|
|
126
|
+
*/
|
|
127
|
+
export declare const RESERVED_USERNAMES: ReadonlySet<string>;
|
|
128
|
+
/** The 400 / inline-validation copy for a handle on {@link RESERVED_USERNAMES}. */
|
|
129
|
+
export declare const RESERVED_USERNAME_MESSAGE = "This username is reserved and cannot be registered";
|
|
130
|
+
/** The 400 / inline-validation copy for a handle that is only digits. */
|
|
131
|
+
export declare const NUMERIC_USERNAME_MESSAGE = "Username cannot be only numbers";
|
|
109
132
|
/**
|
|
110
133
|
* Alphanumeric runs joined by single separators, as a SOURCE string.
|
|
111
134
|
*
|
|
@@ -136,7 +159,7 @@ export declare const USERNAME_PATTERN_SOURCE = "^[A-Za-z0-9]+(?:[-_][A-Za-z0-9]+
|
|
|
136
159
|
* they never chose. Every write path validates through THIS object; nothing
|
|
137
160
|
* re-implements it.
|
|
138
161
|
*/
|
|
139
|
-
export declare const usernameSchema: z.ZodString
|
|
162
|
+
export declare const usernameSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
140
163
|
/**
|
|
141
164
|
* Whether a candidate handle is storable — the boolean form, for input surfaces
|
|
142
165
|
* that show a message as somebody types rather than throwing.
|
|
@@ -230,7 +253,7 @@ export declare const BOT_USERNAME_INVALID_MESSAGE = "A bot account's username mu
|
|
|
230
253
|
* `community-maestro`, `community-pulse`, `garden-helper`, `luna`, `verity`).
|
|
231
254
|
* They go on loading and resolving; only a NEW handle is held to this.
|
|
232
255
|
*/
|
|
233
|
-
export declare const botUsernameSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
256
|
+
export declare const botUsernameSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
|
|
234
257
|
/**
|
|
235
258
|
* The policy that governs a handle, given the kind of account that will hold it.
|
|
236
259
|
*
|