archctx-contracts 0.11.4 → 0.12.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/fixtures/valid/archctx-capabilities.json +1 -1
- package/fixtures/valid/product-version-manifest.json +5 -9
- package/package.json +1 -1
- package/schemas/runtime/product-version-manifest.schema.json +2 -6
- package/src/failure.ts +0 -8
- package/src/index.ts +1 -2
- package/src/ports.ts +0 -35
- package/src/product-version.ts +1 -9
- package/src/review-guards.ts +90 -0
- package/src/schema.ts +0 -2
- package/fixtures/boundary/attestation-v2-error.json +0 -43
- package/fixtures/boundary/check-delivery-dead-letter.json +0 -14
- package/fixtures/boundary/review-challenge-v2-organization.json +0 -15
- package/fixtures/boundary/runner-identity-organization-scope.json +0 -16
- package/fixtures/invalid/attestation-v2-finding-field.json +0 -39
- package/fixtures/invalid/check-delivery-legacy-check-name.json +0 -14
- package/fixtures/invalid/review-challenge-v2-private-field.json +0 -16
- package/fixtures/valid/attestation-v2.json +0 -38
- package/fixtures/valid/attestation.json +0 -25
- package/fixtures/valid/check-delivery.json +0 -14
- package/fixtures/valid/device-identity.json +0 -10
- package/fixtures/valid/governance-key-status.json +0 -11
- package/fixtures/valid/org-runner-identity.json +0 -10
- package/fixtures/valid/review-challenge-v2.json +0 -15
- package/fixtures/valid/runner-identity.json +0 -13
- package/schemas/cloud/attestation-v2.schema.json +0 -85
- package/schemas/cloud/attestation.schema.json +0 -49
- package/schemas/cloud/check-delivery.schema.json +0 -25
- package/schemas/cloud/device-identity.schema.json +0 -18
- package/schemas/cloud/governance-key-status.schema.json +0 -19
- package/schemas/cloud/org-runner-identity.schema.json +0 -21
- package/schemas/cloud/review-challenge-v2.schema.json +0 -23
- package/schemas/cloud/runner-identity.schema.json +0 -42
- package/src/control-plane-routes.ts +0 -35
- package/src/github-governance.ts +0 -850
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://archctx.repoharness.com/schemas/cloud/attestation-v2.schema.json",
|
|
4
|
-
"title": "AttestationV2",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "attestationId", "challengeId", "installationId", "repositoryId", "pullRequestNumber", "headSha", "baseSha", "mergeBaseSha", "headTreeOid", "worktreeDigest", "modelDigest", "policyDigest", "codeFactsDigest", "reviewDigest", "result", "execution", "runtime", "nonce", "startedAt", "completedAt", "expiresAt", "signature"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.attestation/v2" },
|
|
10
|
-
"attestationId": { "type": "string" },
|
|
11
|
-
"challengeId": { "type": "string" },
|
|
12
|
-
"installationId": { "type": "integer", "minimum": 1 },
|
|
13
|
-
"repositoryId": { "type": "integer", "minimum": 1 },
|
|
14
|
-
"pullRequestNumber": { "type": "integer", "minimum": 1 },
|
|
15
|
-
"headSha": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" },
|
|
16
|
-
"baseSha": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" },
|
|
17
|
-
"mergeBaseSha": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" },
|
|
18
|
-
"headTreeOid": { "type": "string" },
|
|
19
|
-
"worktreeDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
20
|
-
"modelDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
21
|
-
"policyDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
22
|
-
"codeFactsDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
23
|
-
"reviewDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
24
|
-
"result": { "type": "string", "enum": ["pass", "fail", "error"] },
|
|
25
|
-
"errorCode": { "type": "string", "enum": ["RUNTIME_VERSION_UNSUPPORTED", "HEAD_UNAVAILABLE", "WORKTREE_NOT_CLEAN", "CODEGRAPH_FAILED", "POLICY_INVALID", "REVIEW_INCOMPLETE"] },
|
|
26
|
-
"execution": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"oneOf": [
|
|
29
|
-
{
|
|
30
|
-
"type": "object",
|
|
31
|
-
"additionalProperties": false,
|
|
32
|
-
"required": ["trustLevel", "source", "principalId", "publicKeyId"],
|
|
33
|
-
"properties": {
|
|
34
|
-
"trustLevel": { "const": "developer" },
|
|
35
|
-
"source": { "const": "clean-commit-worktree" },
|
|
36
|
-
"principalId": { "type": "string" },
|
|
37
|
-
"publicKeyId": { "type": "string" }
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"type": "object",
|
|
42
|
-
"additionalProperties": false,
|
|
43
|
-
"required": ["trustLevel", "source", "principalId", "publicKeyId", "runnerId", "workflowRef", "runId", "runAttempt"],
|
|
44
|
-
"properties": {
|
|
45
|
-
"trustLevel": { "const": "organization" },
|
|
46
|
-
"source": { "const": "organization-runner-checkout" },
|
|
47
|
-
"principalId": { "type": "string" },
|
|
48
|
-
"publicKeyId": { "type": "string" },
|
|
49
|
-
"runnerId": { "type": "string", "pattern": "^runner_[A-Za-z0-9_.-]+$" },
|
|
50
|
-
"workflowRef": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"pattern": "^[^/\\s]+/[^/\\s]+/\\.github/workflows/[^@\\s]+@(refs/(heads|tags)/[^@\\s]+|[a-fA-F0-9]{40})$"
|
|
53
|
-
},
|
|
54
|
-
"runId": { "type": "string", "pattern": "^[1-9][0-9]*$" },
|
|
55
|
-
"runAttempt": { "type": "integer", "minimum": 1 }
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
"runtime": {
|
|
61
|
-
"type": "object",
|
|
62
|
-
"additionalProperties": false,
|
|
63
|
-
"required": ["version", "buildDigest", "codeGraphVersion", "capabilitiesDigest"],
|
|
64
|
-
"properties": {
|
|
65
|
-
"version": { "type": "string" },
|
|
66
|
-
"buildDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
67
|
-
"codeGraphVersion": { "type": "string" },
|
|
68
|
-
"capabilitiesDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"nonce": { "type": "string" },
|
|
72
|
-
"startedAt": { "type": "string" },
|
|
73
|
-
"completedAt": { "type": "string" },
|
|
74
|
-
"expiresAt": { "type": "string" },
|
|
75
|
-
"signature": {
|
|
76
|
-
"type": "object",
|
|
77
|
-
"additionalProperties": false,
|
|
78
|
-
"required": ["algorithm", "value"],
|
|
79
|
-
"properties": {
|
|
80
|
-
"algorithm": { "type": "string", "enum": ["ed25519"] },
|
|
81
|
-
"value": { "type": "string" }
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://archctx.repoharness.com/schemas/cloud/attestation.schema.json",
|
|
4
|
-
"title": "Attestation",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "attestationId", "challengeId", "repository", "headSha", "worktreeDigest", "reviewDigest", "device", "issuedAt", "expiresAt", "trustLevel", "signature"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.attestation/v1" },
|
|
10
|
-
"attestationId": { "type": "string" },
|
|
11
|
-
"challengeId": { "type": "string" },
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"additionalProperties": false,
|
|
15
|
-
"required": ["provider", "owner", "name", "visibility"],
|
|
16
|
-
"properties": {
|
|
17
|
-
"provider": { "type": "string", "enum": ["github"] },
|
|
18
|
-
"owner": { "type": "string" },
|
|
19
|
-
"name": { "type": "string" },
|
|
20
|
-
"visibility": { "type": "string", "enum": ["public", "private"] }
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"headSha": { "type": "string" },
|
|
24
|
-
"worktreeDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
25
|
-
"reviewDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
26
|
-
"device": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"additionalProperties": false,
|
|
29
|
-
"required": ["deviceId", "publicKeyId"],
|
|
30
|
-
"properties": {
|
|
31
|
-
"deviceId": { "type": "string" },
|
|
32
|
-
"publicKeyId": { "type": "string" }
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"issuedAt": { "type": "string" },
|
|
36
|
-
"expiresAt": { "type": "string" },
|
|
37
|
-
"trustLevel": { "type": "string", "enum": ["developer", "organization"] },
|
|
38
|
-
"signature": {
|
|
39
|
-
"type": "object",
|
|
40
|
-
"additionalProperties": false,
|
|
41
|
-
"required": ["alg", "value"],
|
|
42
|
-
"properties": {
|
|
43
|
-
"alg": { "type": "string", "enum": ["ed25519"] },
|
|
44
|
-
"value": { "type": "string" }
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"extensions": { "type": "object", "additionalProperties": true }
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://archctx.repoharness.com/schemas/cloud/check-delivery.schema.json",
|
|
4
|
-
"title": "CheckDelivery",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "deliveryId", "challengeId", "checkName", "headSha", "status", "attemptCount", "createdAt", "updatedAt"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.check-delivery/v1" },
|
|
10
|
-
"deliveryId": { "type": "string" },
|
|
11
|
-
"challengeId": { "type": "string" },
|
|
12
|
-
"checkRunId": { "type": ["string", "null"] },
|
|
13
|
-
"checkName": { "type": "string", "enum": ["ArchContext / Developer Review", "ArchContext / Organization Runner"] },
|
|
14
|
-
"headSha": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" },
|
|
15
|
-
"status": { "type": "string", "enum": ["PENDING", "PUBLISHED", "RETRYING", "DEAD_LETTER"] },
|
|
16
|
-
"attemptCount": { "type": "integer", "minimum": 0 },
|
|
17
|
-
"nextAttemptAt": { "type": ["string", "null"] },
|
|
18
|
-
"lastErrorCode": {
|
|
19
|
-
"type": ["string", "null"],
|
|
20
|
-
"enum": ["CHALLENGE_NOT_FOUND", "CHALLENGE_EXPIRED", "CHALLENGE_SUPERSEDED", "CHALLENGE_ALREADY_CONSUMED", "NONCE_MISMATCH", "REPOSITORY_MISMATCH", "PULL_REQUEST_MISMATCH", "HEAD_SHA_MISMATCH", "BASE_SHA_MISMATCH", "TREE_OID_MISMATCH", "TRUST_LEVEL_MISMATCH", "DIGEST_INVALID", "RUNNER_NOT_FOUND", "RUNNER_REVOKED", "RUNNER_SCOPE_MISMATCH", "WORKFLOW_REF_MISMATCH", "DEVICE_REVOKED", "RUNTIME_VERSION_UNSUPPORTED", "SIGNATURE_INVALID", "PAYLOAD_PRIVACY_VIOLATION", null]
|
|
21
|
-
},
|
|
22
|
-
"createdAt": { "type": "string" },
|
|
23
|
-
"updatedAt": { "type": "string" }
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://archctx.repoharness.com/schemas/cloud/device-identity.schema.json",
|
|
4
|
-
"title": "DeviceIdentity",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "deviceId", "accountId", "publicKeyId", "publicKeyFingerprint", "status", "createdAt"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.device-identity/v1" },
|
|
10
|
-
"deviceId": { "type": "string" },
|
|
11
|
-
"accountId": { "type": "string" },
|
|
12
|
-
"publicKeyId": { "type": "string" },
|
|
13
|
-
"publicKeyFingerprint": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
14
|
-
"status": { "type": "string", "enum": ["active", "revoked"] },
|
|
15
|
-
"createdAt": { "type": "string" },
|
|
16
|
-
"revokedAt": { "type": ["string", "null"] }
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://archctx.repoharness.com/schemas/cloud/governance-key-status.schema.json",
|
|
4
|
-
"title": "GovernanceKeyStatus",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "publicKeyId", "ownerKind", "ownerId", "fingerprint", "status", "createdAt"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.governance-key-status/v1" },
|
|
10
|
-
"publicKeyId": { "type": "string" },
|
|
11
|
-
"ownerKind": { "type": "string", "enum": ["device", "runner"] },
|
|
12
|
-
"ownerId": { "type": "string" },
|
|
13
|
-
"fingerprint": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
14
|
-
"status": { "type": "string", "enum": ["active", "rotating", "revoked"] },
|
|
15
|
-
"createdAt": { "type": "string" },
|
|
16
|
-
"rotatedAt": { "type": ["string", "null"] },
|
|
17
|
-
"revokedAt": { "type": ["string", "null"] }
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://archctx.repoharness.com/schemas/cloud/org-runner-identity.schema.json",
|
|
4
|
-
"title": "OrgRunnerIdentity",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "runnerId", "installationId", "publicKeyId", "publicKeyFingerprint", "status", "createdAt"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.org-runner-identity/v1" },
|
|
10
|
-
"runnerId": { "type": "string" },
|
|
11
|
-
"installationId": { "type": "integer", "minimum": 1 },
|
|
12
|
-
"repositoryNumericIds": { "type": "array", "items": { "type": "integer", "minimum": 1 } },
|
|
13
|
-
"publicKeyId": { "type": "string" },
|
|
14
|
-
"publicKeyFingerprint": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
15
|
-
"status": { "type": "string", "enum": ["active", "revoked"] },
|
|
16
|
-
"createdAt": { "type": "string" },
|
|
17
|
-
"rotatedAt": { "type": "string" },
|
|
18
|
-
"revokedAt": { "type": "string" },
|
|
19
|
-
"extensions": { "type": "object", "additionalProperties": true }
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://archctx.repoharness.com/schemas/cloud/review-challenge-v2.schema.json",
|
|
4
|
-
"title": "ReviewChallengeV2",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "challengeId", "installationId", "repositoryId", "pullRequestNumber", "headSha", "baseSha", "nonce", "requiredTrust", "policyProfileId", "createdAt", "expiresAt", "status"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.review-challenge/v2" },
|
|
10
|
-
"challengeId": { "type": "string" },
|
|
11
|
-
"installationId": { "type": "integer", "minimum": 1 },
|
|
12
|
-
"repositoryId": { "type": "integer", "minimum": 1 },
|
|
13
|
-
"pullRequestNumber": { "type": "integer", "minimum": 1 },
|
|
14
|
-
"headSha": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" },
|
|
15
|
-
"baseSha": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" },
|
|
16
|
-
"nonce": { "type": "string" },
|
|
17
|
-
"requiredTrust": { "type": "string", "enum": ["developer", "organization"] },
|
|
18
|
-
"policyProfileId": { "type": "string" },
|
|
19
|
-
"createdAt": { "type": "string" },
|
|
20
|
-
"expiresAt": { "type": "string" },
|
|
21
|
-
"status": { "type": "string", "enum": ["PENDING", "LEASED", "SUBMITTED", "VERIFIED", "REJECTED", "SUPERSEDED", "EXPIRED"] }
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://archctx.repoharness.com/schemas/cloud/runner-identity.schema.json",
|
|
4
|
-
"title": "RunnerIdentity",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "runnerId", "installationId", "repositoryIds", "workflowRef", "publicKeyId", "publicKeyFingerprint", "status", "createdAt"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schemaVersion": { "const": "archcontext.runner-identity/v1" },
|
|
10
|
-
"runnerId": { "type": "string" },
|
|
11
|
-
"installationId": { "type": "integer", "minimum": 1 },
|
|
12
|
-
"repositoryIds": { "type": "array", "minItems": 0, "items": { "type": "integer", "minimum": 1 } },
|
|
13
|
-
"scope": {
|
|
14
|
-
"oneOf": [
|
|
15
|
-
{
|
|
16
|
-
"type": "object",
|
|
17
|
-
"additionalProperties": false,
|
|
18
|
-
"required": ["kind", "repositoryIds"],
|
|
19
|
-
"properties": {
|
|
20
|
-
"kind": { "const": "repository" },
|
|
21
|
-
"repositoryIds": { "type": "array", "minItems": 1, "items": { "type": "integer", "minimum": 1 } }
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "object",
|
|
26
|
-
"additionalProperties": false,
|
|
27
|
-
"required": ["kind"],
|
|
28
|
-
"properties": {
|
|
29
|
-
"kind": { "const": "organization" }
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"workflowRef": { "type": "string" },
|
|
35
|
-
"publicKeyId": { "type": "string" },
|
|
36
|
-
"publicKeyFingerprint": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
37
|
-
"status": { "type": "string", "enum": ["active", "rotating", "revoked"] },
|
|
38
|
-
"createdAt": { "type": "string" },
|
|
39
|
-
"rotatedAt": { "type": ["string", "null"] },
|
|
40
|
-
"revokedAt": { "type": ["string", "null"] }
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { digestJson } from "./schema";
|
|
2
|
-
|
|
3
|
-
export const CONTROL_PLANE_ROUTES = [
|
|
4
|
-
"GET /oauth/github/start",
|
|
5
|
-
"POST /oauth/github/callback",
|
|
6
|
-
"POST /device/authorize",
|
|
7
|
-
"POST /device/complete",
|
|
8
|
-
"GET /entitlements/:repository",
|
|
9
|
-
"POST /github/webhook",
|
|
10
|
-
"POST /stripe/webhook",
|
|
11
|
-
"GET /v1/challenges",
|
|
12
|
-
"POST /v1/challenges",
|
|
13
|
-
"GET /v1/challenges/:challenge",
|
|
14
|
-
"POST /v1/challenges/:challenge/lease",
|
|
15
|
-
"POST /v1/challenges/:challenge/attestations",
|
|
16
|
-
"POST /v1/challenges/:challenge/cancel",
|
|
17
|
-
"POST /v1/device-keys",
|
|
18
|
-
"POST /v1/device-keys/:device/revoke",
|
|
19
|
-
"POST /v1/runner-keys",
|
|
20
|
-
"POST /v1/runner-keys/:runner/rotate",
|
|
21
|
-
"POST /v1/runner-keys/:runner/revoke",
|
|
22
|
-
"POST /attestations/verify",
|
|
23
|
-
"POST /org-runners",
|
|
24
|
-
"POST /org-runners/:runner/revoke",
|
|
25
|
-
"GET /mcp/metadata",
|
|
26
|
-
"GET /chatgpt/directory",
|
|
27
|
-
"POST /chatgpt/releases/:version/rollback",
|
|
28
|
-
"GET /notifications/providers",
|
|
29
|
-
"PUT /notifications/providers/:provider",
|
|
30
|
-
"POST /notifications/events"
|
|
31
|
-
] as const;
|
|
32
|
-
|
|
33
|
-
export function controlPlaneRouteDigest(routes: readonly string[] = CONTROL_PLANE_ROUTES): string {
|
|
34
|
-
return digestJson([...routes]);
|
|
35
|
-
}
|