@rathnasgala2/schemas 3.17.0 → 3.18.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@3.17.0",
3
+ "package": "@rathnasgala2/schemas@3.18.0",
4
4
  "source": "package-lock.json",
5
5
  "dependencies": [
6
6
  {
@@ -229,9 +229,9 @@
229
229
  "version": "2.0.0",
230
230
  "path": "openapi/openapi.yaml",
231
231
  "materialized": true,
232
- "sourceDigest": "sha256:724c2017e5453ced56aa0d283b317babf8f41431b8b32caa5e8c7173a6484bad",
232
+ "sourceDigest": "sha256:873e58c1c5cff984dbee260f215f8c6f3fd10c8623889ba4618b832814b043a9",
233
233
  "typescriptRootType": null
234
234
  }
235
235
  ],
236
- "digest": "sha256:549dd989c3e26227b981a8d431c1b358b4908d667379a74d8c0dcc8063b6ec2a"
236
+ "digest": "sha256:19ca85ce1d415203baa408ab0d2f560b2f2d185b8c2da61dc0f6a8c3c2551d58"
237
237
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "2.0.0",
3
3
  "sourceDesignRevision": "a53052955ceb6c1aa10c886289dc832eedfe6de0a00004df07d353ac19c4403a",
4
- "openApiDigest": "sha256:724c2017e5453ced56aa0d283b317babf8f41431b8b32caa5e8c7173a6484bad",
4
+ "openApiDigest": "sha256:873e58c1c5cff984dbee260f215f8c6f3fd10c8623889ba4618b832814b043a9",
5
5
  "operations": [
6
6
  {
7
7
  "operationId": "getInternalHealth",
@@ -120,6 +120,19 @@
120
120
  "apiKeyScope": null,
121
121
  "sourceFragment": "callbacks"
122
122
  },
123
+ {
124
+ "operationId": "postCallbacksStripe",
125
+ "method": "POST",
126
+ "path": "/v2/callbacks/stripe",
127
+ "purpose": "accept an authenticated Stripe billing event",
128
+ "capabilityKey": null,
129
+ "conditionalCapabilityKeys": [],
130
+ "activationGate": "MVP",
131
+ "assuranceClass": "SESSION",
132
+ "actionGrant": "none",
133
+ "apiKeyScope": null,
134
+ "sourceFragment": "callbacks"
135
+ },
123
136
  {
124
137
  "operationId": "getClaimsByToken",
125
138
  "method": "GET",
@@ -2686,5 +2699,5 @@
2686
2699
  "sourceFragment": "workloads"
2687
2700
  }
2688
2701
  ],
2689
- "digest": "sha256:7958a1b4349e014c35b83eae61aa2298e0079280957989654536abf109b19a5b"
2702
+ "digest": "sha256:7c2a102c264904a42607e573f34c5c4db46e498fc068c3778e2b5f8c9f023607"
2690
2703
  }
@@ -14269,6 +14269,22 @@ components:
14269
14269
  required:
14270
14270
  - accepted
14271
14271
  type: object
14272
+ PostCallbacksStripeRequest:
14273
+ additionalProperties: true
14274
+ description: Raw Stripe event JSON authenticated over the exact received bytes by the required Stripe-Signature header; the event object is opaque to the contract.
14275
+ type: object
14276
+ PostCallbacksStripeResponse:
14277
+ additionalProperties: false
14278
+ properties:
14279
+ accepted:
14280
+ not:
14281
+ enum:
14282
+ - false
14283
+ type: boolean
14284
+ x-gala-const: true
14285
+ required:
14286
+ - accepted
14287
+ type: object
14272
14288
  PostClaimsByTokenAcceptResponse:
14273
14289
  additionalProperties: false
14274
14290
  properties:
@@ -19445,6 +19461,10 @@ components:
19445
19461
  bearerFormat: Opaque publication-scoped reader token
19446
19462
  scheme: bearer
19447
19463
  type: http
19464
+ stripeWebhookSignature:
19465
+ in: header
19466
+ name: Stripe-Signature
19467
+ type: apiKey
19448
19468
  info:
19449
19469
  description: Executable Galascribe MVP HTTP contract.
19450
19470
  title: Galascribe API
@@ -20569,6 +20589,103 @@ paths:
20569
20589
  - NONE
20570
20590
  x-gala-success-category: oauth-callback
20571
20591
  x-gala-tenant-scope: NONE
