@whooshbang/contracts 3.2.0 → 3.3.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/CHANGELOG.md +5 -0
- package/contract-manifest.json +32 -32
- package/dist/generated/artifact-index.d.ts +33 -33
- package/dist/generated/artifact-index.js +32 -32
- package/dist/generated/validators-standalone.js +1273 -978
- package/dist/generated/validators-standalone.js.map +1 -1
- package/dist/generated/whooshbang-v1.d.ts +28 -7
- package/fixtures/core-v1/fixture-index.json +1 -1
- 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 +1 -1
- 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 +1 -1
- package/fixtures/core-v1/scenarios/project-slug-conflict.json +1 -1
- 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/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/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 +1 -1
- package/fixtures/recipient-experience-v1/success/project-recipient-experience.json +2 -0
- package/openapi/generated/whooshbang-v1.bundle.json +67 -9
- package/openapi/whooshbang-v1.yaml +32 -3
- 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 +1 -1
- 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 +32 -6
|
@@ -4163,11 +4163,16 @@ export interface MessageCategory {
|
|
|
4163
4163
|
level: "low" | "normal" | "high" | "critical";
|
|
4164
4164
|
can_turn_off: boolean;
|
|
4165
4165
|
is_default: boolean;
|
|
4166
|
-
}
|
|
4167
|
-
export interface MessageCategoryCollection {
|
|
4168
4166
|
/**
|
|
4169
|
-
*
|
|
4167
|
+
* Number of subscribers in this project who currently have this category switched off. Returned when listing a project's categories.
|
|
4170
4168
|
*/
|
|
4169
|
+
opted_out_subscriber_count?: number;
|
|
4170
|
+
/**
|
|
4171
|
+
* An RFC 3339 timestamp with a UTC offset. The server is authoritative.
|
|
4172
|
+
*/
|
|
4173
|
+
archived_at?: string;
|
|
4174
|
+
}
|
|
4175
|
+
export interface MessageCategoryCollection {
|
|
4171
4176
|
items: MessageCategory[];
|
|
4172
4177
|
total: ListTotal;
|
|
4173
4178
|
}
|
|
@@ -5808,7 +5813,7 @@ export interface CustomerApplicationManifest {
|
|
|
5808
5813
|
diagnostic_id: DiagnosticId;
|
|
5809
5814
|
}
|
|
5810
5815
|
/**
|
|
5811
|
-
* The project-owned recipient identity, fallback locale,
|
|
5816
|
+
* The project-owned recipient identity, fallback locale, email answer behavior, and category switch visibility. Email answers use one click when no setting has been saved.
|
|
5812
5817
|
*/
|
|
5813
5818
|
export interface ProjectRecipientExperience {
|
|
5814
5819
|
project_id: OpaqueIdentifier;
|
|
@@ -5818,6 +5823,14 @@ export interface ProjectRecipientExperience {
|
|
|
5818
5823
|
* How an email confirm or select button records its bound answer. Defaults to one_click for existing and new projects; free-text answers always use a form.
|
|
5819
5824
|
*/
|
|
5820
5825
|
email_answer_confirmation?: "one_click" | "confirm";
|
|
5826
|
+
/**
|
|
5827
|
+
* Whether subscriber settings show service category switches. A subscriber who already turned a category off still sees its switch. Defaults to true.
|
|
5828
|
+
*/
|
|
5829
|
+
show_service_category_switches: boolean;
|
|
5830
|
+
/**
|
|
5831
|
+
* Whether subscriber settings show marketing category switches. A subscriber who already turned a category off still sees its switch. Defaults to true.
|
|
5832
|
+
*/
|
|
5833
|
+
show_marketing_category_switches: boolean;
|
|
5821
5834
|
row_version: number;
|
|
5822
5835
|
updated_at: Timestamp;
|
|
5823
5836
|
diagnostic_id: DiagnosticId;
|
|
@@ -5835,15 +5848,23 @@ export interface RecipientBrand {
|
|
|
5835
5848
|
color_scheme: "light" | "dark" | "system";
|
|
5836
5849
|
}
|
|
5837
5850
|
/**
|
|
5838
|
-
*
|
|
5851
|
+
* Updates supplied project recipient settings under the last observed row version. Omitted fields keep their current values or project defaults.
|
|
5839
5852
|
*/
|
|
5840
5853
|
export interface UpdateProjectRecipientExperienceRequest {
|
|
5841
|
-
default_locale
|
|
5842
|
-
brand
|
|
5854
|
+
default_locale?: RecipientLanguage;
|
|
5855
|
+
brand?: RecipientBrand;
|
|
5843
5856
|
/**
|
|
5844
5857
|
* Optional project-wide email answer behavior. Omission preserves the current value.
|
|
5845
5858
|
*/
|
|
5846
5859
|
email_answer_confirmation?: "one_click" | "confirm";
|
|
5860
|
+
/**
|
|
5861
|
+
* Show service category switches in subscriber settings. A subscriber who already turned a category off still sees its switch. Omit to keep the current value.
|
|
5862
|
+
*/
|
|
5863
|
+
show_service_category_switches?: boolean;
|
|
5864
|
+
/**
|
|
5865
|
+
* Show marketing category switches in subscriber settings. A subscriber who already turned a category off still sees its switch. Omit to keep the current value.
|
|
5866
|
+
*/
|
|
5867
|
+
show_marketing_category_switches?: boolean;
|
|
5847
5868
|
row_version: number;
|
|
5848
5869
|
}
|
|
5849
5870
|
/**
|