@oxyhq/contracts 0.25.0 → 0.27.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/NOTICE +10 -9
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/accountGraph.js +4 -3
- package/dist/cjs/browserHub.js +215 -0
- package/dist/cjs/deviceDirectory.js +189 -0
- package/dist/cjs/index.js +172 -2
- package/dist/cjs/inference/attribution.js +101 -0
- package/dist/cjs/inference/catalogue.js +482 -0
- package/dist/cjs/inference/errors.js +195 -0
- package/dist/cjs/inference/identifiers.js +189 -0
- package/dist/cjs/inference/money.js +145 -0
- package/dist/cjs/inference/priceVersion.js +110 -0
- package/dist/cjs/inference/providerConnection.js +142 -0
- package/dist/cjs/inference/request.js +288 -0
- package/dist/cjs/inference/routingPolicy.js +213 -0
- package/dist/cjs/inference/streamEvents.js +219 -0
- package/dist/cjs/inference/usage.js +291 -0
- package/dist/cjs/inference/version.js +57 -0
- package/dist/cjs/oauth.js +66 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +4 -3
- package/dist/esm/browserHub.js +212 -0
- package/dist/esm/deviceDirectory.js +186 -0
- package/dist/esm/index.js +48 -0
- package/dist/esm/inference/attribution.js +98 -0
- package/dist/esm/inference/catalogue.js +479 -0
- package/dist/esm/inference/errors.js +192 -0
- package/dist/esm/inference/identifiers.js +186 -0
- package/dist/esm/inference/money.js +142 -0
- package/dist/esm/inference/priceVersion.js +107 -0
- package/dist/esm/inference/providerConnection.js +139 -0
- package/dist/esm/inference/request.js +285 -0
- package/dist/esm/inference/routingPolicy.js +210 -0
- package/dist/esm/inference/streamEvents.js +216 -0
- package/dist/esm/inference/usage.js +288 -0
- package/dist/esm/inference/version.js +54 -0
- package/dist/esm/oauth.js +63 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +6 -5
- package/dist/types/browserHub.d.ts +856 -0
- package/dist/types/deviceDirectory.d.ts +1317 -0
- package/dist/types/deviceSession.d.ts +46 -46
- package/dist/types/index.d.ts +29 -0
- package/dist/types/inference/attribution.d.ts +171 -0
- package/dist/types/inference/catalogue.d.ts +1612 -0
- package/dist/types/inference/errors.d.ts +193 -0
- package/dist/types/inference/identifiers.d.ts +149 -0
- package/dist/types/inference/money.d.ts +142 -0
- package/dist/types/inference/priceVersion.d.ts +182 -0
- package/dist/types/inference/providerConnection.d.ts +297 -0
- package/dist/types/inference/request.d.ts +2364 -0
- package/dist/types/inference/routingPolicy.d.ts +426 -0
- package/dist/types/inference/streamEvents.d.ts +906 -0
- package/dist/types/inference/usage.d.ts +1133 -0
- package/dist/types/inference/version.d.ts +54 -0
- package/dist/types/oauth.d.ts +86 -0
- package/dist/types/sessionStatus.d.ts +8 -8
- package/dist/types/userResponse.d.ts +8 -8
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ import { z } from 'zod';
|
|
|
12
12
|
*
|
|
13
13
|
* `personal` is the only kind minted by signup and the only one that carries
|
|
14
14
|
* its own credentials; every other kind is a child account created under a
|
|
15
|
-
* parent and operated through `account_members`. The API schema, the
|
|
16
|
-
*
|
|
15
|
+
* parent and operated through `account_members`. The API schema, the Drizzle
|
|
16
|
+
* table and the SDK all derive from this list rather than restating it, so a
|
|
17
17
|
* new kind is one edit here instead of four literals that can drift.
|
|
18
18
|
*/
|
|
19
19
|
export type AccountKind = 'personal' | 'organization' | 'project' | 'bot' | 'channel';
|
|
@@ -24,9 +24,10 @@ export type AccountKind = 'personal' | 'organization' | 'project' | 'bot' | 'cha
|
|
|
24
24
|
* `db/schema/users.ts` mirrors to keep the `users_kind_check` CHECK honest.
|
|
25
25
|
*
|
|
26
26
|
* Deriving the union from the array instead would cost nothing here and be paid
|
|
27
|
-
* by consumers: `kind` travels into `@oxyhq/services`
|
|
28
|
-
* `
|
|
29
|
-
* expensive to check than a
|
|
27
|
+
* by consumers: `kind` travels into `@oxyhq/services` on every device-directory
|
|
28
|
+
* context (`deviceContextSchema.kind` → `DeviceContext` → the switcher rows),
|
|
29
|
+
* and an indexed-access type is materially more expensive to check there than a
|
|
30
|
+
* literal union.
|
|
30
31
|
*/
|
|
31
32
|
export declare const ACCOUNT_KINDS: readonly ["personal", "organization", "project", "bot", "channel"];
|
|
32
33
|
/** `never` while `ACCOUNT_KINDS` covers the union. */
|