@whooshbang/contracts 1.0.0-rc.21 → 1.0.0-rc.23
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/CHANGELOG.md +32 -0
- package/README.md +9 -3
- package/contract-manifest.json +43 -41
- package/dist/generated/artifact-index.d.ts +35 -35
- package/dist/generated/artifact-index.js +43 -41
- package/dist/generated/artifact-index.js.map +1 -1
- package/dist/generated/validators-standalone.d.ts +340 -288
- package/dist/generated/validators-standalone.js +5560 -2925
- package/dist/generated/validators-standalone.js.map +1 -1
- package/dist/generated/validators.d.ts +12 -8
- package/dist/generated/validators.js +22 -18
- package/dist/generated/validators.js.map +1 -1
- package/dist/generated/whooshbang-event-v1.d.ts +1 -1
- package/dist/generated/whooshbang-v1.d.ts +211 -121
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/fixtures/core-v1/fixture-index.json +50 -34
- package/fixtures/core-v1/problems/credential-organization-mismatch.json +9 -0
- package/fixtures/core-v1/problems/live-simulator-refused.json +16 -0
- package/fixtures/core-v1/problems/project-slug-conflict.json +1 -1
- package/fixtures/core-v1/requests/create-organization-credential.json +4 -0
- package/fixtures/core-v1/requests/update-project.json +3 -0
- package/fixtures/core-v1/scenarios/api-credential-invalid-indistinguishable.json +1 -1
- package/fixtures/core-v1/scenarios/api-credential-one-time-reveal.json +1 -1
- package/fixtures/core-v1/scenarios/api-credential-revocation-replay.json +1 -1
- package/fixtures/core-v1/scenarios/api-credential-rotation-overlap.json +1 -1
- package/fixtures/core-v1/scenarios/cancellation-too-late.json +1 -1
- package/fixtures/core-v1/scenarios/cross-organization-project.json +14 -0
- package/fixtures/core-v1/scenarios/cross-project-resource.json +1 -1
- package/fixtures/core-v1/scenarios/environment-mismatch.json +1 -1
- package/fixtures/core-v1/scenarios/idempotency-conflict.json +1 -1
- package/fixtures/core-v1/scenarios/idempotency-equivalent-replay.json +1 -1
- package/fixtures/core-v1/scenarios/malformed-bearer.json +1 -1
- package/fixtures/core-v1/scenarios/metadata-overrun.json +1 -1
- package/fixtures/core-v1/scenarios/missing-scope.json +1 -1
- package/fixtures/core-v1/scenarios/project-create-equivalent-replay.json +2 -2
- package/fixtures/core-v1/scenarios/project-slug-conflict.json +2 -2
- package/fixtures/core-v1/scenarios/provider-outcome-unknown.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-activation-replay.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-authorization-capability-opacity.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-cross-connection-callback-rejected.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-expired-replay.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-selected-connection-replay.json +1 -1
- package/fixtures/core-v1/success/{account-credential-collection.json → organization-credential-collection.json} +3 -3
- package/fixtures/core-v1/success/organization-credential-created.json +12 -0
- package/fixtures/core-v1/success/{account-credential-revoked.json → organization-credential-revoked.json} +3 -3
- package/fixtures/core-v1/success/{account-credential-rotated.json → organization-credential-rotated.json} +7 -7
- package/fixtures/core-v1/success/{account-projection.json → organization-projection.json} +2 -2
- package/fixtures/core-v1/success/project-collection.json +3 -2
- package/fixtures/core-v1/success/project-created.json +3 -2
- package/fixtures/interaction-machine-v1/scenarios/ack-conflict.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/ack-cross-machine.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/ack-out-of-order.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/ack-replay.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/ambiguous-free-text.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/callback-token-opacity.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/credential-registration-conflict.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/credential-registration-replay.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/credential-revocation-replay.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/credential-rotation.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/first-credential-activates.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-duplicate.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-expired.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-mismatch.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-retired.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-stale.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-admin-denied.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-bound-message-create.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-cancel-denied.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-crash-before-ack.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-notifier-mismatch.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-other-message-read.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-owned-message-read.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-subscriber-mismatch.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/poll-uncommitted-cursor-rejected.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/project-credential-machine-endpoint-denied.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/quarantine-integrity-rejected.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/quarantine-signature-rejected.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/quarantine-valid.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/revoked-machine-credential.json +1 -1
- package/fixtures/recipient-experience-v1/requests/create-recipient-group.json +1 -1
- package/fixtures/recipient-experience-v1/requests/create-subscriber-with-groups.json +1 -1
- package/fixtures/recipient-experience-v1/scenarios/membership-broadcast-snapshot.json +1 -1
- package/fixtures/recipient-experience-v1/scenarios/preferred-binding-resolution.json +1 -1
- package/fixtures/recipient-experience-v1/scenarios/recipient-session-security.json +1 -1
- package/fixtures/recipient-experience-v1/scenarios/subscriber-initial-groups-transaction.json +2 -2
- package/fixtures/recipient-experience-v1/success/recipient-group.json +1 -1
- package/fixtures/whooshbang-events-v1/events/agent-binding-degraded.json +1 -1
- package/fixtures/whooshbang-events-v1/events/interaction-expired.json +1 -1
- package/fixtures/whooshbang-events-v1/events/interaction-received.json +1 -1
- package/fixtures/whooshbang-events-v1/events/message-delivered.json +1 -1
- package/fixtures/whooshbang-events-v1/events/message-expired.json +1 -1
- package/fixtures/whooshbang-events-v1/events/message-failed.json +1 -1
- package/fixtures/whooshbang-events-v1/events/message-provider-accepted.json +1 -1
- package/fixtures/whooshbang-events-v1/events/subscription-activated.json +1 -1
- package/fixtures/whooshbang-events-v1/events/subscription-revoked.json +1 -1
- package/fixtures/whooshbang-events-v1/signing/vectors.json +29 -29
- package/openapi/generated/whooshbang-v1.bundle.json +641 -248
- package/openapi/whooshbang-v1.yaml +403 -189
- package/package.json +1 -1
- package/schemas/core-scenario.schema.json +1 -1
- package/schemas/events/agent-binding-degraded-v1.schema.json +1 -1
- package/schemas/events/interaction-expired-v1.schema.json +1 -1
- package/schemas/events/interaction-received-v1.schema.json +1 -1
- package/schemas/events/message-delivered-v1.schema.json +1 -1
- package/schemas/events/message-expired-v1.schema.json +1 -1
- package/schemas/events/message-failed-v1.schema.json +1 -1
- package/schemas/events/message-provider-accepted-v1.schema.json +1 -1
- package/schemas/events/subscription-activated-v1.schema.json +1 -1
- package/schemas/events/subscription-revoked-v1.schema.json +1 -1
- package/schemas/events/whooshbang-event-v1.schema.json +3 -3
- package/schemas/fixture-index.schema.json +1 -1
- package/schemas/interaction-machine-scenario.schema.json +1 -1
- package/schemas/interaction-v1.schema.json +1 -1
- package/schemas/machine-v1.schema.json +1 -1
- package/schemas/provider-capabilities-v1.schema.json +1 -1
- package/schemas/webhooks/webhook-delivery-case-v1.schema.json +1 -1
- package/schemas/webhooks/webhook-signing-vector-v1.schema.json +1 -1
- package/schemas/whooshbang-v1.schema.json +289 -67
- package/fixtures/core-v1/problems/credential-account-mismatch.json +0 -9
- package/fixtures/core-v1/requests/create-account-credential.json +0 -4
- package/fixtures/core-v1/scenarios/cross-account-project.json +0 -14
- package/fixtures/core-v1/success/account-credential-created.json +0 -12
- /package/fixtures/core-v1/requests/{rotate-account-credential.json → rotate-organization-credential.json} +0 -0
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,eAAe,GAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2CAA2C,EAC3C,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,sBAAsB,EACtB,mCAAmC,GACpC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,EAC7B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,EACjC,kCAAkC,EAClC,oCAAoC,EACpC,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,oCAAoC,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,EAC/B,4BAA4B,EAC5B,gCAAgC,EAChC,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EACL,gCAAgC,EAChC,sCAAsC,EACtC,8BAA8B,EAC9B,2BAA2B,EAC3B,kCAAkC,EAClC,gDAAgD,EAChD,kCAAkC,GACnC,MAAM,4BAA4B,CAAC;AA+CpC,OAAO,EACL,wBAAwB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C,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contract_version": "1.0.0-rc.
|
|
2
|
+
"contract_version": "1.0.0-rc.23",
|
|
3
3
|
"fixtures": [
|
|
4
4
|
{
|
|
5
5
|
"id": "create-project.request",
|
|
@@ -9,11 +9,18 @@
|
|
|
9
9
|
"operation_id": "createProject"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
"id": "
|
|
12
|
+
"id": "update-project.request",
|
|
13
|
+
"kind": "request",
|
|
14
|
+
"path": "fixtures/core-v1/requests/update-project.json",
|
|
15
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/UpdateProjectRequest",
|
|
16
|
+
"operation_id": "updateProject"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "organization-projection.success",
|
|
13
20
|
"kind": "success",
|
|
14
|
-
"path": "fixtures/core-v1/success/
|
|
15
|
-
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/
|
|
16
|
-
"operation_id": "
|
|
21
|
+
"path": "fixtures/core-v1/success/organization-projection.json",
|
|
22
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/OrganizationProjection",
|
|
23
|
+
"operation_id": "getOrganization",
|
|
17
24
|
"status_code": 200
|
|
18
25
|
},
|
|
19
26
|
{
|
|
@@ -71,49 +78,49 @@
|
|
|
71
78
|
"status_code": 201
|
|
72
79
|
},
|
|
73
80
|
{
|
|
74
|
-
"id": "create-
|
|
81
|
+
"id": "create-organization-credential.request",
|
|
75
82
|
"kind": "request",
|
|
76
|
-
"path": "fixtures/core-v1/requests/create-
|
|
77
|
-
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/
|
|
78
|
-
"operation_id": "
|
|
83
|
+
"path": "fixtures/core-v1/requests/create-organization-credential.json",
|
|
84
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/CreateOrganizationCredentialRequest",
|
|
85
|
+
"operation_id": "createOrganizationCredential"
|
|
79
86
|
},
|
|
80
87
|
{
|
|
81
|
-
"id": "rotate-
|
|
88
|
+
"id": "rotate-organization-credential.request",
|
|
82
89
|
"kind": "request",
|
|
83
|
-
"path": "fixtures/core-v1/requests/rotate-
|
|
84
|
-
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/
|
|
85
|
-
"operation_id": "
|
|
90
|
+
"path": "fixtures/core-v1/requests/rotate-organization-credential.json",
|
|
91
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/RotateOrganizationCredentialRequest",
|
|
92
|
+
"operation_id": "rotateOrganizationCredential"
|
|
86
93
|
},
|
|
87
94
|
{
|
|
88
|
-
"id": "
|
|
95
|
+
"id": "organization-credential-created.success",
|
|
89
96
|
"kind": "success",
|
|
90
|
-
"path": "fixtures/core-v1/success/
|
|
91
|
-
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/
|
|
92
|
-
"operation_id": "
|
|
97
|
+
"path": "fixtures/core-v1/success/organization-credential-created.json",
|
|
98
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/OrganizationCredentialSecretReveal",
|
|
99
|
+
"operation_id": "createOrganizationCredential",
|
|
93
100
|
"status_code": 201
|
|
94
101
|
},
|
|
95
102
|
{
|
|
96
|
-
"id": "
|
|
103
|
+
"id": "organization-credential-collection.success",
|
|
97
104
|
"kind": "success",
|
|
98
|
-
"path": "fixtures/core-v1/success/
|
|
99
|
-
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/
|
|
100
|
-
"operation_id": "
|
|
105
|
+
"path": "fixtures/core-v1/success/organization-credential-collection.json",
|
|
106
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/OrganizationCredentialCollection",
|
|
107
|
+
"operation_id": "listOrganizationCredentials",
|
|
101
108
|
"status_code": 200
|
|
102
109
|
},
|
|
103
110
|
{
|
|
104
|
-
"id": "
|
|
111
|
+
"id": "organization-credential-rotated.success",
|
|
105
112
|
"kind": "success",
|
|
106
|
-
"path": "fixtures/core-v1/success/
|
|
107
|
-
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/
|
|
108
|
-
"operation_id": "
|
|
113
|
+
"path": "fixtures/core-v1/success/organization-credential-rotated.json",
|
|
114
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/OrganizationCredentialRotation",
|
|
115
|
+
"operation_id": "rotateOrganizationCredential",
|
|
109
116
|
"status_code": 201
|
|
110
117
|
},
|
|
111
118
|
{
|
|
112
|
-
"id": "
|
|
119
|
+
"id": "organization-credential-revoked.success",
|
|
113
120
|
"kind": "success",
|
|
114
|
-
"path": "fixtures/core-v1/success/
|
|
115
|
-
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/
|
|
116
|
-
"operation_id": "
|
|
121
|
+
"path": "fixtures/core-v1/success/organization-credential-revoked.json",
|
|
122
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/OrganizationCredential",
|
|
123
|
+
"operation_id": "revokeOrganizationCredential",
|
|
117
124
|
"status_code": 200
|
|
118
125
|
},
|
|
119
126
|
{
|
|
@@ -309,12 +316,12 @@
|
|
|
309
316
|
"status_code": 200
|
|
310
317
|
},
|
|
311
318
|
{
|
|
312
|
-
"id": "credential-
|
|
319
|
+
"id": "credential-organization-mismatch.problem",
|
|
313
320
|
"kind": "problem",
|
|
314
|
-
"path": "fixtures/core-v1/problems/credential-
|
|
321
|
+
"path": "fixtures/core-v1/problems/credential-organization-mismatch.json",
|
|
315
322
|
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/Problem",
|
|
316
323
|
"status_code": 403,
|
|
317
|
-
"problem_code": "
|
|
324
|
+
"problem_code": "credential_organization_mismatch"
|
|
318
325
|
},
|
|
319
326
|
{
|
|
320
327
|
"id": "authentication-required.problem",
|
|
@@ -495,9 +502,9 @@
|
|
|
495
502
|
"schema_ref": "schemas/core-scenario.schema.json"
|
|
496
503
|
},
|
|
497
504
|
{
|
|
498
|
-
"id": "cross-
|
|
505
|
+
"id": "cross-organization-project.scenario",
|
|
499
506
|
"kind": "scenario",
|
|
500
|
-
"path": "fixtures/core-v1/scenarios/cross-
|
|
507
|
+
"path": "fixtures/core-v1/scenarios/cross-organization-project.json",
|
|
501
508
|
"schema_ref": "schemas/core-scenario.schema.json"
|
|
502
509
|
},
|
|
503
510
|
{
|
|
@@ -1576,6 +1583,15 @@
|
|
|
1576
1583
|
"kind": "scenario",
|
|
1577
1584
|
"path": "fixtures/recipient-experience-v1/scenarios/membership-broadcast-snapshot.json",
|
|
1578
1585
|
"schema_ref": "schemas/core-scenario.schema.json"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"id": "live-simulator-refused.problem",
|
|
1589
|
+
"kind": "problem",
|
|
1590
|
+
"path": "fixtures/core-v1/problems/live-simulator-refused.json",
|
|
1591
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/Problem",
|
|
1592
|
+
"operation_id": "createMessage",
|
|
1593
|
+
"status_code": 400,
|
|
1594
|
+
"problem_code": "request_invalid"
|
|
1579
1595
|
}
|
|
1580
1596
|
]
|
|
1581
1597
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "https://whooshbang.flowxo.com/problems/credential_organization_mismatch",
|
|
3
|
+
"title": "Credential organization mismatch",
|
|
4
|
+
"status": 403,
|
|
5
|
+
"detail": "This credential cannot reach the project named in the path. An organization credential reaches only the projects in the organization it was created for.",
|
|
6
|
+
"code": "credential_organization_mismatch",
|
|
7
|
+
"diagnostic_id": "diag_credential_organization_mismatch_001",
|
|
8
|
+
"retryable": false
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "https://whooshbang.flowxo.com/problems/request_invalid",
|
|
3
|
+
"title": "Request invalid",
|
|
4
|
+
"status": 400,
|
|
5
|
+
"detail": "One or more request fields are invalid.",
|
|
6
|
+
"code": "request_invalid",
|
|
7
|
+
"diagnostic_id": "diag_live_simulator_refused",
|
|
8
|
+
"retryable": false,
|
|
9
|
+
"field_errors": [
|
|
10
|
+
{
|
|
11
|
+
"code": "test_only_destination",
|
|
12
|
+
"detail": "The test: subscriber prefix and simulator delivery are reserved for test environments.",
|
|
13
|
+
"field": "/to/subscriber_id"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"type": "https://whooshbang.flowxo.com/problems/project_slug_conflict",
|
|
3
3
|
"title": "Project slug conflict",
|
|
4
4
|
"status": 409,
|
|
5
|
-
"detail": "That project slug is already used in this
|
|
5
|
+
"detail": "That project slug is already used in this organization.",
|
|
6
6
|
"code": "project_slug_conflict",
|
|
7
7
|
"diagnostic_id": "diag_project_slug_conflict_001",
|
|
8
8
|
"retryable": false,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.23",
|
|
3
|
+
"id": "cross-organization-project",
|
|
4
|
+
"category": "isolation",
|
|
5
|
+
"given": {
|
|
6
|
+
"authenticated_organization_id": "organization_a",
|
|
7
|
+
"requested_project_id": "project_other_organization_001"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"status": 404,
|
|
11
|
+
"problem_code": "resource_not_found",
|
|
12
|
+
"existence_disclosed": false
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contract_version": "1.0.0-rc.
|
|
2
|
+
"contract_version": "1.0.0-rc.23",
|
|
3
3
|
"id": "project-create-equivalent-replay",
|
|
4
4
|
"category": "idempotency",
|
|
5
5
|
"given": {
|
|
6
|
-
"
|
|
6
|
+
"organization_id": "organization_synthetic_001",
|
|
7
7
|
"operation_id": "createProject",
|
|
8
8
|
"idempotency_key": "project-create-synthetic-001",
|
|
9
9
|
"first_request": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contract_version": "1.0.0-rc.
|
|
2
|
+
"contract_version": "1.0.0-rc.23",
|
|
3
3
|
"id": "project-slug-conflict",
|
|
4
4
|
"category": "idempotency",
|
|
5
5
|
"given": {
|
|
6
|
-
"
|
|
6
|
+
"organization_id": "organization_synthetic_001",
|
|
7
7
|
"existing_project_id": "project_synthetic_001",
|
|
8
8
|
"existing_slug": "synthetic-alerts",
|
|
9
9
|
"request": {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"items": [
|
|
3
3
|
{
|
|
4
|
-
"id": "
|
|
5
|
-
"prefix": "
|
|
4
|
+
"id": "ocred_AAAAAAAAAAAAAAAAAAAAAA",
|
|
5
|
+
"prefix": "wb_oc1.ocred_AAAAAAAA",
|
|
6
6
|
"label": "Synthetic release automation",
|
|
7
|
-
"scopes": ["
|
|
7
|
+
"scopes": ["organization:read", "messages:write", "messages:read"],
|
|
8
8
|
"created_by": "member_synthetic_001",
|
|
9
9
|
"created_at": "2026-07-25T17:45:00Z",
|
|
10
10
|
"last_used_at": "2026-07-25T17:50:00Z",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"credential": {
|
|
3
|
+
"id": "ocred_AAAAAAAAAAAAAAAAAAAAAA",
|
|
4
|
+
"prefix": "wb_oc1.ocred_AAAAAAAA",
|
|
5
|
+
"label": "Synthetic release automation",
|
|
6
|
+
"scopes": ["organization:read", "messages:write", "messages:read"],
|
|
7
|
+
"created_by": "member_synthetic_001",
|
|
8
|
+
"created_at": "2026-07-25T17:45:00Z",
|
|
9
|
+
"status": "active"
|
|
10
|
+
},
|
|
11
|
+
"secret": "wb_oc1.ocred_AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
3
|
-
"prefix": "
|
|
2
|
+
"id": "ocred_AAAAAAAAAAAAAAAAAAAAAA",
|
|
3
|
+
"prefix": "wb_oc1.ocred_AAAAAAAA",
|
|
4
4
|
"label": "Synthetic release automation",
|
|
5
|
-
"scopes": ["
|
|
5
|
+
"scopes": ["organization:read", "messages:write", "messages:read"],
|
|
6
6
|
"created_by": "member_synthetic_001",
|
|
7
7
|
"created_at": "2026-07-25T17:45:00Z",
|
|
8
8
|
"last_used_at": "2026-07-25T17:50:00Z",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"credential": {
|
|
3
3
|
"credential": {
|
|
4
|
-
"id": "
|
|
5
|
-
"prefix": "
|
|
4
|
+
"id": "ocred_BBBBBBBBBBBBBBBBBBBBBA",
|
|
5
|
+
"prefix": "wb_oc1.ocred_BBBBBBBB",
|
|
6
6
|
"label": "Synthetic release automation",
|
|
7
|
-
"scopes": ["
|
|
7
|
+
"scopes": ["organization:read", "messages:write", "messages:read"],
|
|
8
8
|
"created_by": "member_synthetic_001",
|
|
9
9
|
"created_at": "2026-07-25T17:45:00Z",
|
|
10
10
|
"status": "active"
|
|
11
11
|
},
|
|
12
|
-
"secret": "
|
|
12
|
+
"secret": "wb_oc1.ocred_BBBBBBBBBBBBBBBBBBBBBA.BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA"
|
|
13
13
|
},
|
|
14
14
|
"replaced_credential": {
|
|
15
|
-
"id": "
|
|
16
|
-
"prefix": "
|
|
15
|
+
"id": "ocred_AAAAAAAAAAAAAAAAAAAAAA",
|
|
16
|
+
"prefix": "wb_oc1.ocred_AAAAAAAA",
|
|
17
17
|
"label": "Synthetic release automation",
|
|
18
|
-
"scopes": ["
|
|
18
|
+
"scopes": ["organization:read", "messages:write", "messages:read"],
|
|
19
19
|
"created_by": "member_synthetic_001",
|
|
20
20
|
"created_at": "2026-07-25T17:45:00Z",
|
|
21
21
|
"last_used_at": "2026-07-25T17:50:00Z",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "organization_synthetic_001",
|
|
3
3
|
"name": "Synthetic Organization",
|
|
4
4
|
"status": "active",
|
|
5
5
|
"membership": {
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
},
|
|
8
8
|
"created_at": "2026-07-28T12:00:00Z",
|
|
9
9
|
"updated_at": "2026-07-28T12:00:00Z",
|
|
10
|
-
"diagnostic_id": "
|
|
10
|
+
"diagnostic_id": "diag_organization_synthetic_001"
|
|
11
11
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"items": [
|
|
3
3
|
{
|
|
4
4
|
"id": "project_synthetic_001",
|
|
5
|
-
"
|
|
5
|
+
"organization_id": "organization_synthetic_001",
|
|
6
6
|
"name": "Synthetic Alerts",
|
|
7
7
|
"slug": "synthetic-alerts",
|
|
8
8
|
"status": "active",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
],
|
|
38
38
|
"created_at": "2026-07-28T12:05:00Z",
|
|
39
39
|
"updated_at": "2026-07-28T12:05:00Z",
|
|
40
|
-
"diagnostic_id": "diag_project_synthetic_001"
|
|
40
|
+
"diagnostic_id": "diag_project_synthetic_001",
|
|
41
|
+
"privacy_mode": "minimal"
|
|
41
42
|
}
|
|
42
43
|
],
|
|
43
44
|
"page": 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "project_synthetic_001",
|
|
3
|
-
"
|
|
3
|
+
"organization_id": "organization_synthetic_001",
|
|
4
4
|
"name": "Synthetic Alerts",
|
|
5
5
|
"slug": "synthetic-alerts",
|
|
6
6
|
"status": "active",
|
|
@@ -35,5 +35,6 @@
|
|
|
35
35
|
],
|
|
36
36
|
"created_at": "2026-07-28T12:05:00Z",
|
|
37
37
|
"updated_at": "2026-07-28T12:05:00Z",
|
|
38
|
-
"diagnostic_id": "diag_project_synthetic_001"
|
|
38
|
+
"diagnostic_id": "diag_project_synthetic_001",
|
|
39
|
+
"privacy_mode": "minimal"
|
|
39
40
|
}
|