20592
+ /v2/callbacks/stripe:
20593
+ post:
20594
+ description: |
20595
+ Stripe billing webhook. The body is the raw Stripe event JSON, opaque to this contract, authenticated by the `Stripe-Signature` header over the exact received bytes (`t=<unix>,v1=<hex>`, HMAC-SHA256 of `<t>.<raw body>`, five-minute tolerance). `200` means the event was accepted, including a duplicate delivery and an event type that is ignored. `400` is a malformed body or a missing, bad or expired signature. `503` means billing is not configured on this deployment.
20596
+ operationId: postCallbacksStripe
20597
+ parameters:
20598
+ - $ref: "#/components/parameters/XCorrelationId"
20599
+ - example: t=1700000000,v1=0000000000000000000000000000000000000000000000000000000000000000
20600
+ in: header
20601
+ name: Stripe-Signature
20602
+ required: true
20603
+ schema:
20604
+ maxLength: 1024
20605
+ minLength: 1
20606
+ type: string
20607
+ requestBody:
20608
+ content:
20609
+ application/json:
20610
+ examples:
20611
+ nominal:
20612
+ summary: Nominal valid request
20613
+ value: {}
20614
+ schema:
20615
+ $ref: "#/components/schemas/PostCallbacksStripeRequest"
20616
+ required: true
20617
+ responses:
20618
+ "200":
20619
+ content:
20620
+ application/json:
20621
+ examples:
20622
+ nominal:
20623
+ summary: Nominal successful response
20624
+ value:
20625
+ accepted: true
20626
+ schema:
20627
+ $ref: "#/components/schemas/PostCallbacksStripeResponse"
20628
+ description: accept an authenticated Stripe billing event succeeded
20629
+ headers:
20630
+ Cache-Control:
20631
+ $ref: "#/components/headers/CacheControlNoStore"
20632
+ X-Correlation-Id:
20633
+ $ref: "#/components/headers/XCorrelationId"
20634
+ "400":
20635
+ $ref: "#/components/responses/ValidationFailed"
20636
+ "413":
20637
+ $ref: "#/components/responses/RequestTooLarge"
20638
+ "415":
20639
+ $ref: "#/components/responses/UnsupportedMediaType"
20640
+ "503":
20641
+ content:
20642
+ application/problem+json:
20643
+ examples:
20644
+ DEPENDENCY_UNAVAILABLE:
20645
+ summary: DEPENDENCY_UNAVAILABLE
20646
+ value:
20647
+ code: DEPENDENCY_UNAVAILABLE
20648
+ correlationId: 018f0000-0000-7000-8000-000000000001
20649
+ detail: See the operation contract.
20650
+ errors: []
20651
+ retryable: true
20652
+ schemaId: urn:gala:schema:problem:2.0.0
20653
+ schemaVersion: 2.0.0
20654
+ status: 503
20655
+ title: DEPENDENCY_UNAVAILABLE
20656
+ type: urn:gala:problem:dependency-unavailable
20657
+ schema:
20658
+ $ref: "#/components/schemas/Problem"
20659
+ description: DEPENDENCY_UNAVAILABLE
20660
+ headers:
20661
+ Cache-Control:
20662
+ $ref: "#/components/headers/CacheControlNoStore"
20663
+ X-Correlation-Id:
20664
+ $ref: "#/components/headers/XCorrelationId"
20665
+ x-gala-problem-codes:
20666
+ - DEPENDENCY_UNAVAILABLE
20667
+ security:
20668
+ - stripeWebhookSignature: []
20669
+ summary: accept an authenticated Stripe billing event
20670
+ tags:
20671
+ - callbacks
20672
+ x-gala-activation-gate: MVP
20673
+ x-gala-activation-guards:
20674
+ - NONE
20675
+ x-gala-capability-key: null
20676
+ x-gala-concurrency: provider-event-id-idempotency-and-event-time-ordering
20677
+ x-gala-conditional-capabilities: []
20678
+ x-gala-example-profile: NOMINAL_SUCCESS_AND_EACH_REACHABLE_PROBLEM
20679
+ x-gala-nullability: required-and-nullable-are-explicit
20680
+ x-gala-purpose: accept an authenticated Stripe billing event
20681
+ x-gala-reachable-problems:
20682
+ - DEPENDENCY_UNAVAILABLE
20683
+ - VALIDATION_FAILED
20684
+ x-gala-replay-identity: stripe-event-id
20685
+ x-gala-state-guards:
20686
+ - NONE
20687
+ x-gala-success-category: billing-callback
20688
+ x-gala-tenant-scope: NONE
20572
20689
  /v2/claims/{token}:
20573
20690
  get:
