palbase 0.76.0 → 0.77.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/ai/index.js +2 -2
- package/dist/ai-sdk/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{A3I7H7QN.js → 34HGL5FX.js} +1 -1
- package/dist/chunks/{ALT62XIG.js → 4M4GEXJS.js} +2 -2
- package/dist/chunks/{2NEPN2ZZ.js → 6WCN7VAZ.js} +2 -2
- package/dist/chunks/{ZCMCYI2D.js → 7RTPVUIH.js} +2 -2
- package/dist/chunks/{5RNXCTOO.js → AUOFL6RB.js} +2 -2
- package/dist/chunks/{KEGVHELA.js → BDHVYVWT.js} +1 -1
- package/dist/chunks/CYNLRAAW.js +2 -0
- package/dist/chunks/{5YJZAPY2.js → DENZSXKJ.js} +2 -2
- package/dist/chunks/ES24JS2D.js +2 -0
- package/dist/chunks/{Q4UWBIJ6.js → F6OGRDZB.js} +2 -2
- package/dist/chunks/{D6NOE76D.js → FE7ZBADH.js} +1 -1
- package/dist/chunks/{SVWF7ABJ.js → FN5763FR.js} +2 -2
- package/dist/chunks/{DKYFIOWM.js → G3PH5T6N.js} +1 -1
- package/dist/chunks/{ISMWEEGW.js → GFBWGJW3.js} +1 -1
- package/dist/chunks/{EXLA3A7O.js → IZVBCAKH.js} +2 -2
- package/dist/chunks/{TGQGGUE6.js → JOVXELK5.js} +2 -2
- package/dist/chunks/KLK7HZZ7.js +18 -0
- package/dist/chunks/{MKVIRNSJ.js → ONLXIZ6E.js} +2 -2
- package/dist/chunks/{BRDO3ZPT.js → QWXF6KWI.js} +1 -1
- package/dist/chunks/{UHN63FGH.js → RQJ4MX2H.js} +2 -2
- package/dist/chunks/{PGQNRJ2C.js → RRS7TQKX.js} +2 -2
- package/dist/chunks/{33XOVYAU.js → U4VX7NKX.js} +4 -4
- package/dist/chunks/{UOW74IHY.js → VOLGPAPR.js} +2 -2
- package/dist/chunks/{3CN6HGTW.js → WXT24CE5.js} +1 -1
- package/dist/chunks/{TUK6NH2Q.js → ZZNNCI6A.js} +2 -2
- package/dist/cli.js +241 -187
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai-sdk.js +1 -1
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/payments-ui.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
- package/types/ai/src/ai.d.ts +6 -2
- package/types/ai/src/chats.d.ts +22 -10
- package/types/ai/src/index.d.ts +2 -2
- package/types/ai/src/pools.d.ts +15 -24
- package/types/cloud/src/generated/project.d.ts +3 -3
- package/types/cloud/src/generated/studio.d.ts +4 -6
- package/types/internal/src/ai-machines.d.ts +120 -0
- package/types/internal/src/chat.d.ts +1 -1
- package/types/internal/src/modules/ai.d.ts +186 -77
- package/types/internal/src/modules/analytics.d.ts +5 -1
- package/types/internal/src/modules/auth.d.ts +3 -28
- package/types/internal/src/modules/commerce.d.ts +92 -13
- package/types/internal/src/modules/events.d.ts +2 -2
- package/types/internal/src/modules/iap.d.ts +2 -2
- package/types/internal/src/modules/journeys.d.ts +2 -2
- package/types/internal/src/modules/machines.d.ts +33 -33
- package/types/internal/src/modules/notify.d.ts +2 -2
- package/types/internal/src/modules/payments.d.ts +83 -14
- package/types/internal/src/modules/stores.d.ts +3 -3
- package/types/internal/src/modules/workspaces.d.ts +5 -5
- package/types/web/src/ai-machines.d.ts +76 -0
- package/types/web/src/chat.d.ts +1 -1
- package/types/web/src/index.d.ts +2 -0
- package/types/web/src/templates.d.ts +8 -0
- package/dist/chunks/3VGWTVKI.js +0 -2
- package/dist/chunks/YRYPXVAJ.js +0 -18
|
@@ -172,7 +172,7 @@ export type Machine = {
|
|
|
172
172
|
*/
|
|
173
173
|
state_reason?: string;
|
|
174
174
|
/**
|
|
175
|
-
* What kind of thing `state_reason` says: waiting — the version asked for waits before it takes traffic (on its commit's checks, its configuration, its tests, its contract, its database or its migration) and rolls out once that is done; not_up — it does not start or answer, or a copy of the one before it stays; given_up — it did not come up, and the one before it serves until the machine's next change; migration — its database migration failed (to start, and the version does not roll out; or to close); stopped — it was put to sleep for a reason; failed — it cannot run; no_room — copies
|
|
175
|
+
* What kind of thing `state_reason` says: waiting — the version asked for waits before it takes traffic (on its commit's checks, its configuration, its tests, its contract, its database or its migration) and rolls out once that is done; not_up — it does not start or answer, or a copy of the one before it stays; given_up — it did not come up, and the one before it serves until the machine's next change; migration — its database migration failed (to start, and the version does not roll out; or to close); stopped — it was put to sleep for a reason; failed — it cannot run; no_room — copies are waiting for additional capacity to be provisioned (a few minutes). Absent with no `state_reason`.
|
|
176
176
|
*/
|
|
177
177
|
state_reason_kind?: "failed" | "given_up" | "migration" | "no_room" | "not_up" | "stopped" | "waiting";
|
|
178
178
|
updated_at: string;
|
|
@@ -206,7 +206,7 @@ export type Machine = {
|
|
|
206
206
|
*/
|
|
207
207
|
health_path?: string;
|
|
208
208
|
/**
|
|
209
|
-
* How many copies of the machine run while it is awake, up to 100 (one on Free),
|
|
209
|
+
* How many copies of the machine run while it is awake, up to 100 (one on Free), spread for high availability: a request is routed to one of them, losing a single copy leaves the others serving, and a new version rolls out progressively beside the copies that serve. Every copy is of the machine's size and counts as such against the project's limits and its machine time (a minute in which the number changed is counted at the most it was). What a copy keeps in its own memory or on its own disk the others do not see — a session, a counter, a cache, a timer: a machine with more than one keeps those where every copy reaches them. The machine finds the number in PALBASE_REPLICAS. A long-lived connection (a WebSocket) stays with the copy that took it. With autoscaling, the fewest copies it runs; how many run now follows load.
|
|
210
210
|
*/
|
|
211
211
|
replicas: number;
|
|
212
212
|
/**
|
|
@@ -231,7 +231,7 @@ export type Machine = {
|
|
|
231
231
|
pull_request?: number;
|
|
232
232
|
database?: MachineDatabase;
|
|
233
233
|
/**
|
|
234
|
-
* Whether a push waits for its commit's checks before it is built; absent when it does not. A push is built only once its commit's checks on GitHub have passed
|
|
234
|
+
* Whether a push waits for its commit's checks before it is built; absent when it does not. A push is built only once its commit's checks on GitHub have passed: those `deploy_checks` names, or else every check run reported on the commit for the machine's branch (GitHub Actions' jobs, and any other app's checks; Palbase's own left out) has ended in success, neutral or skipped, and every GitHub Actions workflow run of it has ended — taken as ended 30 s after the last ended, and no sooner than 30 s after the push's build was made. Until then the build waits (`waiting_checks`, its `reason` naming what it waits for), and the machine runs what it ran; a newer push waits beside it, for its own. The machine moves to the newest commit whose checks passed, never back: the first to pass is built and leaves the older builds behind, waiting or under way, so an older commit whose checks pass after it is not built. A check that ended otherwise (failure, cancelled, timed_out, action_required, stale), no check reported in 10 minutes, or checks not ended in 3 hours (6 hours for named ones), and the build is `skipped` (`reason`); a check run again that passes later does not build it — the next push to the branch is built then, whatever it changed. Commit statuses are not read.
|
|
235
235
|
*/
|
|
236
236
|
deploy_after_checks?: boolean;
|
|
237
237
|
/**
|
|
@@ -243,7 +243,7 @@ export type Machine = {
|
|
|
243
243
|
*/
|
|
244
244
|
deploy_checks_app?: string;
|
|
245
245
|
/**
|
|
246
|
-
* What each new build of the machine runs before it takes traffic (
|
|
246
|
+
* What each new build of the machine runs before it takes traffic (a pre-deploy test step): once its database's migration has started, the new version comes up beside the one that serves — its own env, secrets and database — and its image runs this command in a shell (so the image has one) against it: `PALBASE_TEST_BASE_URL` is where it answers, `PALBASE_TEST_AUTH_URL` the project's auth. The tests reach what the machine reaches — its database, the project's modules — so they write as it does. They end other than 0 and the build fails, its `reason` naming the tests that failed: the version never takes traffic, the machine runs what it ran, and the migration is taken back. `bun test`, `npm test`. A build is tested as the machine says when it is released. Absent, a build rolls out once built.
|
|
247
247
|
*/
|
|
248
248
|
test_command?: string;
|
|
249
249
|
/**
|
|
@@ -270,7 +270,7 @@ export type Machine = {
|
|
|
270
270
|
moving_to?: EnvironmentRef;
|
|
271
271
|
moved_from?: EnvironmentRef;
|
|
272
272
|
/**
|
|
273
|
-
* The addresses the machine
|
|
273
|
+
* The addresses the machine previously answered at in earlier environments of its project: it continues answering at them after moving.
|
|
274
274
|
*/
|
|
275
275
|
former_urls?: string[];
|
|
276
276
|
autoscaling: Autoscaling;
|
|
@@ -315,7 +315,7 @@ export type MachineCreate = {
|
|
|
315
315
|
*/
|
|
316
316
|
health_path?: string;
|
|
317
317
|
/**
|
|
318
|
-
* How many copies of the machine run while it is awake, up to 100 (one on Free),
|
|
318
|
+
* How many copies of the machine run while it is awake, up to 100 (one on Free), spread for high availability: a request is routed to one of them, losing a single copy leaves the others serving, and a new version rolls out progressively beside the copies that serve. Every copy is of the machine's size and counts as such against the project's limits and its machine time (a minute in which the number changed is counted at the most it was). What a copy keeps in its own memory or on its own disk the others do not see — a session, a counter, a cache, a timer: a machine with more than one keeps those where every copy reaches them. The machine finds the number in PALBASE_REPLICAS. A long-lived connection (a WebSocket) stays with the copy that took it. With autoscaling, the fewest copies it runs. One when left out.
|
|
319
319
|
*/
|
|
320
320
|
replicas?: number;
|
|
321
321
|
/**
|
|
@@ -332,7 +332,7 @@ export type MachineCreate = {
|
|
|
332
332
|
preview_forks?: boolean;
|
|
333
333
|
database?: MachineDatabase;
|
|
334
334
|
/**
|
|
335
|
-
* A push is built only once its commit's checks on GitHub have passed
|
|
335
|
+
* A push is built only once its commit's checks on GitHub have passed: those `deploy_checks` names, or else every check run reported on the commit for the machine's branch (GitHub Actions' jobs, and any other app's checks; Palbase's own left out) has ended in success, neutral or skipped, and every GitHub Actions workflow run of it has ended — taken as ended 30 s after the last ended, and no sooner than 30 s after the push's build was made. Until then the build waits (`waiting_checks`, its `reason` naming what it waits for), and the machine runs what it ran; a newer push waits beside it, for its own. The machine moves to the newest commit whose checks passed, never back: the first to pass is built and leaves the older builds behind, waiting or under way, so an older commit whose checks pass after it is not built. A check that ended otherwise (failure, cancelled, timed_out, action_required, stale), no check reported in 10 minutes, or checks not ended in 3 hours (6 hours for named ones), and the build is `skipped` (`reason`); a check run again that passes later does not build it — the next push to the branch is built then, whatever it changed. Commit statuses are not read. False: every push is built at once.
|
|
336
336
|
*/
|
|
337
337
|
deploy_after_checks?: boolean;
|
|
338
338
|
/**
|
|
@@ -344,7 +344,7 @@ export type MachineCreate = {
|
|
|
344
344
|
*/
|
|
345
345
|
deploy_checks_app?: string;
|
|
346
346
|
/**
|
|
347
|
-
* What each new build of the machine runs before it takes traffic (
|
|
347
|
+
* What each new build of the machine runs before it takes traffic (a pre-deploy test step): once its database's migration has started, the new version comes up beside the one that serves — its own env, secrets and database — and its image runs this command in a shell (so the image has one) against it: `PALBASE_TEST_BASE_URL` is where it answers, `PALBASE_TEST_AUTH_URL` the project's auth. The tests reach what the machine reaches — its database, the project's modules — so they write as it does. They end other than 0 and the build fails, its `reason` naming the tests that failed: the version never takes traffic, the machine runs what it ran, and the migration is taken back. `bun test`, `npm test`. A build is tested as the machine says when it is released. Absent, a build rolls out once built.
|
|
348
348
|
*/
|
|
349
349
|
test_command?: string;
|
|
350
350
|
/**
|
|
@@ -430,7 +430,7 @@ export type MachineUpdate = {
|
|
|
430
430
|
preview_forks?: boolean;
|
|
431
431
|
database?: MachineDatabase;
|
|
432
432
|
/**
|
|
433
|
-
* Whether a push waits for its commit's checks from now on; no version is rolled out for it. The newest build waiting for its checks when it is turned off is built at once, and the older ones are left behind. A push is built only once its commit's checks on GitHub have passed
|
|
433
|
+
* Whether a push waits for its commit's checks from now on; no version is rolled out for it. The newest build waiting for its checks when it is turned off is built at once, and the older ones are left behind. A push is built only once its commit's checks on GitHub have passed: those `deploy_checks` names, or else every check run reported on the commit for the machine's branch (GitHub Actions' jobs, and any other app's checks; Palbase's own left out) has ended in success, neutral or skipped, and every GitHub Actions workflow run of it has ended — taken as ended 30 s after the last ended, and no sooner than 30 s after the push's build was made. Until then the build waits (`waiting_checks`, its `reason` naming what it waits for), and the machine runs what it ran; a newer push waits beside it, for its own. The machine moves to the newest commit whose checks passed, never back: the first to pass is built and leaves the older builds behind, waiting or under way, so an older commit whose checks pass after it is not built. A check that ended otherwise (failure, cancelled, timed_out, action_required, stale), no check reported in 10 minutes, or checks not ended in 3 hours (6 hours for named ones), and the build is `skipped` (`reason`); a check run again that passes later does not build it — the next push to the branch is built then, whatever it changed. Commit statuses are not read.
|
|
434
434
|
*/
|
|
435
435
|
deploy_after_checks?: boolean;
|
|
436
436
|
/**
|
|
@@ -442,7 +442,7 @@ export type MachineUpdate = {
|
|
|
442
442
|
*/
|
|
443
443
|
deploy_checks_app?: string;
|
|
444
444
|
/**
|
|
445
|
-
* What each new build of the machine runs before it takes traffic (
|
|
445
|
+
* What each new build of the machine runs before it takes traffic (a pre-deploy test step): once its database's migration has started, the new version comes up beside the one that serves — its own env, secrets and database — and its image runs this command in a shell (so the image has one) against it: `PALBASE_TEST_BASE_URL` is where it answers, `PALBASE_TEST_AUTH_URL` the project's auth. The tests reach what the machine reaches — its database, the project's modules — so they write as it does. They end other than 0 and the build fails, its `reason` naming the tests that failed: the version never takes traffic, the machine runs what it ran, and the migration is taken back. `bun test`, `npm test`. A build is tested as the machine says when it is released. Absent, a build rolls out once built. An empty string runs none from now on.
|
|
446
446
|
*/
|
|
447
447
|
test_command?: string;
|
|
448
448
|
/**
|
|
@@ -477,7 +477,7 @@ export type Rollback = {
|
|
|
477
477
|
build: string;
|
|
478
478
|
};
|
|
479
479
|
/**
|
|
480
|
-
* Where a machine is built from: a branch of a GitHub repository one of the project's installations of Palbase Cloud reaches (GET /machines/github/repositories), and a directory of it. A push to the branch is built — the directory's Dockerfile, or
|
|
480
|
+
* Where a machine is built from: a branch of a GitHub repository one of the project's installations of Palbase Cloud reaches (GET /machines/github/repositories), and a directory of it. A push to the branch is built — using the directory's Dockerfile, or automatic runtime detection (Node, Bun, Go, Python, …) when no Dockerfile is present — and rolled out when it changes a file in what the build is given: its context (`context`, else `path`), matched by whole directory names, case-sensitively; a push that changes nothing there leaves the machine as it runs, and does not count against the project's builds for the day. A machine built from the repository's root is built by every push. When what GitHub names of a push may not be all it changed — a forced push, a branch's first push, a push of 2048 commits or more, a commit naming no files (an empty commit among them) or 3000 or more — every machine built from the branch is built.
|
|
481
481
|
*/
|
|
482
482
|
export type Source = {
|
|
483
483
|
/**
|
|
@@ -493,7 +493,7 @@ export type Source = {
|
|
|
493
493
|
*/
|
|
494
494
|
path?: string;
|
|
495
495
|
/**
|
|
496
|
-
* What the build is given as its context, when that is not `path` itself: a directory above `path`, or `.` for the repository's root. An app of a workspace (a monorepo) that needs its sibling packages is built with them in reach: its Dockerfile, in `path`, copies from the context; without a Dockerfile,
|
|
496
|
+
* What the build is given as its context, when that is not `path` itself: a directory above `path`, or `.` for the repository's root. An app of a workspace (a monorepo) that needs its sibling packages is built with them in reach: its Dockerfile, in `path`, copies from the context; without a Dockerfile, the automatic builder detects the project from the context. Left out, the context is `path`.
|
|
497
497
|
*/
|
|
498
498
|
context?: string;
|
|
499
499
|
/**
|
|
@@ -518,7 +518,7 @@ export type Database = {
|
|
|
518
518
|
*/
|
|
519
519
|
port: number;
|
|
520
520
|
/**
|
|
521
|
-
* Its port
|
|
521
|
+
* Its pooled port (transaction pooling): for clients that open a connection for each request.
|
|
522
522
|
*/
|
|
523
523
|
pooled_port: number;
|
|
524
524
|
/**
|
|
@@ -546,7 +546,7 @@ export type Database = {
|
|
|
546
546
|
*/
|
|
547
547
|
state_reason?: string;
|
|
548
548
|
/**
|
|
549
|
-
* What `state_reason` says, when a client tells it from the words: no_room — it
|
|
549
|
+
* What `state_reason` says, when a client tells it from the words: no_room — it is waiting for additional capacity to be provisioned (a few minutes). Absent otherwise.
|
|
550
550
|
*/
|
|
551
551
|
state_reason_kind?: "no_room";
|
|
552
552
|
/**
|
|
@@ -610,7 +610,7 @@ export type Database = {
|
|
|
610
610
|
*/
|
|
611
611
|
move_note?: string;
|
|
612
612
|
/**
|
|
613
|
-
* The hosts the database
|
|
613
|
+
* The hosts the database previously answered at in earlier environments of its project: it continues answering at them after moving.
|
|
614
614
|
*/
|
|
615
615
|
former_hosts?: string[];
|
|
616
616
|
};
|
|
@@ -708,7 +708,7 @@ export type DatabaseLogin = {
|
|
|
708
708
|
*/
|
|
709
709
|
url: string;
|
|
710
710
|
/**
|
|
711
|
-
* A
|
|
711
|
+
* A pooled connection URL (transaction pooling): session-level SET, LISTEN and advisory locks do not hold there.
|
|
712
712
|
*/
|
|
713
713
|
pooled_url: string;
|
|
714
714
|
/**
|
|
@@ -741,7 +741,7 @@ export type DatabaseCredentials = {
|
|
|
741
741
|
*/
|
|
742
742
|
port: number;
|
|
743
743
|
/**
|
|
744
|
-
* Its port
|
|
744
|
+
* Its pooled connection port (transaction pooling).
|
|
745
745
|
*/
|
|
746
746
|
pooled_port: number;
|
|
747
747
|
/**
|
|
@@ -769,7 +769,7 @@ export type MachineLogLine = {
|
|
|
769
769
|
*/
|
|
770
770
|
pod: string;
|
|
771
771
|
/**
|
|
772
|
-
* The version of the machine
|
|
772
|
+
* The version of the machine that produced this log line.
|
|
773
773
|
*/
|
|
774
774
|
generation: number;
|
|
775
775
|
/**
|
|
@@ -940,7 +940,7 @@ export type DatabaseRoleConnection = {
|
|
|
940
940
|
*/
|
|
941
941
|
url: string;
|
|
942
942
|
/**
|
|
943
|
-
* A
|
|
943
|
+
* A pooled connection URL (transaction pooling): session-level SET, LISTEN and advisory locks do not hold there.
|
|
944
944
|
*/
|
|
945
945
|
pooled_url: string;
|
|
946
946
|
/**
|
|
@@ -973,7 +973,7 @@ export type DatabaseConnection = {
|
|
|
973
973
|
*/
|
|
974
974
|
port: number;
|
|
975
975
|
/**
|
|
976
|
-
* Its port
|
|
976
|
+
* Its pooled connection port (transaction pooling).
|
|
977
977
|
*/
|
|
978
978
|
pooled_port: number;
|
|
979
979
|
/**
|
|
@@ -1000,7 +1000,7 @@ export type DatabaseCreated = {
|
|
|
1000
1000
|
*/
|
|
1001
1001
|
port: number;
|
|
1002
1002
|
/**
|
|
1003
|
-
* Its port
|
|
1003
|
+
* Its pooled port (transaction pooling): for clients that open a connection for each request.
|
|
1004
1004
|
*/
|
|
1005
1005
|
pooled_port: number;
|
|
1006
1006
|
/**
|
|
@@ -1028,7 +1028,7 @@ export type DatabaseCreated = {
|
|
|
1028
1028
|
*/
|
|
1029
1029
|
state_reason?: string;
|
|
1030
1030
|
/**
|
|
1031
|
-
* What `state_reason` says, when a client tells it from the words: no_room — it
|
|
1031
|
+
* What `state_reason` says, when a client tells it from the words: no_room — it is waiting for additional capacity to be provisioned (a few minutes). Absent otherwise.
|
|
1032
1032
|
*/
|
|
1033
1033
|
state_reason_kind?: "no_room";
|
|
1034
1034
|
/**
|
|
@@ -1315,7 +1315,7 @@ export type DatabaseSize = {
|
|
|
1315
1315
|
*/
|
|
1316
1316
|
max_storage_gb?: number;
|
|
1317
1317
|
/**
|
|
1318
|
-
* What a GB of
|
|
1318
|
+
* What a GB of storage costs per month past the first GB, awake, in micro-USD. Absent when it is not `storage_adjustable`.
|
|
1319
1319
|
*/
|
|
1320
1320
|
storage_price_micros_per_gb_month?: number;
|
|
1321
1321
|
/**
|
|
@@ -1647,7 +1647,7 @@ export type SiteReleaseRef = ({
|
|
|
1647
1647
|
number: number;
|
|
1648
1648
|
}) | null;
|
|
1649
1649
|
/**
|
|
1650
|
-
*
|
|
1650
|
+
* Whether the site has been suspended for an abuse or terms violation: nothing of it is served until it is restored. Null when not suspended.
|
|
1651
1651
|
*/
|
|
1652
1652
|
export type SiteTakenDown = ({
|
|
1653
1653
|
at: string;
|
|
@@ -1931,7 +1931,7 @@ export type DNSRecord = {
|
|
|
1931
1931
|
value: string;
|
|
1932
1932
|
};
|
|
1933
1933
|
/**
|
|
1934
|
-
* A domain of the customer's own a site, a machine or the environment itself answers at too. Its owner adds its records to its DNS: a subdomain's CNAME points it at the platform
|
|
1934
|
+
* A domain of the customer's own a site, a machine or the environment itself answers at too. Its owner adds its records to its DNS: a subdomain's CNAME points it at the platform's CDN target; an apex's A record names the platform's address for apexes, which any DNS host takes — or, where its DNS host has one, an ALIAS, ANAME or flattened CNAME to the subdomains' target keeps it on the CDN route. The TXT shows it is this environment's. It answers once its TLS certificate is issued and the TXT record is there. A domain may send its visitors to another domain of the same site or machine (redirect_to). A domain is one environment's, platform-wide, until it is deleted there.
|
|
1935
1935
|
*/
|
|
1936
1936
|
export type Domain = {
|
|
1937
1937
|
/**
|
|
@@ -1947,7 +1947,7 @@ export type Domain = {
|
|
|
1947
1947
|
*/
|
|
1948
1948
|
apex: boolean;
|
|
1949
1949
|
/**
|
|
1950
|
-
* How it reaches the platform, as last read: cdn
|
|
1950
|
+
* How it reaches the platform, as last read: cdn via CNAME/ALIAS, ip via an apex A record at the platform's address for apexes; null while its DNS says neither.
|
|
1951
1951
|
*/
|
|
1952
1952
|
via: ("cdn" | "ip") | null;
|
|
1953
1953
|
/**
|
|
@@ -2306,7 +2306,7 @@ export type BuildOnItsWay = {
|
|
|
2306
2306
|
state: string;
|
|
2307
2307
|
};
|
|
2308
2308
|
/**
|
|
2309
|
-
* How a machine's copies follow its load
|
|
2309
|
+
* How a machine's copies follow its load: as many run as keep each copy near the share of its size's processor and of its memory given here, from the machine's replicas (the fewest, two at least) to max_replicas, spread for high availability. The platform adds a copy within seconds of copies running above that share, and scales down after five minutes under it. A copy added or taken away starts no other copy anew: what a copy is told (PALBASE_REPLICAS) and its share of a database are of max_replicas. Each copy is paid for while it runs, as any copy; on Pay as you go only (Free runs one copy). Null: the machine runs its replicas, that many always — in a change, it no longer scales. A change of autoscaling, or of replicas while it scales, is no new version and starts no copy anew, but for max_replicas.
|
|
2310
2310
|
*/
|
|
2311
2311
|
export type Autoscaling = ({
|
|
2312
2312
|
/**
|
|
@@ -2345,7 +2345,7 @@ export type ExecRun = {
|
|
|
2345
2345
|
*/
|
|
2346
2346
|
by: string;
|
|
2347
2347
|
/**
|
|
2348
|
-
* The
|
|
2348
|
+
* The instance identifier of the machine copy that handled the request.
|
|
2349
2349
|
*/
|
|
2350
2350
|
copy?: string;
|
|
2351
2351
|
/**
|
|
@@ -2398,7 +2398,7 @@ export type ExecRunEntry = {
|
|
|
2398
2398
|
*/
|
|
2399
2399
|
by: string;
|
|
2400
2400
|
/**
|
|
2401
|
-
* The
|
|
2401
|
+
* The instance identifier of the machine copy that handled the request.
|
|
2402
2402
|
*/
|
|
2403
2403
|
copy?: string;
|
|
2404
2404
|
/**
|
|
@@ -2893,7 +2893,7 @@ export declare function client(t: Transport): {
|
|
|
2893
2893
|
/**
|
|
2894
2894
|
* Read what a machine used over time
|
|
2895
2895
|
*
|
|
2896
|
-
* What the machine used, bucket by bucket, oldest first — what Studio's charts draw. Once a minute the
|
|
2896
|
+
* What the machine used, bucket by bucket, oldest first — what Studio's charts draw. Once a minute the platform records running copies' usage — CPU averaged over the minute and working-set memory — and keeps it summed over the machine's copies, at the minute it was read. A minute nobody measured — the machine slept, or a copy had only just started — is in no bucket, and a bucket none of whose minutes was measured is no row: nothing is filled in, carried across a gap or made up when read. Every field of a row is a gauge: `samples` is how many minutes were measured in the bucket; `cpu_avg_millicores` and `memory_avg_bytes` are their average, and `cpu_max_millicores` and `memory_max_bytes` their most, summed over the copies that ran; `replicas_max` is the most copies that ran in a minute (one more than the machine has while a new version comes up beside the one that serves); `cpu_replica_max_millicores` and `memory_replica_max_bytes` are the most one copy used — what `limits` holds a copy to. `limits` is what the machine's size gives a copy now — a shared size wakes with a burst CPU (1000m) and settles to its own once it answers — and how many copies it runs while awake. Kept: a machine's minutes 48 hours, its hours 30 days; what is older is deleted, and a deleted machine's is deleted within the hour after it has gone. Buckets are UTC: minute, hour, day.
|
|
2897
2897
|
*/
|
|
2898
2898
|
getMachineMetrics(input: {
|
|
2899
2899
|
path: {
|
|
@@ -3396,7 +3396,7 @@ export declare function client(t: Transport): {
|
|
|
3396
3396
|
/**
|
|
3397
3397
|
* Move a machine to another environment of its project
|
|
3398
3398
|
*
|
|
3399
|
-
* Binds the machine to another environment of its project
|
|
3399
|
+
* Binds the machine to another environment of its project: it takes that environment's settings, secrets and modules from its next start, and its address names it (<name>-<the environment's ref>). The platform moves it out of the environment it leaves and into the new one at the version it serves: the machine says where it is moving (moving_to) until it completes, and the previous environment keeps answering until the new one is up (moved_from; ten minutes at most). It continues to answer at the former address (former_urls). Its custom domains move with it and answer throughout: none of them may already exist in the new environment (domain_in_environment); they are the project's, counted across its environments. Its pull requests' previews are closed; a new push opens them in the new environment. Its database stays where it is kept and remains accessible across environments. Its name must be unique in the target environment (name_taken). It needs the admin role in both environments (environment_role_required); an environment-scoped token or key cannot move resources out of its environment (environment_not_found).
|
|
3400
3400
|
*/
|
|
3401
3401
|
moveMachine(input: {
|
|
3402
3402
|
path: {
|
|
@@ -3408,7 +3408,7 @@ export declare function client(t: Transport): {
|
|
|
3408
3408
|
/**
|
|
3409
3409
|
* Move a site to another environment of its project
|
|
3410
3410
|
*
|
|
3411
|
-
* Binds the site to another environment of its project
|
|
3411
|
+
* Binds the site to another environment of its project: the platform copies its files and releases to the new environment while it keeps serving where it is, then switches its releases, builds, and custom domains atomically; its address names the new environment from then on (<name>-<the environment's ref>), and it continues answering at its previous address (urls). Its pull requests' previews are closed; a new push opens them in the new environment. Any in-flight build is stopped and rebuilt in the new environment; the GitHub installation it builds through is linked to the new environment when needed. Meanwhile changes are refused (409 site_moving), and moving to its current environment cancels a pending move. The new environment must have capacity for another site (too_many_sites), no site of its name (name_taken) and none of its domains added (domain_in_environment). A suspended site cannot be moved (site_taken_down). It needs the admin role in both environments (environment_role_required); an environment-scoped token or key cannot move resources out of its environment (environment_not_found). A move that cannot be completed is canceled with the reason in move_note.
|
|
3412
3412
|
*/
|
|
3413
3413
|
moveSite(input: {
|
|
3414
3414
|
path: {
|
|
@@ -3420,7 +3420,7 @@ export declare function client(t: Transport): {
|
|
|
3420
3420
|
/**
|
|
3421
3421
|
* Move a database to another environment of its project
|
|
3422
3422
|
*
|
|
3423
|
-
* Binds the database to another environment of its project
|
|
3423
|
+
* Binds the database to another environment of its project: its metadata, billing attribution, and primary host become the new environment's within seconds, while the underlying data stays in place without copying and continues answering throughout. Its host names the new environment from then on (<name>-<the environment's ref>), and its former host continues answering as well (former_hosts); attached machines roll out with the updated host beside the version that serves. Any machines running migrations against this database move with it when with_machines is set — moving together with the database — or the move is refused (migrations_where_kept). A pull request preview's own database cannot be moved (preview_database); one being resized, restored or archived moves once that finishes (database_busy). The new environment must have capacity for it (too_many_databases, size_not_available, backup_days_not_available) and no database of its name (name_taken). Meanwhile changes are refused (409 database_moving), and moving to its current environment cancels a pending move. It needs the admin role in both environments (environment_role_required); an environment-scoped token or key cannot move resources out of its environment (environment_not_found). A move that cannot be completed is canceled with the reason in move_note.
|
|
3424
3424
|
*/
|
|
3425
3425
|
moveDatabase(input: {
|
|
3426
3426
|
path: {
|
|
@@ -19,7 +19,7 @@ export type ChannelReadiness = {
|
|
|
19
19
|
*/
|
|
20
20
|
reports: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* The project's own providers in failover order, or shared: the platform's sender (email), or Palbase's
|
|
22
|
+
* The project's own providers in failover order, or shared: the platform's sender (email), or Palbase's shared verification channel (verify), billed at carrier cost.
|
|
23
23
|
*/
|
|
24
24
|
via: string[];
|
|
25
25
|
};
|
|
@@ -1922,7 +1922,7 @@ export type NotifyMessage = {
|
|
|
1922
1922
|
parent_id?: string;
|
|
1923
1923
|
priority: "high" | "normal";
|
|
1924
1924
|
/**
|
|
1925
|
-
* The provider it went through: the project's own, or
|
|
1925
|
+
* The provider it went through: the project's own configured provider, or the platform's shared sender.
|
|
1926
1926
|
*/
|
|
1927
1927
|
provider?: string;
|
|
1928
1928
|
provider_message_id?: string;
|
|
@@ -686,7 +686,7 @@ export type CreateIntentRequest = {
|
|
|
686
686
|
*/
|
|
687
687
|
description?: string;
|
|
688
688
|
/**
|
|
689
|
-
* Optional PaymentIntent expiry TTL in seconds (60..86400).
|
|
689
|
+
* Optional PaymentIntent expiry TTL in seconds (60..86400). A payment a wallet and a card pay together lives an hour at most, whatever is asked: its wallet share is held for as long as it lives.
|
|
690
690
|
*/
|
|
691
691
|
expires_in_seconds?: number;
|
|
692
692
|
installments?: InstallmentConfig;
|
|
@@ -2328,13 +2328,21 @@ export type SplitLifecycleEvent = {
|
|
|
2328
2328
|
split_id: string;
|
|
2329
2329
|
};
|
|
2330
2330
|
/**
|
|
2331
|
-
* Refund all or part of one marketplace payment split line.
|
|
2331
|
+
* Refund all or part of one marketplace payment split line. Either `amount` (and `destination`), or the amounts by name — where each goes and who gives it back, for a server that keeps its own books; the two together answer `400 invalid_refund`.
|
|
2332
2332
|
*/
|
|
2333
2333
|
export type SplitRefundRequest = {
|
|
2334
|
+
/**
|
|
2335
|
+
* What the buyer is given back of this split, given alone: payments works out the rest from the split's own amounts — to the card first, as far as the card paid and was not given back, the rest to the wallet; and what the seller, the platform's fee, the tax withheld and the platform's discount each give back, each the share of its whole that the split's refunds so far are of what the buyer paid. A split refunded in parts gives back exactly its own amounts.
|
|
2336
|
+
*/
|
|
2337
|
+
amount?: number;
|
|
2334
2338
|
/**
|
|
2335
2339
|
* Card amount to refund to buyer.
|
|
2336
2340
|
*/
|
|
2337
|
-
card_refund_amount
|
|
2341
|
+
card_refund_amount?: number;
|
|
2342
|
+
/**
|
|
2343
|
+
* With amount: original (the default) or wallet — the whole of it to the buyer's wallet.
|
|
2344
|
+
*/
|
|
2345
|
+
destination?: string;
|
|
2338
2346
|
/**
|
|
2339
2347
|
* Commission fee reversed.
|
|
2340
2348
|
*/
|
|
@@ -2346,7 +2354,7 @@ export type SplitRefundRequest = {
|
|
|
2346
2354
|
/**
|
|
2347
2355
|
* Amount clawed back from seller escrow, payable, or debt.
|
|
2348
2356
|
*/
|
|
2349
|
-
seller_clawback_amount
|
|
2357
|
+
seller_clawback_amount?: number;
|
|
2350
2358
|
/**
|
|
2351
2359
|
* Platform subsidy reversed.
|
|
2352
2360
|
*/
|
|
@@ -2364,10 +2372,18 @@ export type SplitRefundRequest = {
|
|
|
2364
2372
|
* Outcome of a marketplace split refund.
|
|
2365
2373
|
*/
|
|
2366
2374
|
export type SplitRefundResponse = {
|
|
2375
|
+
/**
|
|
2376
|
+
* What went back to the card.
|
|
2377
|
+
*/
|
|
2378
|
+
card_refund_amount?: number;
|
|
2367
2379
|
/**
|
|
2368
2380
|
* Updated split escrow status.
|
|
2369
2381
|
*/
|
|
2370
2382
|
escrow_status: string;
|
|
2383
|
+
/**
|
|
2384
|
+
* The platform fee given back with it.
|
|
2385
|
+
*/
|
|
2386
|
+
platform_fee_reversed_amount?: number;
|
|
2371
2387
|
/**
|
|
2372
2388
|
* Provider refund reference.
|
|
2373
2389
|
*/
|
|
@@ -2384,10 +2400,22 @@ export type SplitRefundResponse = {
|
|
|
2384
2400
|
* Created refund_split UUID.
|
|
2385
2401
|
*/
|
|
2386
2402
|
refund_split_id: string;
|
|
2403
|
+
/**
|
|
2404
|
+
* True when this answer is of a refund the same Idempotency-Key made before.
|
|
2405
|
+
*/
|
|
2406
|
+
replayed?: boolean;
|
|
2407
|
+
/**
|
|
2408
|
+
* The seller's share of the refund.
|
|
2409
|
+
*/
|
|
2410
|
+
seller_clawback_amount?: number;
|
|
2387
2411
|
/**
|
|
2388
2412
|
* Parent split UUID.
|
|
2389
2413
|
*/
|
|
2390
2414
|
split_id: string;
|
|
2415
|
+
/**
|
|
2416
|
+
* What went back to the buyer's wallet.
|
|
2417
|
+
*/
|
|
2418
|
+
wallet_refund_amount?: number;
|
|
2391
2419
|
};
|
|
2392
2420
|
/**
|
|
2393
2421
|
* Mint a one-time grant to install the Palbase Stripe App.
|
|
@@ -3201,6 +3229,32 @@ export type WalletVestedEvent = {
|
|
|
3201
3229
|
*/
|
|
3202
3230
|
wallet_key: string;
|
|
3203
3231
|
};
|
|
3232
|
+
/**
|
|
3233
|
+
* What the provider did with the refund that is pending.
|
|
3234
|
+
*/
|
|
3235
|
+
export type SettlePendingRefundRequest = {
|
|
3236
|
+
/**
|
|
3237
|
+
* true when the provider made the refund, false when it did not.
|
|
3238
|
+
*/
|
|
3239
|
+
made: boolean;
|
|
3240
|
+
};
|
|
3241
|
+
/**
|
|
3242
|
+
* The pending refund as it was settled.
|
|
3243
|
+
*/
|
|
3244
|
+
export type PendingRefundSettled = {
|
|
3245
|
+
/**
|
|
3246
|
+
* PaymentIntent UUID.
|
|
3247
|
+
*/
|
|
3248
|
+
intent_id?: string;
|
|
3249
|
+
/**
|
|
3250
|
+
* The Idempotency-Key the pending refund was asked under: send that request again when it was made.
|
|
3251
|
+
*/
|
|
3252
|
+
idempotency_key?: string;
|
|
3253
|
+
/**
|
|
3254
|
+
* What was said of it.
|
|
3255
|
+
*/
|
|
3256
|
+
made?: boolean;
|
|
3257
|
+
};
|
|
3204
3258
|
/** The events this module sends the project's webhooks (x-palbase-events), by type: each one's payload, the event's data. */
|
|
3205
3259
|
export interface Events {
|
|
3206
3260
|
/**
|
|
@@ -3321,7 +3375,7 @@ export declare function client(t: Transport): {
|
|
|
3321
3375
|
/**
|
|
3322
3376
|
* Handle GET provider callback
|
|
3323
3377
|
*
|
|
3324
|
-
* Central 3DS / Checkout callback bridge:
|
|
3378
|
+
* Central 3DS / Checkout callback bridge: asks the provider how the attempt's payment stands, by what the attempt was given when it was made (a session, token or payment id in the request names nothing), settles the PaymentIntent only if the answer is that attempt's own, and redirects or posts a message back to the app.
|
|
3325
3379
|
*/
|
|
3326
3380
|
providerCallbackGet(input: {
|
|
3327
3381
|
path: {
|
|
@@ -3337,7 +3391,7 @@ export declare function client(t: Transport): {
|
|
|
3337
3391
|
/**
|
|
3338
3392
|
* Handle POST provider callback
|
|
3339
3393
|
*
|
|
3340
|
-
* Central POST->GET callback bridge for Turkish bank 3DS / iyzico form callbacks.
|
|
3394
|
+
* Central POST->GET callback bridge for Turkish bank 3DS / iyzico form callbacks. Asks the provider how the attempt's payment stands, by what the attempt was given when it was made (a posted token names nothing; a 3-D Secure completion takes the bank's paymentId only when it is the one 3-D Secure began with), settles the PaymentIntent only if the answer is that attempt's own, and returns a clean redirect/postMessage bridge page.
|
|
3341
3395
|
*/
|
|
3342
3396
|
providerCallbackPost(input: {
|
|
3343
3397
|
path: {
|
|
@@ -3378,7 +3432,7 @@ export declare function client(t: Transport): {
|
|
|
3378
3432
|
/**
|
|
3379
3433
|
* Create credential connect grant
|
|
3380
3434
|
*
|
|
3381
|
-
* Mints a one-time browser URL so a human can connect Stripe, iyzico, or Masterpass credentials without passing secrets through an AI agent or CLI.
|
|
3435
|
+
* Mints a one-time browser URL so a human can connect Stripe, iyzico, or Masterpass credentials without passing secrets through an AI agent or CLI. The link names its channel (what is typed on the page names it only when the link names none) and is used once. A link an environment's token asks for sets up a project's first payment channel: with a channel connected already it sets up none and replaces none (409 channel_exists) — a channel is a buyer's to name at checkout, so a new one beside the project's own would take payments too.
|
|
3382
3436
|
*/
|
|
3383
3437
|
createChannelGrant(input: {
|
|
3384
3438
|
body: ChannelGrantRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -3420,7 +3474,7 @@ export declare function client(t: Transport): {
|
|
|
3420
3474
|
/**
|
|
3421
3475
|
* Set default channel
|
|
3422
3476
|
*
|
|
3423
|
-
* Marks an active payment channel as the project's default fallback channel.
|
|
3477
|
+
* Marks an active payment channel as the project's default fallback channel. Not an environment token's: which channel a payment goes to outlives the token.
|
|
3424
3478
|
*/
|
|
3425
3479
|
setDefaultChannel(input: {
|
|
3426
3480
|
path: {
|
|
@@ -3536,6 +3590,21 @@ export declare function client(t: Transport): {
|
|
|
3536
3590
|
body?: CancelIntentRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
3537
3591
|
signal?: AbortSignal;
|
|
3538
3592
|
}): Promise<Reply<200, IntentView>>;
|
|
3593
|
+
/**
|
|
3594
|
+
* Settle a pending refund
|
|
3595
|
+
*
|
|
3596
|
+
* The project's word on a refund that was asked of its provider and never written down — the provider did not answer, or the answer was lost — after which every refund of the payment answers `409 refund_pending`. Look the refund up at the provider and say what it did: `made: true` and the same request, sent again under its Idempotency-Key, writes the refund without asking the provider; `made: false` and the key is let go, the payment refunded as before; on Stripe the same request sent again goes under its own key, and is answered with the refund were it made after all. A refund the provider refused for certain is asked for again as a new request: a provider that keeps a key keeps its first answer with it. With a refund of the payment being made at the moment the answer is `409 refund_in_progress`: ask again. With nothing pending the answer is `409 no_pending_refund`. Palbase does not guess: a provider that takes the key for a name only would give the money back twice.
|
|
3597
|
+
*/
|
|
3598
|
+
settlePendingRefund(input: {
|
|
3599
|
+
path: {
|
|
3600
|
+
intent_id: string;
|
|
3601
|
+
};
|
|
3602
|
+
headers?: {
|
|
3603
|
+
"Idempotency-Key"?: string;
|
|
3604
|
+
};
|
|
3605
|
+
body: SettlePendingRefundRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
3606
|
+
signal?: AbortSignal;
|
|
3607
|
+
}): Promise<Reply<200, PendingRefundSettled>>;
|
|
3539
3608
|
/**
|
|
3540
3609
|
* Capture authorized payment
|
|
3541
3610
|
*
|
|
@@ -3700,7 +3769,7 @@ export declare function client(t: Transport): {
|
|
|
3700
3769
|
/**
|
|
3701
3770
|
* Create refund
|
|
3702
3771
|
*
|
|
3703
|
-
* Issues a full or partial refund to the original card (automatically choosing iyzico cancel vs refund) or instantly to the customer's wallet (`destination: "wallet"`). Requires Idempotency-Key.
|
|
3772
|
+
* Issues a full or partial refund to the original card (automatically choosing iyzico cancel vs refund) or instantly to the customer's wallet (`destination: "wallet"`). Requires Idempotency-Key. A payment with marketplace splits is given back through its splits (`POST /payments/splits/{split_id}/refund`), not here: its splits cover all of it, and this refund answers `409 refund_exceeds_remaining`. Asked again under the same Idempotency-Key, for the same amount and destination, it answers the refund it wrote. A refund its provider failed answers `409 refund_failed`: nothing is written, and the same Idempotency-Key asks again. One the provider has taken and not finished yet is answered with `status: "pending"` and counted as given — against what is left of the payment, and with the wallet's share of it. A provider is not asked twice for the same money. A refund the provider did not answer — in time, or so it could be read — answers `502 provider_unavailable` and may have been made: until it is known, every refund of the payment answers `409 refund_pending`. On Stripe the same Idempotency-Key, sent again within a day, asks again and is the same refund (Stripe answers a key with what it answered the first time, a failure of its own too); otherwise say what the provider did with `POST /payments/intents/{intent_id}/pending-refund`.
|
|
3704
3773
|
*/
|
|
3705
3774
|
createRefund(input: {
|
|
3706
3775
|
headers: {
|
|
@@ -3720,7 +3789,7 @@ export declare function client(t: Transport): {
|
|
|
3720
3789
|
/**
|
|
3721
3790
|
* Replace routing rules
|
|
3722
3791
|
*
|
|
3723
|
-
* Atomically replaces the project's deterministic currency/country/kind channel routing rules.
|
|
3792
|
+
* Atomically replaces the project's deterministic currency/country/kind channel routing rules. Not an environment token's: which channel a payment goes to outlives the token.
|
|
3724
3793
|
*/
|
|
3725
3794
|
replaceRoutingRules(input: {
|
|
3726
3795
|
body: RoutingRulesPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -3821,7 +3890,7 @@ export declare function client(t: Transport): {
|
|
|
3821
3890
|
/**
|
|
3822
3891
|
* Refund marketplace payment split
|
|
3823
3892
|
*
|
|
3824
|
-
* Executes an item-level partial or full marketplace split refund (iyzico v1 paymentTransactionId refund or Stripe refund + Transfer Reversal).
|
|
3893
|
+
* Executes an item-level partial or full marketplace split refund (iyzico v1 paymentTransactionId refund or Stripe refund + Transfer Reversal). A refund is held to what is left of the split and of its payment (`409 refund_exceeds_split`, `409 refund_exceeds_remaining`). Asked again under the same Idempotency-Key — for the same amount — it answers the refund it wrote, with `replayed: true`, and the provider is not asked again; for another amount it answers `409 idempotency_key_reused`. On Stripe, what a transfer already sent the seller is taken back with the refund, whatever its destination, up to what was sent; what is not taken back that way comes out of what the platform still owes the seller, and past that is their debt, set against what they earn next. A refund to a wallet of money (`kind: fiat`) answers `422 marketplace_fiat_wallet_forbidden` unless the project lets marketplace payments fill it (`allow_marketplace_fiat_wallet`). A split whose payment never went through answers `409 intent_not_refundable`. A refund its provider failed answers `409 refund_failed`, and nothing is written; one the provider has taken and not finished yet is counted as given. A provider is not asked twice for the same money. A refund the provider did not answer — in time, or so it could be read — answers `502 provider_unavailable` and may have been made: until it is known, every refund of the payment answers `409 refund_pending`. On Stripe the same Idempotency-Key, sent again within a day, asks again and is the same refund (Stripe answers a key with what it answered the first time, a failure of its own too); otherwise say what the provider did with `POST /payments/intents/{intent_id}/pending-refund`. A split refunded in part before it is approved is approved for what is left of it.
|
|
3825
3894
|
*/
|
|
3826
3895
|
refundPaymentSplit(input: {
|
|
3827
3896
|
path: {
|
|
@@ -3889,7 +3958,7 @@ export declare function client(t: Transport): {
|
|
|
3889
3958
|
/**
|
|
3890
3959
|
* Create or update marketplace sub-merchant
|
|
3891
3960
|
*
|
|
3892
|
-
* Creates or updates a marketplace sub-merchant on iyzico Pazaryeri or Stripe Connect and seals KYC details at rest.
|
|
3961
|
+
* Creates or updates a marketplace sub-merchant on iyzico Pazaryeri or Stripe Connect and seals KYC details at rest. Not an environment token's: where a seller is paid outlives the token.
|
|
3893
3962
|
*/
|
|
3894
3963
|
upsertSubMerchant(input: {
|
|
3895
3964
|
body: UpsertSubMerchantRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -3909,7 +3978,7 @@ export declare function client(t: Transport): {
|
|
|
3909
3978
|
/**
|
|
3910
3979
|
* Create sub-merchant onboarding link
|
|
3911
3980
|
*
|
|
3912
|
-
* Creates a short-lived hosted provider KYC onboarding link (Stripe Connect AccountLink).
|
|
3981
|
+
* Creates a short-lived hosted provider KYC onboarding link (Stripe Connect AccountLink). Not an environment token's: where a seller is paid outlives the token.
|
|
3913
3982
|
*/
|
|
3914
3983
|
createSubMerchantOnboardingLink(input: {
|
|
3915
3984
|
path: {
|
|
@@ -4102,7 +4171,7 @@ export declare function client(t: Transport): {
|
|
|
4102
4171
|
/**
|
|
4103
4172
|
* Receive iyzico webhook
|
|
4104
4173
|
*
|
|
4105
|
-
*
|
|
4174
|
+
* Takes an iyzico webhook delivery as a nudge, signed or not (iyzico signs with `X-IYZ-SIGNATURE-V3` only for a merchant whose account has the signature feature on): finds the payment attempt or subscription of the project the delivery names, asks iyzico how it stands by what the attempt was given when it was made, and settles it only if the answer is that attempt's own. A delivery about nothing of the project's is answered 200 and not kept.
|
|
4106
4175
|
*/
|
|
4107
4176
|
iyzicoWebhook(input?: {
|
|
4108
4177
|
signal?: AbortSignal;
|
|
@@ -3693,7 +3693,7 @@ export declare function client(t: Transport): {
|
|
|
3693
3693
|
/**
|
|
3694
3694
|
* Disconnect the Apple account
|
|
3695
3695
|
*
|
|
3696
|
-
* Forgets the key for good: nothing of it is kept. Emits `stores.apple.changed` (disconnected).
|
|
3696
|
+
* Forgets the key for good: nothing of it is kept. Emits `stores.apple.changed` (disconnected). Not an environment token's: its connect link sets one up where the project has none, and replaces none.
|
|
3697
3697
|
*/
|
|
3698
3698
|
disconnectApple(input?: {
|
|
3699
3699
|
headers?: {
|
|
@@ -3715,7 +3715,7 @@ export declare function client(t: Transport): {
|
|
|
3715
3715
|
/**
|
|
3716
3716
|
* Grant a key's connection
|
|
3717
3717
|
*
|
|
3718
|
-
* A one-time grant, good for 30 minutes, to hand the project an App Store Connect API key. Whoever asks for it never holds the key: the person opens `connect_url` in a browser, or a terminal posts the key to `POST /stores/connect` with the grant. A project holds 10 open grants at most (429 `too_many_grants`).
|
|
3718
|
+
* A one-time grant, good for 30 minutes, to hand the project an App Store Connect API key. Whoever asks for it never holds the key: the person opens `connect_url` in a browser, or a terminal posts the key to `POST /stores/connect` with the grant. A project holds 10 open grants at most (429 `too_many_grants`). A link an environment's token asks for connects a key where the project has none: it replaces no connected key (409 account_exists).
|
|
3719
3719
|
*/
|
|
3720
3720
|
createAppleGrant(input?: {
|
|
3721
3721
|
headers?: {
|
|
@@ -4394,7 +4394,7 @@ export declare function client(t: Transport): {
|
|
|
4394
4394
|
/**
|
|
4395
4395
|
* Disconnect the Apple ID
|
|
4396
4396
|
*
|
|
4397
|
-
* Signs the session out at Apple and forgets it; Apple not answering does not keep it. An owner's or an admin's, or the project's secret key's (403 `admin_required` for a member). Emits `stores.apple.session.changed` (disconnected).
|
|
4397
|
+
* Signs the session out at Apple and forgets it; Apple not answering does not keep it. An owner's or an admin's, or the project's secret key's (403 `admin_required` for a member). Emits `stores.apple.session.changed` (disconnected). Not an environment token's: its connect link sets one up where the project has none, and replaces none.
|
|
4398
4398
|
*/
|
|
4399
4399
|
disconnectAppleSession(input?: {
|
|
4400
4400
|
headers?: {
|