@rathnasgala2/schemas 2.18.0 → 2.20.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "package": "@rathnasgala2/schemas@2.17.0",
3
+ "package": "@rathnasgala2/schemas@2.20.0",
4
4
  "source": "package-lock.json",
5
5
  "dependencies": [
6
6
  {
@@ -209,9 +209,9 @@
209
209
  "version": "2.0.0",
210
210
  "path": "openapi/openapi.yaml",
211
211
  "materialized": true,
212
- "sourceDigest": "sha256:f7384651f46757a1a8274b0ff26186e28f77ce114672c35f331518bc1e742d14",
212
+ "sourceDigest": "sha256:d7c302879abe45afa69b5c7fd889aec759c8182ec887f354a8c864094b8c50d0",
213
213
  "typescriptRootType": null
214
214
  }
215
215
  ],
216
- "digest": "sha256:513bac6a6dfe82cfa3dae53b002ee237d551637ef5d5a561e5297d5153a5baa4"
216
+ "digest": "sha256:868ae1b9d4c5773da3e629b712104822985a2636eed634e37067c68286cdca2e"
217
217
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "2.0.0",
3
3
  "sourceDesignRevision": "a53052955ceb6c1aa10c886289dc832eedfe6de0a00004df07d353ac19c4403a",
4
- "openApiDigest": "sha256:f7384651f46757a1a8274b0ff26186e28f77ce114672c35f331518bc1e742d14",
4
+ "openApiDigest": "sha256:d7c302879abe45afa69b5c7fd889aec759c8182ec887f354a8c864094b8c50d0",
5
5
  "operations": [
6
6
  {
7
7
  "operationId": "getInternalHealth",
@@ -1049,5 +1049,5 @@
1049
1049
  "sourceFragment": "workloads"
1050
1050
  }
1051
1051
  ],
1052
- "digest": "sha256:5d5ea7eb78e21a892b0945d5cc18bccc798e79c8d1e43633d579f8bec7fde2cc"
1052
+ "digest": "sha256:3ee96a2ed4fb6ac08153fc4d845956216910d2f2c641a4e2b32f8a97cead22d8"
1053
1053
  }
@@ -2058,6 +2058,55 @@ components:
2058
2058
  - PUBLIC_OR_PRIVATE
2059
2059
  - UNKNOWN
2060
2060
  type: string
2061
+ GithubPullRequestSummary:
2062
+ additionalProperties: false
2063
+ description: |
2064
+ GitHub's last authoritative observation of the pull request exposing
2065
+ this exact candidate revision for review. The URL is always the
2066
+ canonical web `github.com/{owner}/{repository}/pull/{number}` URL;
2067
+ absence of this object means no pull request has been recorded yet.
2068
+ properties:
2069
+ baseRef:
2070
+ description: The pull request's base branch name as reported by GitHub.
2071
+ maxLength: 255
2072
+ minLength: 1
2073
+ type: string
2074
+ headRef:
2075
+ description: The pull request's head branch name as reported by GitHub.
2076
+ maxLength: 255
2077
+ minLength: 1
2078
+ type: string
2079
+ headRevision:
2080
+ description: The exact commit observed at the pull request head.
2081
+ pattern: ^(?:sha1:[0-9a-f]{40}|sha256:[0-9a-f]{64})$
2082
+ type: string
2083
+ number:
2084
+ format: int64
2085
+ minimum: 1
2086
+ type: integer
2087
+ observedAt:
2088
+ $ref: "#/components/schemas/PortableProblemRfc3339"
2089
+ state:
2090
+ description: GitHub's normalized pull-request lifecycle state.
2091
+ enum:
2092
+ - OPEN
2093
+ - CLOSED
2094
+ - MERGED
2095
+ type: string
2096
+ url:
2097
+ description: The canonical GitHub pull-request URL.
2098
+ format: uri
2099
+ pattern: ^https://github[.]com/[A-Za-z0-9][A-Za-z0-9-]{0,38}/[A-Za-z0-9_.-]{1,100}/pull/[1-9][0-9]*$
2100
+ type: string
2101
+ required:
2102
+ - number
2103
+ - url
2104
+ - headRef
2105
+ - baseRef
2106
+ - headRevision
2107
+ - state
2108
+ - observedAt
2109
+ type: object
2061
2110
  GithubRepositoryStartFrom:
2062
2111
  description: |