20574
20691
  description: |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rathnasgala2/schemas",
3
- "version": "3.17.0",
3
+ "version": "3.18.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": "3.17.0",
101
- "bom-ref": "@rathnasgala2/schemas@3.17.0",
100
+ "version": "3.18.0",
101
+ "bom-ref": "@rathnasgala2/schemas@3.18.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@3.17.0?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Frathnasgala2%2Fschema.git",
111
+ "purl": "pkg:npm/%40rathnasgala2/schemas@3.18.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@3.17.0|ajv-formats@3.0.1",
156
+ "bom-ref": "@rathnasgala2/schemas@3.18.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@3.17.0|ajv@8.20.0",
190
+ "bom-ref": "@rathnasgala2/schemas@3.18.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@3.17.0|fast-deep-equal@3.1.3",
224
+ "bom-ref": "@rathnasgala2/schemas@3.18.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.8",
258
- "bom-ref": "@rathnasgala2/schemas@3.17.0|fast-uri@3.1.8",
258
+ "bom-ref": "@rathnasgala2/schemas@3.18.0|fast-uri@3.1.8",
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@3.17.0|json-schema-traverse@1.0.0",
292
+ "bom-ref": "@rathnasgala2/schemas@3.18.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@3.17.0|require-from-string@2.0.2",
326
+ "bom-ref": "@rathnasgala2/schemas@3.18.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@3.17.0",
1067
+ "ref": "@rathnasgala2/schemas@3.18.0",
1068
1068
  "dependsOn": [
1069
- "@rathnasgala2/schemas@3.17.0|ajv-formats@3.0.1",
1070
- "@rathnasgala2/schemas@3.17.0|ajv@8.20.0",
1069
+ "@rathnasgala2/schemas@3.18.0|ajv-formats@3.0.1",
1070
+ "@rathnasgala2/schemas@3.18.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@3.17.0|ajv-formats@3.0.1",
1092
+ "ref": "@rathnasgala2/schemas@3.18.0|ajv-formats@3.0.1",
1093
1093
  "dependsOn": [
1094
- "@rathnasgala2/schemas@3.17.0|ajv@8.20.0"
1094
+ "@rathnasgala2/schemas@3.18.0|ajv@8.20.0"
1095
1095
  ]
1096
1096
  },
1097
1097
  {
1098
- "ref": "@rathnasgala2/schemas@3.17.0|ajv@8.20.0",
1098
+ "ref": "@rathnasgala2/schemas@3.18.0|ajv@8.20.0",
1099
1099
  "dependsOn": [
1100
- "@rathnasgala2/schemas@3.17.0|fast-deep-equal@3.1.3",
1101
- "@rathnasgala2/schemas@3.17.0|fast-uri@3.1.8",
1102
- "@rathnasgala2/schemas@3.17.0|json-schema-traverse@1.0.0",
1103
- "@rathnasgala2/schemas@3.17.0|require-from-string@2.0.2"
1100
+ "@rathnasgala2/schemas@3.18.0|fast-deep-equal@3.1.3",
1101
+ "@rathnasgala2/schemas@3.18.0|fast-uri@3.1.8",
1102
+ "@rathnasgala2/schemas@3.18.0|json-schema-traverse@1.0.0",
1103
+ "@rathnasgala2/schemas@3.18.0|require-from-string@2.0.2"
1104
1104
  ]
1105
1105
  },
1106
1106
  {
1107
- "ref": "@rathnasgala2/schemas@3.17.0|fast-deep-equal@3.1.3"
1107
+ "ref": "@rathnasgala2/schemas@3.18.0|fast-deep-equal@3.1.3"
1108
1108
  },
1109
1109
  {
1110
- "ref": "@rathnasgala2/schemas@3.17.0|fast-uri@3.1.8"
1110
+ "ref": "@rathnasgala2/schemas@3.18.0|fast-uri@3.1.8"
1111
1111
  },
1112
1112
  {
1113
- "ref": "@rathnasgala2/schemas@3.17.0|json-schema-traverse@1.0.0"
1113
+ "ref": "@rathnasgala2/schemas@3.18.0|json-schema-traverse@1.0.0"
1114
1114
  },
1115
1115
  {
1116
- "ref": "@rathnasgala2/schemas@3.17.0|require-from-string@2.0.2"
1116
+ "ref": "@rathnasgala2/schemas@3.18.0|require-from-string@2.0.2"
1117
1117
  },
1118
1118
  {
1119
1119
  "ref": "pkg:npm/semver@7.8.5"