@pontive/server 1.24.0 → 1.26.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/README.md +3 -3
- package/dist/{client-_s4seciG.js → client-BI4W1IJJ.js} +11 -11
- package/dist/client-BI4W1IJJ.js.map +1 -0
- package/dist/client-fmMA2Var.cjs +2 -0
- package/dist/client-fmMA2Var.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/management/generated/namespaces.d.cts +178 -178
- package/dist/management/generated/namespaces.d.ts +178 -178
- package/dist/management/generated/types.d.cts +8934 -1783
- package/dist/management/generated/types.d.ts +8934 -1783
- package/dist/management.cjs +1 -1
- package/dist/management.js +1 -1
- package/package.json +1 -1
- package/dist/client-BiVX0Gh-.cjs +0 -2
- package/dist/client-BiVX0Gh-.cjs.map +0 -1
- package/dist/client-_s4seciG.js.map +0 -1
package/README.md
CHANGED
|
@@ -159,8 +159,8 @@ const page = await pontive.users.list({ limit: 50 }); // or one page: page.data,
|
|
|
159
159
|
`details` and `requestId`. No answer at all is `PontiveConnectionError`.
|
|
160
160
|
- **Headers.** `await call.withResponse()` gives `{ data, response }`, for a
|
|
161
161
|
header such as the `ETag` an `if_match` update needs.
|
|
162
|
-
- **Billing**
|
|
163
|
-
|
|
162
|
+
- **Billing** is typed like the rest: `pontive.billing.customers.create({ name:
|
|
163
|
+
"Acme" })` takes a `CreateCustomerRequest` and resolves to a `Customer`.
|
|
164
164
|
- Not in this client: the platform API (`api.pontive.com`: workspaces,
|
|
165
165
|
projects, instances).
|
|
166
166
|
|
|
@@ -179,7 +179,7 @@ This app uses [Pontive](https://www.pontive.com) for sign-in, sessions, organiza
|
|
|
179
179
|
- **Docs:** https://www.pontive.com/docs. Add `.md` to any page for Markdown; the index for agents is https://www.pontive.com/llms.txt. Read the page before writing Pontive code, and do not invent options, routes or claims it does not show.
|
|
180
180
|
- **MCP servers:** the docs, no sign-in: `https://www.pontive.com/docs/mcp`. Configuring the instance (apps, APIs, roles, organizations, users), with OAuth or a secret key: `https://mcp.pontive.com/mcp`.
|
|
181
181
|
- **Skills and plugins:** `npx skills add pontivehq/skills`, or the plugins at https://github.com/pontivehq/skills.
|
|
182
|
-
- **Packages:** `@pontive/nextjs` (Next.js), `@pontive/react` (React SPA), `@pontive/vue` (Vue), `@pontive/server` (Node servers, APIs and MCP servers: `/resource-server`, `/authorization`), `@pontive/pontkit-loader` (the Vite dev proxy), `@pontive/oidc-client` (the browser client). Never install or pin `@pontive/pontkit-core`. CLI: `npx pontive@latest` (`init`, `claim`, `status`, `migrate`).
|
|
182
|
+
- **Packages:** `@pontive/nextjs` (Next.js), `@pontive/react` (React SPA), `@pontive/vue` (Vue), `@pontive/server` (Node servers, APIs and MCP servers: `/resource-server`, `/authorization`; the management API client `new Pontive()`), `@pontive/pontkit-loader` (the Vite dev proxy), `@pontive/oidc-client` (the browser client); Python servers: `pontive` on PyPI (`pip install "pontive[fastapi]"`, or `[flask]`, `[django]`, `[mcp]`; the management API client `pontive.Pontive()`); Go servers: `github.com/pontivehq/pontive-go` (the management API client in `/management`). Never install or pin `@pontive/pontkit-core`. CLI: `npx pontive@latest` (`init`, `claim`, `status`, `migrate`).
|
|
183
183
|
- **Rules:**
|
|
184
184
|
- Secret keys (`pontive_sk_…`), client secrets and session secrets live only in server-side environment variables: never in browser code, a `NEXT_PUBLIC_` or `VITE_` variable, a log or a committed file. The app id (`app_…`) and auth domain are public.
|
|
185
185
|
- Build against a development instance (`…-<instance>.auth.<region>.pontive.dev`), never production.
|
|
@@ -96,7 +96,7 @@ class A extends Error {
|
|
|
96
96
|
super(e, t), this.name = "PontiveConnectionError";
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
const j = "1.
|
|
99
|
+
const j = "1.26.0", S = 6e4;
|
|
100
100
|
class W {
|
|
101
101
|
constructor(e) {
|
|
102
102
|
this.config = e;
|
|
@@ -2149,8 +2149,8 @@ class Pe {
|
|
|
2149
2149
|
*
|
|
2150
2150
|
* `POST /v1/billing/checkout-sessions/{checkout_session_id}/expire` (ExpireCheckoutSession)
|
|
2151
2151
|
*/
|
|
2152
|
-
expire(e, t
|
|
2153
|
-
return this.core.request({ host: "api", method: "POST", path: `/v1/billing/checkout-sessions/${s(e)}/expire`,
|
|
2152
|
+
expire(e, t) {
|
|
2153
|
+
return this.core.request({ host: "api", method: "POST", path: `/v1/billing/checkout-sessions/${s(e)}/expire`, idempotent: !0 }, t);
|
|
2154
2154
|
}
|
|
2155
2155
|
/**
|
|
2156
2156
|
* billing.contract.v1.CheckoutSessionService/GetCheckoutSession (35-contracts.md, Checkout session and
|
|
@@ -2350,7 +2350,7 @@ class Ge {
|
|
|
2350
2350
|
* billing.catalog.v1.CurrencyService/ListCurrencies (32-billing-overview.md, API Surface, Currencies).
|
|
2351
2351
|
* Every currency billing accepts, sorted by code: its upper-case ISO 4217 code, English name, minor
|
|
2352
2352
|
* units (exponent), whether Stripe can charge it (chargeable) and Stripe's minimum charge, or null.
|
|
2353
|
-
* chargeable=true lists only the chargeable ones.
|
|
2353
|
+
* chargeable=true lists only the chargeable ones. Paged like every list.
|
|
2354
2354
|
*
|
|
2355
2355
|
* `GET /v1/billing/currencies` (ListCurrencies)
|
|
2356
2356
|
*
|
|
@@ -3239,8 +3239,8 @@ class Ne {
|
|
|
3239
3239
|
*
|
|
3240
3240
|
* `POST /v1/billing/payment-connections/{payment_connection_id}/revoke` (RevokePaymentConnection)
|
|
3241
3241
|
*/
|
|
3242
|
-
revoke(e, t
|
|
3243
|
-
return this.core.request({ host: "api", method: "POST", path: `/v1/billing/payment-connections/${s(e)}/revoke`,
|
|
3242
|
+
revoke(e, t) {
|
|
3243
|
+
return this.core.request({ host: "api", method: "POST", path: `/v1/billing/payment-connections/${s(e)}/revoke`, idempotent: !0 }, t);
|
|
3244
3244
|
}
|
|
3245
3245
|
}
|
|
3246
3246
|
class Ue {
|
|
@@ -3909,8 +3909,8 @@ class rt {
|
|
|
3909
3909
|
*
|
|
3910
3910
|
* `POST /v1/capabilities/billing/disable` (DisableBillingCapability)
|
|
3911
3911
|
*/
|
|
3912
|
-
disable(e
|
|
3913
|
-
return this.core.request({ host: "api", method: "POST", path: "/v1/capabilities/billing/disable",
|
|
3912
|
+
disable(e) {
|
|
3913
|
+
return this.core.request({ host: "api", method: "POST", path: "/v1/capabilities/billing/disable", idempotent: !0 }, e);
|
|
3914
3914
|
}
|
|
3915
3915
|
/**
|
|
3916
3916
|
* billing.customer.v1.CapabilityService/EnableBillingCapability (32-billing-overview.md, API Surface,
|
|
@@ -3919,8 +3919,8 @@ class rt {
|
|
|
3919
3919
|
*
|
|
3920
3920
|
* `POST /v1/capabilities/billing/enable` (EnableBillingCapability)
|
|
3921
3921
|
*/
|
|
3922
|
-
enable(e
|
|
3923
|
-
return this.core.request({ host: "api", method: "POST", path: "/v1/capabilities/billing/enable",
|
|
3922
|
+
enable(e) {
|
|
3923
|
+
return this.core.request({ host: "api", method: "POST", path: "/v1/capabilities/billing/enable", idempotent: !0 }, e);
|
|
3924
3924
|
}
|
|
3925
3925
|
}
|
|
3926
3926
|
class st {
|
|
@@ -6690,4 +6690,4 @@ export {
|
|
|
6690
6690
|
qt as s,
|
|
6691
6691
|
Pt as w
|
|
6692
6692
|
};
|
|
6693
|
-
//# sourceMappingURL=client-
|
|
6693
|
+
//# sourceMappingURL=client-BI4W1IJJ.js.map
|