API reference
Definitions
Manifests, release bundles and active versions.
Generated from the public API contract (OpenAPI). Descriptions in the contract are written in Japanese.
Endpoints
Section titled “Endpoints”diffDefinitions
Section titled “diffDefinitions”POST/v1/definitions/diff
Request body
Section titled “Request body”application/json — ManifestsInput
| Name | Type | Required | Description |
|---|---|---|---|
manifests |
Manifest[] | yes | |
prune |
boolean | ||
source |
object |
Responses
Section titled “Responses”- 200 —
DiffResult: 差分と検証の結果 - default —
Problem: RFC 9457 Problem Details
applyDefinitions
Section titled “applyDefinitions”POST/v1/definitions/apply
定義は dev だけで受け付け、draft を作る(有効にするのは ReleaseBundle の有効化)。設定(EnvironmentBinding)は どの環境でも受け付け、すぐ効く。EnvironmentBinding の名前は環境の名前にする
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json — ManifestsInput
| Name | Type | Required | Description |
|---|---|---|---|
manifests |
Manifest[] | yes | |
prune |
boolean | ||
source |
object |
Responses
Section titled “Responses”- 200 —
object: 適用した差分 - default —
Problem: RFC 9457 Problem Details
listDrafts
Section titled “listDrafts”GET/v1/definitions/drafts
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
kind |
query | string |
Responses
Section titled “Responses”- 200 —
object: draft - default —
Problem: RFC 9457 Problem Details
describeDraft
Section titled “describeDraft”GET/v1/definitions/drafts/{kind}/{name}
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
kind |
path | string | yes | |
name |
path | string | yes |
Responses
Section titled “Responses”- 200 —
object: draft と定義のバージョンの履歴 - default —
Problem: RFC 9457 Problem Details
listReleases
Section titled “listReleases”GET/v1/definitions/releases
Responses
Section titled “Responses”- 200 —
object: ReleaseBundle - default —
Problem: RFC 9457 Problem Details
createRelease
Section titled “createRelease”POST/v1/definitions/releases
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
bundle |
string | yes | |
include |
object[] |
Responses
Section titled “Responses”- 201 —
CreatedRelease: ReleaseBundle - default —
Problem: RFC 9457 Problem Details
importRelease
Section titled “importRelease”POST/v1/definitions/releases/import
definitions:release が必要。昇格。前の環境から取り出したマニフェストを、draft を通さずに ReleaseBundle にする。 stage と prod だけで受け付ける。中身が同じなら前の環境と同じ release_id になる。有効化は別に行う
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
bundle |
string | yes | |
manifests |
Manifest[] | yes |
Responses
Section titled “Responses”- 201 —
CreatedRelease: 作った ReleaseBundle - default —
Problem: RFC 9457 Problem Details
exportRelease
Section titled “exportRelease”GET/v1/definitions/releases/{id}/bundle
definitions:read が必要。昇格のために、ReleaseBundle のマニフェストを取り出す
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
Section titled “Responses”- 200 —
object: ReleaseBundle とマニフェスト - default —
Problem: RFC 9457 Problem Details
getRelease
Section titled “getRelease”GET/v1/definitions/releases/{id}
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
Section titled “Responses”- 200 —
object: ReleaseBundle と中身 - default —
Problem: RFC 9457 Problem Details
deleteRelease
Section titled “deleteRelease”DELETE/v1/definitions/releases/{id}
definitions:release が必要。一度も使っていない ReleaseBundle を消す。有効なもの・戻す先・カナリア・有効化を待つもの・ 一度でも有効にしたもの(切り替えの記録が参照する)・案件やスケジュールやレコードが参照するものは消さず、 CONFLICT と残す理由を返す。R2 の本文は digest のキーで不変なので残す
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
Section titled “Responses”- 204: 消した
- default —
Problem: RFC 9457 Problem Details
reviewRelease
Section titled “reviewRelease”POST/v1/definitions/releases/{id}/review
definitions:release が必要。公開ゲートで人が ReleaseBundle を審査して通す。DeciderPolicy で AI に承認を任せる範囲を 広げる ReleaseBundle と、stage・prod で Agent に新しい外への操作のツールを持たせる ReleaseBundle は、この審査がないと 有効化もカナリアもできない。人の主体だけが審査でき、ReleaseBundle を 作った人は審査できない。審査は環境ごとに行う。同じ ReleaseBundle の 2 回目は前の審査を返す
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
comment |
string | yes | 何を確かめたか |
Responses
Section titled “Responses”- 201 —
ReleaseReview: 記録した審査 - default —
Problem: RFC 9457 Problem Details
activateRelease
Section titled “activateRelease”POST/v1/definitions/releases/{id}/activate
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Responses
Section titled “Responses”- 200 —
ActiveRelease: 有効なバージョン - default —
Problem: RFC 9457 Problem Details
getActiveRelease
Section titled “getActiveRelease”GET/v1/definitions/active
Responses
Section titled “Responses”- 200 —
object: 有効なバージョンと履歴 - default —
Problem: RFC 9457 Problem Details
getDefinitionsAt
Section titled “getDefinitionsAt”GET/v1/definitions/at
definitions:read が必要。time の時点で有効だった ReleaseBundle と、そのときの設定(EnvironmentBinding)のリビジョンを返す。 障害の調査と監査に使う
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
time |
query | string | yes |
Responses
Section titled “Responses”- 200 —
object: その時点の有効なバージョンと設定 - default —
Problem: RFC 9457 Problem Details
rollbackRelease
Section titled “rollbackRelease”POST/v1/definitions/rollback
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Responses
Section titled “Responses”- 200 —
ActiveRelease: 有効なバージョン - default —
Problem: RFC 9457 Problem Details
rollbackSetting
Section titled “rollbackSetting”POST/v1/definitions/settings/{kind}/{name}/rollback
設定(EnvironmentBinding・RoleBinding・SourcePolicy)を 1 つ前のリビジョンに戻す。apply と同じ確かめを通り、 新しいリビジョンとして残す。Git から同期しているプロジェクトでは受け付けない。
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
kind |
path | string | yes | |
name |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Responses
Section titled “Responses”- 200 —
Draft: 戻した設定 - default —
Problem: RFC 9457 Problem Details
startCanary
Section titled “startCanary”POST/v1/definitions/releases/{id}/canary
definitions:release が必要。有効なバージョンはそのままに、この ReleaseBundle を、始まる Case の percent % に使い始める (対象のレコードの ID のハッシュで決める)。stage と prod では、有効化と同じ確かめ(評価が通ったか)を通す。 データの索引とスケジュールは合わせないので、Workflow・Agent・割り当ての規則の変更を試すためのもの
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
percent |
integer | yes |
Responses
Section titled “Responses”- 201 —
Canary: 始めたカナリア - default —
Problem: RFC 9457 Problem Details
promoteCanary
Section titled “promoteCanary”POST/v1/definitions/canary/promote
definitions:release が必要。カナリアの ReleaseBundle を有効にする(以後はすべての Case が使う)
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Responses
Section titled “Responses”- 200 —
ActiveRelease: 有効なバージョン - default —
Problem: RFC 9457 Problem Details
abortCanary
Section titled “abortCanary”POST/v1/definitions/canary/abort
definitions:release が必要。カナリアをやめる。カナリアで始まった Case は、そのバージョンのまま動き続ける
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Responses
Section titled “Responses”- 200 —
Canary: やめたカナリア - default —
Problem: RFC 9457 Problem Details
listGitSources
Section titled “listGitSources”GET/v1/definitions/git-sources
definitions:read が必要。pull 型の同期の GitSource と、その同期の状態。GitSource は apply で dev に登録する。 GitSource があるプロジェクトでは、GitSource のほかの apply を受け付けない
Responses
Section titled “Responses”- 200 —
object: GitSource の一覧 - default —
Problem: RFC 9457 Problem Details
getGitSource
Section titled “getGitSource”GET/v1/definitions/git-sources/{name}
definitions:read が必要
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes |
Responses
Section titled “Responses”- 200 —
GitSource: GitSource - default —
Problem: RFC 9457 Problem Details
unregisterGitSource
Section titled “unregisterGitSource”DELETE/v1/definitions/git-sources/{name}
definitions:apply が必要。登録をやめて push 型に戻す(以後は apply を受け付ける)。反映した定義と ReleaseBundle は残る
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes |
Responses
Section titled “Responses”- 204: 登録をやめた
- default —
Problem: RFC 9457 Problem Details
syncGitSource
Section titled “syncGitSource”POST/v1/definitions/git-sources/{name}/sync
definitions:apply と definitions:release が必要。今すぐ ref の先頭のコミットを読んで反映する(Git の通知と同じ)。 検証などで失敗しても 200 で、status の phase が SyncFailed になり、有効な ReleaseBundle は前のまま動く。 一時停止中は 409
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Responses
Section titled “Responses”- 200 —
GitSource: 同期した後の状態 - default —
Problem: RFC 9457 Problem Details
revealGitSourceWebhook
Section titled “revealGitSourceWebhook”POST/v1/definitions/git-sources/{name}/webhook
definitions:apply と definitions:release が必要。GitHub の push の webhook に登録する宛先のパスと秘密値を返す。 秘密値は保存せず鍵から導くので、同じ値が返る。見せたことは監査に残る
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes |
Responses
Section titled “Responses”- 200 —
object: 宛先と秘密値 - default —
Problem: RFC 9457 Problem Details
receiveGitHubWebhook
Section titled “receiveGitHubWebhook”POST/v1/definitions/git-webhooks/github/{tenant}/{project}/{name}
GitHub だけが呼ぶ。本文の署名(x-hub-signature-256)が、この宛先の秘密値のものであることを確かめる。push が同期する ref のものなら 次の alarm で読みに行くようにする。本文のコミットは使わず、ref の先頭を読み直す。同じ x-github-delivery の再送は保存した応答を返す。 push のほかのイベントと、ほかの ref、一時停止中の GitSource への push は受け流す
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant |
path | string | yes | |
project |
path | string | yes | |
name |
path | string | yes | |
x-hub-signature-256 |
header | string | yes | |
x-github-event |
header | string | yes | |
x-github-delivery |
header | string | yes |
Request body
Section titled “Request body”application/json
Responses
Section titled “Responses”- 200 —
object: 受けた結果 - default —
Problem: RFC 9457 Problem Details
pauseGitSource
Section titled “pauseGitSource”POST/v1/definitions/git-sources/{name}/pause
definitions:apply が必要。同期を止める。止めているあいだは Git を読まず、何も反映しない
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Responses
Section titled “Responses”- 200 —
GitSource: 止めた後の状態 - default —
Problem: RFC 9457 Problem Details
resumeGitSource
Section titled “resumeGitSource”POST/v1/definitions/git-sources/{name}/resume
definitions:apply と definitions:release が必要。同期を再開し、すぐに読みに行く
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Responses
Section titled “Responses”- 200 —
GitSource: 再開した後の状態 - default —
Problem: RFC 9457 Problem Details