@aventurevc/api-schemas 0.8.7 → 0.8.8

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/README.md CHANGED
@@ -1,11 +1,30 @@
1
1
  # @aventurevc/api-schemas
2
2
 
3
- Zod v4 schemas for the public aVenture API.
3
+ Zod v4 schemas and TypeScript types for the aVenture API: companies, people,
4
+ funding rounds, investors, and news.
4
5
 
5
- Generated from the published aVenture OpenAPI specification; do not edit by hand.
6
+ Calling the API requires an aVenture account. Free and paid plans both work;
7
+ [create an account](https://aventure.vc/sign-up), then create an API key in
8
+ [API key settings](https://aventure.vc/settings/api-keys).
6
9
 
7
10
  ```bash
8
- npm install @aventurevc/api-schemas --@aventurevc:registry=https://registry.npmjs.org/
11
+ npm install @aventurevc/api-schemas
9
12
  ```
10
13
 
11
- Endpoint reference: https://docs.aventure.vc/api-reference
14
+ ## Example
15
+
16
+ ```ts
17
+ import { EntityDetailSchema } from "@aventurevc/api-schemas/entity/detail";
18
+
19
+ const response = await fetch(
20
+ "https://api.aventure.vc/v1/entities/lookup-exact?urlDomain=stripe.com",
21
+ { headers: { Authorization: `Bearer ${process.env.AUTH_TOKEN}` } },
22
+ );
23
+ const stripe = EntityDetailSchema.parse(await response.json());
24
+ console.log(stripe.core.nameBrand);
25
+ ```
26
+
27
+ ## Documentation
28
+
29
+ - [API quickstart](https://docs.aventure.vc/quickstart)
30
+ - [API reference](https://docs.aventure.vc/api-reference)
package/dist/api/key.d.ts CHANGED
@@ -18,7 +18,7 @@ declare const ApiKeySchemaDefinition: z.ZodObject<{
18
18
  }, z.core.$strip>;
19
19
  type ApiKeyDefinition = z.infer<typeof ApiKeySchemaDefinition>;
20
20
  /**
21
- * Clerk API-key metadata; never contains the key secret
21
+ * API key metadata; never contains the key secret
22
22
  *
23
23
  * @openapiSchema ApiKey
24
24
  * @endpoint GET /v1/auth/api-key
package/dist/api/key.js CHANGED
@@ -7,7 +7,7 @@ const ApiKeySchemaDefinition = z.object({
7
7
  description: z.string().nullish(),
8
8
  /** Provider expiry timestamp */
9
9
  expiresAt: z.iso.datetime({ offset: true }).nullish(),
10
- /** Clerk API-key identifier */
10
+ /** API key identifier */
11
11
  id: z.string().regex(/^ak_[0-9A-Fa-f]{32}$/),
12
12
  /** Most recent provider-recorded use timestamp */
13
13
  lastUsedAt: z.iso.datetime({ offset: true }).nullish(),
@@ -15,17 +15,17 @@ const ApiKeySchemaDefinition = z.object({
15
15
  name: z.string(),
16
16
  /** Provider revocation explanation */
17
17
  revocationReason: z.string().nullish(),
18
- /** Clerk scopes assigned to this key */
18
+ /** Scopes assigned to this key */
19
19
  scopes: z.array(z.string()),
20
20
  /** Provider-derived current lifecycle state */
21
21
  status: z.enum(["ACTIVE", "REVOKED", "EXPIRED"]),
22
- /** Owning Clerk user subject */
22
+ /** Account that owns the key */
23
23
  subject: z.string(),
24
24
  /** Provider metadata update timestamp */
25
25
  updatedAt: z.iso.datetime({ offset: true }),
26
26
  });
27
27
  /**
28
- * Clerk API-key metadata; never contains the key secret
28
+ * API key metadata; never contains the key secret
29
29
  *
30
30
  * @openapiSchema ApiKey
31
31
  * @endpoint GET /v1/auth/api-key
@@ -2,7 +2,7 @@
2
2
  import { z } from "zod/v4";
3
3
  import { AuthClientSchema } from "./client.js";
4
4
  const AuthProviderCatalogSchemaDefinition = z.object({
5
- /** Clerk publishable key for browser sign-in; absent when the environment has no Clerk instance */
5
+ /** Publishable key for browser sign-in; absent when browser sign-in is unavailable */
6
6
  clerkPublishableKey: z.string().nullish(),
7
7
  /** OAuth PKCE client configuration for the CLI; absent until its client configuration is complete */
8
8
  oauthClient: AuthClientSchema.nullish(),
@@ -186,7 +186,7 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
186
186
  }, z.core.$strip>;
187
187
  type BillingSubscriptionDefinition = z.infer<typeof BillingSubscriptionSchemaDefinition>;
188
188
  /**
189
- * Current Essential, AI Plus, AI Pro, or Unlimited (RBAC operator) subscription and entitlement state.
189
+ * Current plan (Essential, AI Plus, AI Pro, or Unlimited), subscription status, and monthly usage.
190
190
  *
191
191
  * @openapiSchema BillingSubscription
192
192
  * @endpoint GET /v1/billing/subscription
@@ -39,7 +39,7 @@ const BillingSubscriptionSchemaDefinition = z.object({
39
39
  tier: z.enum(["ESSENTIAL", "PLUS", "PRO", "UNLIMITED"]),
40
40
  });
41
41
  /**
42
- * Current Essential, AI Plus, AI Pro, or Unlimited (RBAC operator) subscription and entitlement state.
42
+ * Current plan (Essential, AI Plus, AI Pro, or Unlimited), subscription status, and monthly usage.
43
43
  *
44
44
  * @openapiSchema BillingSubscription
45
45
  * @endpoint GET /v1/billing/subscription
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
4
4
  "private": false,
5
- "description": "Zod v4 schemas for the public aVenture API.",
5
+ "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "zod": "^4.3.6"
42
42
  },
43
43
  "engines": {
44
- "node": ">=24.18.0 <25"
44
+ "node": ">=24.18.0"
45
45
  },
46
46
  "scripts": {}
47
47
  }