2063
2112
  What a created repository starts from. `USER_TEMPLATE` (the default)
@@ -10132,16 +10181,26 @@ components:
10132
10181
  type: object
10133
10182
  PostOrganizationsByOrganizationIdPublicationsByPublicationIdRepositoryChangesByChangeIdConfirmRequest:
10134
10183
  additionalProperties: false
10184
+ description: |
10185
+ Optional compatibility assertions for the persisted plan. When a
10186
+ member is omitted, the server uses the corresponding fact already
10187
+ stored on `changeId`; when supplied, it must exactly match that fact.
10188
+ An empty object therefore confirms the server-persisted plan without
10189
+ requiring a client to echo opaque digests it just received.
10135
10190
  properties:
10136
10191
  diffDigest:
10192
+ description: |
10193
+ Optional assertion of the persisted planned-diff digest. Omit to
10194
+ use the digest stored on `changeId`.
10137
10195
  pattern: ^sha256:[0-9a-f]{64}$
10138
10196
  type: string
10139
10197
  expectedHead:
10198
+ description: |
10199
+ Optional assertion of the persisted expected Git head. Omit to
10200
+ use the head stored on `changeId`.
10140
10201
  pattern: ^(?:sha1:[0-9a-f]{40}|sha256:[0-9a-f]{64})$
10141
10202
  type: string
10142
- required:
10143
- - expectedHead
10144
- - diffDigest
10203
+ required: []
10145
10204
  type: object
10146
10205
  PostOrganizationsByOrganizationIdPublicationsByPublicationIdRepositoryChangesByChangeIdConfirmResponse:
10147
10206
  allOf:
@@ -11873,6 +11932,8 @@ components:
11873
11932
  format: uuid
11874
11933
  pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
11875
11934
  type: string
11935
+ pullRequest:
11936
+ $ref: "#/components/schemas/GithubPullRequestSummary"
11876
11937
  reviewId:
11877
11938
  format: uuid
11878
11939
  pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
@@ -13361,6 +13422,7 @@ paths:
13361
13422
  value:
13362
13423
  hasMore: false
13363
13424
  items: []
13425
+ pagesVisibilityPolicy: UNKNOWN
13364
13426
  schema:
13365
13427
  $ref: "#/components/schemas/GetGithubInstallationsByInstallationIdRepositoriesResponse"
13366
13428
  description: repositories this installation grants to the signed-in user succeeded
@@ -25429,6 +25491,11 @@ paths:
25429
25491
  x-gala-tenant-scope: ORGANIZATION_AND_PUBLICATION_PATH
25430
25492
  /v2/organizations/{organizationId}/publications/{publicationId}/repository-changes/{changeId}:confirm:
25431
25493
  post:
25494
+ description: |
25495
+ Confirm the persisted plan and enqueue creation of its candidate ref,
25496
+ commit and GitHub pull request. `expectedHead` and `diffDigest` are
25497
+ optional compatibility assertions: an omitted member is read from the
25498
+ persisted plan, while a supplied member must match it exactly.
25432
25499
  operationId: postOrganizationsByOrganizationIdPublicationsByPublicationIdRepositoryChangesByChangeIdConfirm
25433
25500
  parameters:
25434
25501
  - $ref: "#/components/parameters/XCorrelationId"
@@ -25462,11 +25529,14 @@ paths:
25462
25529
  content:
25463
25530
  application/json:
25464
25531
  examples:
25465
- nominal:
25466
- summary: Nominal valid request
25532
+ asserted:
25533
+ summary: Confirm while asserting the echoed plan facts
25467
25534
  value:
25468
25535
  diffDigest: sha256:0000000000000000000000000000000000000000000000000000000000000000
25469
25536
  expectedHead: sha1:0000000000000000000000000000000000000000
25537
+ nominal:
25538
+ summary: Confirm using the server-persisted plan facts
25539
+ value: {}
25470
25540
  schema:
25471
25541
  $ref: "#/components/schemas/PostOrganizationsByOrganizationIdPublicationsByPublicationIdRepositoryChangesByChangeIdConfirmRequest"
25472
25542
  required: true
@@ -25485,7 +25555,7 @@ paths:
25485
25555
  statusUrl: /v2/organizations/018f0000-0000-7000-8000-000000000001/operations/018f0000-0000-7000-8000-000000000002
25486
25556
  schema:
25487
25557
  $ref: "#/components/schemas/PostOrganizationsByOrganizationIdPublicationsByPublicationIdRepositoryChangesByChangeIdConfirmResponse"
25488
- description: create candidate ref and commit after exact confirmation succeeded
25558
+ description: candidate ref, commit and GitHub pull-request creation was accepted
25489
25559
  headers:
25490
25560
  Cache-Control:
25491
25561
  $ref: "#/components/headers/CacheControlNoStore"
@@ -25729,7 +25799,7 @@ paths:
25729
25799
  - organizations
25730
25800
  x-gala-activation-gate: MVP
25731
25801
  x-gala-activation-guards:
25732
- - Unchanged expected Git head, normalized reviewed diff, schema version, and actor confirmation
25802
+ - Unchanged persisted expected Git head, normalized reviewed diff, schema version, and actor confirmation
25733
25803
  x-gala-capability-key: publication.source.write
25734
25804
  x-gala-concurrency: planned-change-digest-and-expected-git-head
25735
25805
  x-gala-conditional-capabilities: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rathnasgala2/schemas",
3
- "version": "2.18.0",
3
+ "version": "2.20.0",
4
4
  "description": "Executable JSON Schema and OpenAPI contracts for Galascribe",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/sbom.cdx.json CHANGED
@@ -97,8 +97,8 @@
97
97
  "type": "library",
98
98
  "name": "schemas",
99
99
  "group": "@rathnasgala2",
100
- "version": "2.17.0",
101
- "bom-ref": "@rathnasgala2/schemas@2.17.0",
100
+ "version": "2.20.0",
101
+ "bom-ref": "@rathnasgala2/schemas@2.20.0",
102
102
  "description": "Executable JSON Schema and OpenAPI contracts for Galascribe",
103
103
  "licenses": [
104
104
  {
@@ -108,7 +108,7 @@
108
108
  }
109
109
  }
110
110
  ],
