From e1582c782044ce077113f90aab98254df6c058dd Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 12:33:55 +0000 Subject: [PATCH 1/2] build(codegen): updating SDK --- .changeset/changes_api.md | 20 ++++++ changes.md | 20 ++++++ ...customers-email-confirm-request-builder.ts | 2 + ...customers-email-confirm-request-builder.ts | 2 + ...re-key-me-email-confirm-request-builder.ts | 2 + ...ct-key-me-email-confirm-request-builder.ts | 2 + ...y-customers-email-token-request-builder.ts | 1 + ...y-customers-email-token-request-builder.ts | 3 + ...ustomers-password-token-request-builder.ts | 3 +- ...ustomers-password-token-request-builder.ts | 5 +- ...ustomers-password-reset-request-builder.ts | 4 +- ...ustomers-password-reset-request-builder.ts | 4 +- ...e-key-me-password-reset-request-builder.ts | 2 + ...t-key-me-password-reset-request-builder.ts | 2 + .../src/generated/models/customer.ts | 18 +++++ .../src/generated/models/error.ts | 70 +++++++++++++++++++ .../src/generated/models/message.ts | 56 +++++++++++++-- references.txt | 1 + 18 files changed, 206 insertions(+), 11 deletions(-) diff --git a/.changeset/changes_api.md b/.changeset/changes_api.md index 92f93e938..003356d4b 100644 --- a/.changeset/changes_api.md +++ b/.changeset/changes_api.md @@ -7,6 +7,10 @@
Added Type(s) +- added type `ExpiredCustomerEmailTokenError` +- added type `ExpiredCustomerPasswordTokenError` +- added type `GraphQLExpiredCustomerEmailTokenError` +- added type `GraphQLExpiredCustomerPasswordTokenError` - added type `CheckoutOrderCreationFailedEvent` - added type `CheckoutPaymentAuthorizationCancelledEvent` - added type `CheckoutPaymentAuthorizationFailedEvent` @@ -20,6 +24,22 @@ - added type `CheckoutMessagePaymentsPayloadBaseData`
+
+Added Property(s) + +- added property `invalidateOlderTokens` to type `CustomerCreateEmailToken` +- added property `invalidateOlderTokens` to type `CustomerCreatePasswordResetToken` +- added property `invalidateOlderTokens` to type `CustomerToken` +- added property `value` to type `CustomerEmailTokenCreatedMessage` +- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessage` +- added property `value` to type `CustomerPasswordTokenCreatedMessage` +- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessage` +- added property `value` to type `CustomerEmailTokenCreatedMessagePayload` +- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessagePayload` +- added property `value` to type `CustomerPasswordTokenCreatedMessagePayload` +- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessagePayload` +
+
Added Enum(s) diff --git a/changes.md b/changes.md index c13e8a943..3e41a5ac0 100644 --- a/changes.md +++ b/changes.md @@ -3,6 +3,10 @@
Added Type(s) +- added type `ExpiredCustomerEmailTokenError` +- added type `ExpiredCustomerPasswordTokenError` +- added type `GraphQLExpiredCustomerEmailTokenError` +- added type `GraphQLExpiredCustomerPasswordTokenError` - added type `CheckoutOrderCreationFailedEvent` - added type `CheckoutPaymentAuthorizationCancelledEvent` - added type `CheckoutPaymentAuthorizationFailedEvent` @@ -16,6 +20,22 @@ - added type `CheckoutMessagePaymentsPayloadBaseData`
+
+Added Property(s) + +- added property `invalidateOlderTokens` to type `CustomerCreateEmailToken` +- added property `invalidateOlderTokens` to type `CustomerCreatePasswordResetToken` +- added property `invalidateOlderTokens` to type `CustomerToken` +- added property `value` to type `CustomerEmailTokenCreatedMessage` +- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessage` +- added property `value` to type `CustomerPasswordTokenCreatedMessage` +- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessage` +- added property `value` to type `CustomerEmailTokenCreatedMessagePayload` +- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessagePayload` +- added property `value` to type `CustomerPasswordTokenCreatedMessagePayload` +- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessagePayload` +
+
Added Enum(s) diff --git a/packages/platform-sdk/src/generated/client/confirm/by-project-key-customers-email-confirm-request-builder.ts b/packages/platform-sdk/src/generated/client/confirm/by-project-key-customers-email-confirm-request-builder.ts index dde400bc0..099c81c23 100644 --- a/packages/platform-sdk/src/generated/client/confirm/by-project-key-customers-email-confirm-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/confirm/by-project-key-customers-email-confirm-request-builder.ts @@ -23,6 +23,8 @@ export class ByProjectKeyCustomersEmailConfirmRequestBuilder { * * Verifying the email of the Customer produces the [CustomerEmailVerified](ctp:api:type:CustomerEmailVerifiedMessage) Message. * + * After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency). + * */ public post(methodArgs: { body: CustomerEmailVerify diff --git a/packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-customers-email-confirm-request-builder.ts b/packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-customers-email-confirm-request-builder.ts index c8d7683ce..bec89b14e 100644 --- a/packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-customers-email-confirm-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-customers-email-confirm-request-builder.ts @@ -26,6 +26,8 @@ export class ByProjectKeyInStoreKeyByStoreKeyCustomersEmailConfirmRequestBuilder * * If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error. * + * After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency). + * */ public post(methodArgs: { body: CustomerEmailVerify diff --git a/packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-me-email-confirm-request-builder.ts b/packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-me-email-confirm-request-builder.ts index 85ef31573..cdb6467f1 100644 --- a/packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-me-email-confirm-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-me-email-confirm-request-builder.ts @@ -22,6 +22,8 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmRequestBuilder { /** * This is the last step in the [email verification process of a Customer](/../api/projects/customers#email-verification-of-customer-in-store). Returns a `200 OK` status if successful. * + * After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency). + * * A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios: * * - If no Customer exists with the `id` specified in the [customer:{id}](/scopes#composable-commerce-oauth) scope. diff --git a/packages/platform-sdk/src/generated/client/confirm/by-project-key-me-email-confirm-request-builder.ts b/packages/platform-sdk/src/generated/client/confirm/by-project-key-me-email-confirm-request-builder.ts index 8307bfa3e..e0c3b80d1 100644 --- a/packages/platform-sdk/src/generated/client/confirm/by-project-key-me-email-confirm-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/confirm/by-project-key-me-email-confirm-request-builder.ts @@ -21,6 +21,8 @@ export class ByProjectKeyMeEmailConfirmRequestBuilder { /** * This is the last step in the [email verification process of a Customer](/../api/projects/customers#email-verification-of-customer). * + * After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency). + * */ public post(methodArgs: { body: MyCustomerEmailVerify diff --git a/packages/platform-sdk/src/generated/client/email-token/by-project-key-customers-email-token-request-builder.ts b/packages/platform-sdk/src/generated/client/email-token/by-project-key-customers-email-token-request-builder.ts index 8a4359591..63b4fdff9 100644 --- a/packages/platform-sdk/src/generated/client/email-token/by-project-key-customers-email-token-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/email-token/by-project-key-customers-email-token-request-builder.ts @@ -22,6 +22,7 @@ export class ByProjectKeyCustomersEmailTokenRequestBuilder { * Use this method to create an email token for a global Customer during their [email verification process](/../api/customers-overview#customer-email-verification). * * Creating an email token for the Customer produces the [CustomerEmailTokenCreated](ctp:api:type:CustomerEmailTokenCreatedMessage) Message. + * The Message will include the token's value, if the token's validity is 60 minutes or less. * */ public post(methodArgs: { diff --git a/packages/platform-sdk/src/generated/client/email-token/by-project-key-in-store-key-by-store-key-customers-email-token-request-builder.ts b/packages/platform-sdk/src/generated/client/email-token/by-project-key-in-store-key-by-store-key-customers-email-token-request-builder.ts index 88cf9b4a2..10d9aa3b1 100644 --- a/packages/platform-sdk/src/generated/client/email-token/by-project-key-in-store-key-by-store-key-customers-email-token-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/email-token/by-project-key-in-store-key-by-store-key-customers-email-token-request-builder.ts @@ -24,6 +24,9 @@ export class ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenRequestBuilder { * * If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error. * + * Creating an email token for the Customer produces the [CustomerEmailTokenCreated](ctp:api:type:CustomerEmailTokenCreatedMessage) Message. + * The Message will include the token's value, if the token's validity is 60 minutes or less. + * */ public post(methodArgs: { body: CustomerCreateEmailToken diff --git a/packages/platform-sdk/src/generated/client/password-token/by-project-key-customers-password-token-request-builder.ts b/packages/platform-sdk/src/generated/client/password-token/by-project-key-customers-password-token-request-builder.ts index c150c28a0..d4ac0a72d 100644 --- a/packages/platform-sdk/src/generated/client/password-token/by-project-key-customers-password-token-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/password-token/by-project-key-customers-password-token-request-builder.ts @@ -24,7 +24,8 @@ export class ByProjectKeyCustomersPasswordTokenRequestBuilder { /** * Use this method to create a password reset token for a global Customer during their [password reset process](/../api/customers-overview#customer-password-reset). * - * Creating a password reset token does not invalidate existing tokens. + * Creating a password reset token for the Customer produces the [CustomerPasswordTokenCreated](ctp:api:type:CustomerPasswordTokenCreatedMessage) Message. + * The Message will include the token's value, if the token's validity is 60 minutes or less. * */ public post(methodArgs: { diff --git a/packages/platform-sdk/src/generated/client/password-token/by-project-key-in-store-key-by-store-key-customers-password-token-request-builder.ts b/packages/platform-sdk/src/generated/client/password-token/by-project-key-in-store-key-by-store-key-customers-password-token-request-builder.ts index 4ed50bac5..5936ff696 100644 --- a/packages/platform-sdk/src/generated/client/password-token/by-project-key-in-store-key-by-store-key-customers-password-token-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/password-token/by-project-key-in-store-key-by-store-key-customers-password-token-request-builder.ts @@ -25,10 +25,11 @@ export class ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenRequestBuilde /** * Use this method to create a password reset token for a Store-specific Customer during their [password reset process](/../api/customers-overview#customer-password-reset). * - * Creating a password reset token does not invalidate existing tokens. - * * If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error. * + * Creating a password reset token for the Customer produces the [CustomerPasswordTokenCreated](ctp:api:type:CustomerPasswordTokenCreatedMessage) Message. + * The Message will include the token's value, if the token's validity is 60 minutes or less. + * */ public post(methodArgs: { body: CustomerCreatePasswordResetToken diff --git a/packages/platform-sdk/src/generated/client/reset/by-project-key-customers-password-reset-request-builder.ts b/packages/platform-sdk/src/generated/client/reset/by-project-key-customers-password-reset-request-builder.ts index 5cad1bc9a..8d02b6092 100644 --- a/packages/platform-sdk/src/generated/client/reset/by-project-key-customers-password-reset-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/reset/by-project-key-customers-password-reset-request-builder.ts @@ -21,10 +21,10 @@ export class ByProjectKeyCustomersPasswordResetRequestBuilder { /** * Use this method to reset a global Customer's password during their [password reset process](/../api/customers-overview#customer-password-reset). * - * After the password is reset, any previously issued access and/or refresh tokens created through the [password flow](/authorization#password-flow) or [refresh token flow](/authorization#refresh-token-flow) are invalidated. - * * Resetting the password of the Customer produces the [CustomerPasswordUpdated](ctp:api:type:CustomerPasswordUpdatedMessage) Message with `reset=true`. * + * After the password is reset, all password tokens issued previously through the [password reset flow](/../api/projects/customers#password-reset-of-customer) are invalidated. In addition, any access and refresh tokens issued previously through the [password flow](/../api/authorization#password-flow) and [refresh token flow](/../api/authorization#refresh-token-flow) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency). + * */ public post(methodArgs: { body: CustomerResetPassword diff --git a/packages/platform-sdk/src/generated/client/reset/by-project-key-in-store-key-by-store-key-customers-password-reset-request-builder.ts b/packages/platform-sdk/src/generated/client/reset/by-project-key-in-store-key-by-store-key-customers-password-reset-request-builder.ts index 6c2c324c1..21a263f07 100644 --- a/packages/platform-sdk/src/generated/client/reset/by-project-key-in-store-key-by-store-key-customers-password-reset-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/reset/by-project-key-in-store-key-by-store-key-customers-password-reset-request-builder.ts @@ -22,10 +22,10 @@ export class ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetRequestBuilde /** * Use this method to reset a Store-specific Customer's password during their [password reset process](/../api/customers-overview#customer-password-reset). * - * After the password is reset, any previously issued access and/or refresh tokens created through the [password flow](/authorization#password-flow) or [refresh token flow](/authorization#refresh-token-flow) are invalidated. - * * Resetting the password of the Customer produces the [CustomerPasswordUpdated](ctp:api:type:CustomerPasswordUpdatedMessage) Message with `reset=true`. * + * After the password is reset, all password tokens issued previously through the [password reset flow](/../api/projects/customers#password-reset-of-customer) are invalidated. In addition, any access and refresh tokens issued previously through the [password flow](/../api/authorization#password-flow) and [refresh token flow](/../api/authorization#refresh-token-flow) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency). + * * If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), then this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error. * */ diff --git a/packages/platform-sdk/src/generated/client/reset/by-project-key-in-store-key-by-store-key-me-password-reset-request-builder.ts b/packages/platform-sdk/src/generated/client/reset/by-project-key-in-store-key-by-store-key-me-password-reset-request-builder.ts index 2f77953b9..a07e2fced 100644 --- a/packages/platform-sdk/src/generated/client/reset/by-project-key-in-store-key-by-store-key-me-password-reset-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/reset/by-project-key-in-store-key-by-store-key-me-password-reset-request-builder.ts @@ -24,6 +24,8 @@ export class ByProjectKeyInStoreKeyByStoreKeyMePasswordResetRequestBuilder { * * Resetting a password produces the Customer [CustomerPasswordUpdated](ctp:api:type:CustomerPasswordUpdatedMessage) Message with `reset=true`. * + * After the password is reset, all password tokens issued previously through the [password reset flow](/../api/projects/customers#password-reset-of-customer) are invalidated. In addition, any access and refresh tokens issued previously through the [password flow](/../api/authorization#password-flow) and [refresh token flow](/../api/authorization#refresh-token-flow) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency). + * * A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios: * * - If no Customer exists with the `id` specified in the [customer:{id}](/scopes#composable-commerce-oauth) scope. diff --git a/packages/platform-sdk/src/generated/client/reset/by-project-key-me-password-reset-request-builder.ts b/packages/platform-sdk/src/generated/client/reset/by-project-key-me-password-reset-request-builder.ts index 6f55af26c..bb4fd657a 100644 --- a/packages/platform-sdk/src/generated/client/reset/by-project-key-me-password-reset-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/reset/by-project-key-me-password-reset-request-builder.ts @@ -23,6 +23,8 @@ export class ByProjectKeyMePasswordResetRequestBuilder { * * Resetting a password of the Customer produces the [CustomerPasswordUpdated](ctp:api:type:CustomerPasswordUpdatedMessage) Message with `reset=true`. * + * After the password is reset, all password tokens issued previously through the [password reset flow](/../api/projects/customers#password-reset-of-customer) are invalidated. In addition, any access and refresh tokens issued previously through the [password flow](/../api/authorization#password-flow) and [refresh token flow](/../api/authorization#refresh-token-flow) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency). + * */ public post(methodArgs: { body: MyCustomerResetPassword diff --git a/packages/platform-sdk/src/generated/models/customer.ts b/packages/platform-sdk/src/generated/models/customer.ts index 31bb76e06..70f66b0c4 100644 --- a/packages/platform-sdk/src/generated/models/customer.ts +++ b/packages/platform-sdk/src/generated/models/customer.ts @@ -284,6 +284,12 @@ export interface CustomerCreateEmailToken { * */ readonly ttlMinutes: number + /** + * If set to `true`, all email tokens issued previously for the Customer will be invalidated. + * + * + */ + readonly invalidateOlderTokens?: boolean } export interface CustomerCreatePasswordResetToken { /** @@ -298,6 +304,12 @@ export interface CustomerCreatePasswordResetToken { * */ readonly ttlMinutes?: number + /** + * If set to `true`, all password tokens issued previously for the Customer will be invalidated. + * + * + */ + readonly invalidateOlderTokens?: boolean } export interface CustomerDraft { /** @@ -729,6 +741,12 @@ export interface CustomerToken { * */ readonly expiresAt: string + /** + * If `true`, all tokens issued previously for the Customer will be invalidated. + * + * + */ + readonly invalidateOlderTokens: boolean /** * Date and time (UTC) the token was initially created. * diff --git a/packages/platform-sdk/src/generated/models/error.ts b/packages/platform-sdk/src/generated/models/error.ts index f0b484886..5307b2897 100644 --- a/packages/platform-sdk/src/generated/models/error.ts +++ b/packages/platform-sdk/src/generated/models/error.ts @@ -70,6 +70,8 @@ export type ErrorObject = | EnumKeyDoesNotExistError | EnumValueIsUsedError | EnumValuesMustMatchError + | ExpiredCustomerEmailTokenError + | ExpiredCustomerPasswordTokenError | ExtensionBadResponseError | ExtensionNoResponseError | ExtensionPredicateEvaluationFailedError @@ -838,6 +840,44 @@ export interface AuthErrorResponse extends ErrorResponse { */ readonly errors: ErrorObject[] } +/** + * Returned when the provided email token of the Customer has expired. + * + * The error is returned as a failed response to: + * + * - [Get Customer by email token](ctp:api:endpoint:/{projectKey}/customers/email-token={emailToken}:GET) and [Get Customer in Store by email token](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email-token={emailToken}:GET) requests + * - [Verify email of Customer](ctp:api:endpoint:/{projectKey}/customers/email/confirm:POST) and [Verify email of Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email/confirm:POST) requests + * + */ +export interface ExpiredCustomerEmailTokenError extends IErrorObject { + readonly code: 'ExpiredCustomerEmailToken' + [key: string]: any + /** + * `"The given email token has expired."` + * + * + */ + readonly message: string +} +/** + * Returned when the provided password token of the Customer has expired. + * + * The error is returned as a failed response to: + * + * - [Get Customer by password token](ctp:api:endpoint:/{projectKey}/customers/password-token={passwordToken}:GET) and [Get Customer in Store by password token](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password-token={passwordToken}:GET) requests + * - [Reset password of Customer](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST) and [Reset password of Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password/reset:POST) requests + * + */ +export interface ExpiredCustomerPasswordTokenError extends IErrorObject { + readonly code: 'ExpiredCustomerPasswordToken' + [key: string]: any + /** + * `"The given password token has expired."` + * + * + */ + readonly message: string +} /** * Returned when the response from the API Extension could not be parsed successfully (such as a `500` HTTP status code, or an invalid JSON response). * @@ -2102,6 +2142,8 @@ export type GraphQLErrorObject = | GraphQLEnumKeyDoesNotExistError | GraphQLEnumValueIsUsedError | GraphQLEnumValuesMustMatchError + | GraphQLExpiredCustomerEmailTokenError + | GraphQLExpiredCustomerPasswordTokenError | GraphQLExtensionBadResponseError | GraphQLExtensionNoResponseError | GraphQLExtensionPredicateEvaluationFailedError @@ -2678,6 +2720,34 @@ export interface GraphQLEnumValuesMustMatchError extends IGraphQLErrorObject { readonly code: 'EnumValuesMustMatch' [key: string]: any } +/** + * Returned when the provided email token of the Customer has expired. + * + * The error is returned as a failed response to: + * + * - [Get Customer by email token](ctp:api:endpoint:/{projectKey}/customers/email-token={emailToken}:GET) and [Get Customer in Store by email token](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email-token={emailToken}:GET) requests + * - [Verify email of Customer](ctp:api:endpoint:/{projectKey}/customers/email/confirm:POST) and [Verify email of Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email/confirm:POST) requests + * + */ +export interface GraphQLExpiredCustomerEmailTokenError + extends IGraphQLErrorObject { + readonly code: 'ExpiredCustomerEmailToken' + [key: string]: any +} +/** + * Returned when the provided password token of the Customer has expired. + * + * The error is returned as a failed response to: + * + * - [Get Customer by password token](ctp:api:endpoint:/{projectKey}/customers/password-token={passwordToken}:GET) and [Get Customer in Store by password token](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password-token={passwordToken}:GET) requests + * - [Reset password of Customer](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST) and [Reset password of Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password/reset:POST) requests + * + */ +export interface GraphQLExpiredCustomerPasswordTokenError + extends IGraphQLErrorObject { + readonly code: 'ExpiredCustomerPasswordToken' + [key: string]: any +} /** * Returned when the response from the API Extension could not be parsed successfully (such as a `500` HTTP status code, or an invalid JSON response). * diff --git a/packages/platform-sdk/src/generated/models/message.ts b/packages/platform-sdk/src/generated/models/message.ts index 35343dbdd..f1b873f21 100644 --- a/packages/platform-sdk/src/generated/models/message.ts +++ b/packages/platform-sdk/src/generated/models/message.ts @@ -6373,7 +6373,7 @@ export interface CustomerEmailChangedMessage extends IMessage { readonly email: string } /** - * Generated after a successful [Create email token for Customer](ctp:api:endpoint:/{projectKey}/customers/email-token:POST) request. The `resource` property of the Message is a [CustomerEmailTokenReference](ctp:api:type:CustomerEmailTokenReference). + * Generated after a successful [Create email token for Customer](ctp:api:endpoint:/{projectKey}/customers/email-token:POST) or [Create email token for Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email-token:POST) request. The `resource` property of the Message is a [CustomerEmailTokenReference](ctp:api:type:CustomerEmailTokenReference). * */ export interface CustomerEmailTokenCreatedMessage extends IMessage { @@ -6447,6 +6447,18 @@ export interface CustomerEmailTokenCreatedMessage extends IMessage { * */ readonly expiresAt: string + /** + * Value of the token, present only if the token's validity is 60 minutes or less. + * + * + */ + readonly value?: string + /** + * If `true`, all email tokens issued previously for the Customer are invalidated. + * + * + */ + readonly invalidateOlderTokens: boolean } /** * Generated after a successful [Verify Customer's Email](ctp:api:endpoint:/{projectKey}/customers/email/confirm:POST) request. @@ -7306,7 +7318,7 @@ export interface CustomerLastNameSetMessage extends IMessage { readonly lastName?: string } /** - * Generated after a successful [Create password reset token for Customer](ctp:api:endpoint:/{projectKey}/customers/password-token:POST) request. The `resource` property of the Message is a [CustomerPasswordTokenReference](ctp:api:type:CustomerPasswordTokenReference). + * Generated after a successful [Create password reset token for Customer](ctp:api:endpoint:/{projectKey}/customers/password-token:POST) or [Create password reset token for Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password-token:POST) request. The `resource` property of the Message is a [CustomerPasswordTokenReference](ctp:api:type:CustomerPasswordTokenReference). * */ export interface CustomerPasswordTokenCreatedMessage extends IMessage { @@ -7380,6 +7392,18 @@ export interface CustomerPasswordTokenCreatedMessage extends IMessage { * */ readonly expiresAt: string + /** + * Value of the token, present only if the token's validity is 60 minutes or less. + * + * + */ + readonly value?: string + /** + * If `true`, all password tokens issued previously for the Customer are invalidated. + * + * + */ + readonly invalidateOlderTokens: boolean } /** * Generated after a successful [Reset Customer's Password](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST), [Reset Customer's Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password/reset:POST), [Change Customer's Password](ctp:api:endpoint:/{projectKey}/customers/password:POST), or [Change Customer's Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password:POST) request. This Message is also produced during equivalent requests to the [My Customer Profile](/../api/projects/me-profile) endpoint. @@ -21673,7 +21697,7 @@ export interface CustomerEmailChangedMessagePayload extends IMessagePayload { readonly email: string } /** - * Generated after a successful [Create email token for Customer](ctp:api:endpoint:/{projectKey}/customers/email-token:POST) request. The `resource` property of the Message is a [CustomerEmailTokenReference](ctp:api:type:CustomerEmailTokenReference). + * Generated after a successful [Create email token for Customer](ctp:api:endpoint:/{projectKey}/customers/email-token:POST) or [Create email token for Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email-token:POST) request. The `resource` property of the Message is a [CustomerEmailTokenReference](ctp:api:type:CustomerEmailTokenReference). * */ export interface CustomerEmailTokenCreatedMessagePayload @@ -21691,6 +21715,18 @@ export interface CustomerEmailTokenCreatedMessagePayload * */ readonly expiresAt: string + /** + * Value of the token, present only if the token's validity is 60 minutes or less. + * + * + */ + readonly value?: string + /** + * If `true`, all email tokens issued previously for the Customer are invalidated. + * + * + */ + readonly invalidateOlderTokens: boolean } /** * Generated after a successful [Verify Customer's Email](ctp:api:endpoint:/{projectKey}/customers/email/confirm:POST) request. @@ -21874,7 +21910,7 @@ export interface CustomerLastNameSetMessagePayload extends IMessagePayload { readonly lastName?: string } /** - * Generated after a successful [Create password reset token for Customer](ctp:api:endpoint:/{projectKey}/customers/password-token:POST) request. The `resource` property of the Message is a [CustomerPasswordTokenReference](ctp:api:type:CustomerPasswordTokenReference). + * Generated after a successful [Create password reset token for Customer](ctp:api:endpoint:/{projectKey}/customers/password-token:POST) or [Create password reset token for Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password-token:POST) request. The `resource` property of the Message is a [CustomerPasswordTokenReference](ctp:api:type:CustomerPasswordTokenReference). * */ export interface CustomerPasswordTokenCreatedMessagePayload @@ -21892,6 +21928,18 @@ export interface CustomerPasswordTokenCreatedMessagePayload * */ readonly expiresAt: string + /** + * Value of the token, present only if the token's validity is 60 minutes or less. + * + * + */ + readonly value?: string + /** + * If `true`, all password tokens issued previously for the Customer are invalidated. + * + * + */ + readonly invalidateOlderTokens: boolean } /** * Generated after a successful [Reset Customer's Password](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST), [Reset Customer's Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password/reset:POST), [Change Customer's Password](ctp:api:endpoint:/{projectKey}/customers/password:POST), or [Change Customer's Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password:POST) request. This Message is also produced during equivalent requests to the [My Customer Profile](/../api/projects/me-profile) endpoint. diff --git a/references.txt b/references.txt index 87cc6d892..3f310254a 100644 --- a/references.txt +++ b/references.txt @@ -412,3 +412,4 @@ ab2859c84d9f146e5d8556e905538b92af4aa044 5f7c0bef26fa70b6a3ec382455b56146e3088e0e 7c59b29681399c1a3000934fd59a46c10cbe5401 dd595db3882a9eef83a47515f013be37deae6bff +10b807d404cfeba225736763251d8ba6d8b16db3 From f9d086b6528313290292a38b4676f10471a55226 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 06:53:13 +0000 Subject: [PATCH 2/2] build(codegen): updating SDK --- packages/platform-sdk/src/generated/models/message.ts | 8 ++++---- references.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/platform-sdk/src/generated/models/message.ts b/packages/platform-sdk/src/generated/models/message.ts index f1b873f21..6b6f30357 100644 --- a/packages/platform-sdk/src/generated/models/message.ts +++ b/packages/platform-sdk/src/generated/models/message.ts @@ -1032,13 +1032,13 @@ export interface ApprovalRuleKeySetMessage extends IMessage { */ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers /** - * Description of the [ApprovalRule](ctp:api:type:ApprovalRule) after the [Set Key](ctp:api:type:ApprovalRuleSetKeyAction) update action. + * `key` value of the [ApprovalRule](ctp:api:type:ApprovalRule) after the [Set Key](ctp:api:type:ApprovalRuleSetKeyAction) update action. * * */ readonly key?: string /** - * Description of the [ApprovalRule](ctp:api:type:ApprovalRule) before the [Set Key](ctp:api:type:ApprovalRuleSetKeyAction) update action. + * `key` value of the [ApprovalRule](ctp:api:type:ApprovalRule) before the [Set Key](ctp:api:type:ApprovalRuleSetKeyAction) update action. * * */ @@ -20470,13 +20470,13 @@ export interface ApprovalRuleDescriptionSetMessagePayload export interface ApprovalRuleKeySetMessagePayload extends IMessagePayload { readonly type: 'ApprovalRuleKeySet' /** - * Description of the [ApprovalRule](ctp:api:type:ApprovalRule) after the [Set Key](ctp:api:type:ApprovalRuleSetKeyAction) update action. + * `key` value of the [ApprovalRule](ctp:api:type:ApprovalRule) after the [Set Key](ctp:api:type:ApprovalRuleSetKeyAction) update action. * * */ readonly key?: string /** - * Description of the [ApprovalRule](ctp:api:type:ApprovalRule) before the [Set Key](ctp:api:type:ApprovalRuleSetKeyAction) update action. + * `key` value of the [ApprovalRule](ctp:api:type:ApprovalRule) before the [Set Key](ctp:api:type:ApprovalRuleSetKeyAction) update action. * * */ diff --git a/references.txt b/references.txt index 3f310254a..3b79bee96 100644 --- a/references.txt +++ b/references.txt @@ -413,3 +413,4 @@ ab2859c84d9f146e5d8556e905538b92af4aa044 7c59b29681399c1a3000934fd59a46c10cbe5401 dd595db3882a9eef83a47515f013be37deae6bff 10b807d404cfeba225736763251d8ba6d8b16db3 +fcc6480a0c34dde0eb5c0a44b1b166a4fdc212fc