111
- "purl": "pkg:npm/%40rathnasgala2/schemas@2.17.0?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Frathnasgala2%2Fschema.git",
111
+ "purl": "pkg:npm/%40rathnasgala2/schemas@2.20.0?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Frathnasgala2%2Fschema.git",
112
112
  "externalReferences": [
113
113
  {
114
114
  "url": "https://github.com/rathnasgala2/schema/issues",
@@ -153,7 +153,7 @@
153
153
  "type": "library",
154
154
  "name": "ajv-formats",
155
155
  "version": "3.0.1",
156
- "bom-ref": "@rathnasgala2/schemas@2.17.0|ajv-formats@3.0.1",
156
+ "bom-ref": "@rathnasgala2/schemas@2.20.0|ajv-formats@3.0.1",
157
157
  "licenses": [
158
158
  {
159
159
  "license": {
@@ -187,7 +187,7 @@
187
187
  "type": "library",
188
188
  "name": "ajv",
189
189
  "version": "8.20.0",
190
- "bom-ref": "@rathnasgala2/schemas@2.17.0|ajv@8.20.0",
190
+ "bom-ref": "@rathnasgala2/schemas@2.20.0|ajv@8.20.0",
191
191
  "licenses": [
192
192
  {
193
193
  "license": {
@@ -221,7 +221,7 @@
221
221
  "type": "library",
222
222
  "name": "fast-deep-equal",
223
223
  "version": "3.1.3",
224
- "bom-ref": "@rathnasgala2/schemas@2.17.0|fast-deep-equal@3.1.3",
224
+ "bom-ref": "@rathnasgala2/schemas@2.20.0|fast-deep-equal@3.1.3",
225
225
  "licenses": [
226
226
  {
227
227
  "license": {
@@ -255,7 +255,7 @@
255
255
  "type": "library",
256
256
  "name": "fast-uri",
257
257
  "version": "3.1.7",
258
- "bom-ref": "@rathnasgala2/schemas@2.17.0|fast-uri@3.1.7",
258
+ "bom-ref": "@rathnasgala2/schemas@2.20.0|fast-uri@3.1.7",
259
259
  "licenses": [
260
260
  {
261
261
  "license": {
@@ -289,7 +289,7 @@
289
289
  "type": "library",
290
290
  "name": "json-schema-traverse",
291
291
  "version": "1.0.0",
292
- "bom-ref": "@rathnasgala2/schemas@2.17.0|json-schema-traverse@1.0.0",
292
+ "bom-ref": "@rathnasgala2/schemas@2.20.0|json-schema-traverse@1.0.0",
293
293
  "licenses": [
294
294
  {
295
295
  "license": {
@@ -323,7 +323,7 @@
323
323
  "type": "library",
324
324
  "name": "require-from-string",
325
325
  "version": "2.0.2",
326
- "bom-ref": "@rathnasgala2/schemas@2.17.0|require-from-string@2.0.2",
326
+ "bom-ref": "@rathnasgala2/schemas@2.20.0|require-from-string@2.0.2",
327
327
  "licenses": [
328
328
  {
329
329
  "license": {
@@ -1064,10 +1064,10 @@
1064
1064
  ],
1065
1065
  "dependencies": [
1066
1066
  {
1067
- "ref": "@rathnasgala2/schemas@2.17.0",
1067
+ "ref": "@rathnasgala2/schemas@2.20.0",
1068
1068
  "dependsOn": [
1069
- "@rathnasgala2/schemas@2.17.0|ajv-formats@3.0.1",
1070
- "@rathnasgala2/schemas@2.17.0|ajv@8.20.0",
1069
+ "@rathnasgala2/schemas@2.20.0|ajv-formats@3.0.1",
1070
+ "@rathnasgala2/schemas@2.20.0|ajv@8.20.0",
1071
1071
  "pkg:npm/semver@7.8.5",
1072
1072
  "urn:gala:source-data:iana-ipv4-special-registry",
1073
1073
  "urn:gala:source-data:iana-ipv6-special-registry",
@@ -1089,31 +1089,31 @@
1089
1089
  ]
1090
1090
  },
1091
1091
  {
1092
- "ref": "@rathnasgala2/schemas@2.17.0|ajv-formats@3.0.1",
1092
+ "ref": "@rathnasgala2/schemas@2.20.0|ajv-formats@3.0.1",
1093
1093
  "dependsOn": [
1094
- "@rathnasgala2/schemas@2.17.0|ajv@8.20.0"
1094
+ "@rathnasgala2/schemas@2.20.0|ajv@8.20.0"
1095
1095
  ]
1096
1096
  },
1097
1097
  {
1098
- "ref": "@rathnasgala2/schemas@2.17.0|ajv@8.20.0",
1098
+ "ref": "@rathnasgala2/schemas@2.20.0|ajv@8.20.0",
1099
1099
  "dependsOn": [
1100
- "@rathnasgala2/schemas@2.17.0|fast-deep-equal@3.1.3",
1101
- "@rathnasgala2/schemas@2.17.0|fast-uri@3.1.7",
1102
- "@rathnasgala2/schemas@2.17.0|json-schema-traverse@1.0.0",
1103
- "@rathnasgala2/schemas@2.17.0|require-from-string@2.0.2"
1100
+ "@rathnasgala2/schemas@2.20.0|fast-deep-equal@3.1.3",
1101
+ "@rathnasgala2/schemas@2.20.0|fast-uri@3.1.7",
1102
+ "@rathnasgala2/schemas@2.20.0|json-schema-traverse@1.0.0",
1103
+ "@rathnasgala2/schemas@2.20.0|require-from-string@2.0.2"
1104
1104
  ]
1105
1105
  },
1106
1106
  {
1107
- "ref": "@rathnasgala2/schemas@2.17.0|fast-deep-equal@3.1.3"
1107
+ "ref": "@rathnasgala2/schemas@2.20.0|fast-deep-equal@3.1.3"
1108
1108
  },
1109
1109
  {
1110
- "ref": "@rathnasgala2/schemas@2.17.0|fast-uri@3.1.7"
1110
+ "ref": "@rathnasgala2/schemas@2.20.0|fast-uri@3.1.7"
1111
1111
  },
1112
1112
  {
1113
- "ref": "@rathnasgala2/schemas@2.17.0|json-schema-traverse@1.0.0"
1113
+ "ref": "@rathnasgala2/schemas@2.20.0|json-schema-traverse@1.0.0"
1114
1114
  },
1115
1115
  {
1116
- "ref": "@rathnasgala2/schemas@2.17.0|require-from-string@2.0.2"
1116
+ "ref": "@rathnasgala2/schemas@2.20.0|require-from-string@2.0.2"
1117
1117
  },
1118
1118
  {
1119
1119
  "ref": "pkg:npm/semver@7.8.5"