@paynow-gg/typescript-sdk 2.1.1 → 2.1.2

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.
@@ -5668,14 +5668,29 @@ export interface SetDiscordActionDto {
5668
5668
  role_id?: FlakeId;
5669
5669
  message?: string | null;
5670
5670
  }
5671
+ /**
5672
+ * Represents a request to attach a custom domain to a webstore.
5673
+ */
5671
5674
  export interface SetWebstoreCustomDomainRequestDto {
5675
+ /**
5676
+ * The domain to serve the webstore from, without a scheme (e.g., store.example.com).
5677
+ */
5672
5678
  domain: string;
5673
5679
  verification_type: WebstoreCustomDomainVerificationTypeDto;
5674
5680
  }
5681
+ /**
5682
+ * Represents a request to set the template a webstore renders.
5683
+ */
5675
5684
  export interface SetWebstoreDefaultTemplateRequestDto {
5676
5685
  template_id: FlakeId;
5677
5686
  }
5687
+ /**
5688
+ * Represents a request to change the slug a webstore is served from.
5689
+ */
5678
5690
  export interface SetWebstoreSlugRequestDto {
5691
+ /**
5692
+ * The new slug to serve the webstore from. Slugs are unique across all webstores.
5693
+ */
5679
5694
  slug: string;
5680
5695
  }
5681
5696
  export interface StartDataMigrationFromTebexRequestDto {
@@ -8347,49 +8362,160 @@ export interface WebhookVariablesDto {
8347
8362
  event_type: WebhookEventType;
8348
8363
  variables: Array<string>;
8349
8364
  }
8365
+ /**
8366
+ * Represents a custom domain attached to a webstore, together with the state of its ownership and
8367
+ * SSL verification.
8368
+ */
8350
8369
  export interface WebstoreCustomDomainDto {
8370
+ /**
8371
+ * The identifier the domain was registered under with the hosting provider.
8372
+ */
8351
8373
  id: string;
8374
+ /**
8375
+ * The domain the webstore is served from, without a scheme (e.g., store.example.com).
8376
+ */
8352
8377
  hostname: string;
8378
+ /**
8379
+ * The verification state of the domain as reported by the hosting provider.
8380
+ * The domain only serves the webstore once it is active.
8381
+ */
8353
8382
  status: string;
8354
8383
  ssl?: WebstoreCustomDomainSslDto;
8355
8384
  ownership_verification?: WebstoreCustomDomainOwnershipVerificationDto;
8356
8385
  ownership_verification_http?: WebstoreCustomDomainOwnershipVerificationHttpDto;
8386
+ /**
8387
+ * The errors raised by the last ownership verification attempt. Empty when the last attempt
8388
+ * raised none.
8389
+ */
8357
8390
  verification_errors: Array<string>;
8358
8391
  /**
8392
+ * The date and time the domain was attached to the webstore.
8359
8393
  * @format date-time
8360
8394
  */
8361
8395
  created_at?: string | null;
8362
8396
  }
8397
+ /**
8398
+ * Represents the DNS record that has to be published to prove ownership of a webstore's custom domain.
8399
+ */
8363
8400
  export interface WebstoreCustomDomainOwnershipVerificationDto {
8401
+ /**
8402
+ * The kind of DNS record to publish (e.g., txt).
8403
+ */
8364
8404
  type: string;
8405
+ /**
8406
+ * The name to publish the record under.
8407
+ */
8365
8408
  name: string;
8409
+ /**
8410
+ * The value the record has to hold.
8411
+ */
8366
8412
  value: string;
8367
8413
  }
8414
+ /**
8415
+ * Represents the token file that has to be served over HTTP to prove ownership of a webstore's
8416
+ * custom domain.
8417
+ */
8368
8418
  export interface WebstoreCustomDomainOwnershipVerificationHttpDto {
8419
+ /**
8420
+ * The URL on the domain the token file has to be served from.
8421
+ */
8369
8422
  http_url: string;
8423
+ /**
8424
+ * The body that URL has to return.
8425
+ */
8370
8426
  http_body: string;
8371
8427
  }
8428
+ /**
8429
+ * Represents the SSL certificate issued for a webstore's custom domain.
8430
+ */
8372
8431
  export interface WebstoreCustomDomainSslDto {
8432
+ /**
8433
+ * The identifier the certificate was issued under.
8434
+ */
8373
8435
  id: string;
8436
+ /**
8437
+ * How control of the domain is validated for the certificate (e.g., txt, http, email).
8438
+ */
8374
8439
  method: string;
8440
+ /**
8441
+ * The state of the certificate (e.g., pending_validation, active). The domain only serves
8442
+ * traffic over HTTPS once it is active.
8443
+ */
8375
8444
  status: string;
8445
+ /**
8446
+ * The authority issuing the certificate, or null while one has not been chosen.
8447
+ */
8376
8448
  certificate_authority?: string | null;
8449
+ /**
8450
+ * The records that have to be published to validate the certificate. Empty once validation no
8451
+ * longer needs them.
8452
+ */
8377
8453
  validation_records: Array<WebstoreCustomDomainSslValidationRecordDto>;
8454
+ /**
8455
+ * The errors raised by the last certificate validation attempt. Empty when the last attempt
8456
+ * raised none.
8457
+ */
8378
8458
  validation_errors: Array<string>;
8379
8459
  }
8460
+ /**
8461
+ * Represents one record that has to be published to validate a custom domain's SSL certificate.
8462
+ * Which fields are populated depends on the 'ssl' block's 'method'.
8463
+ */
8380
8464
  export interface WebstoreCustomDomainSslValidationRecordDto {
8465
+ /**
8466
+ * The name to publish the DNS TXT record under, or null when validation is not by TXT record.
8467
+ */
8381
8468
  txt_name?: string | null;
8469
+ /**
8470
+ * The value that TXT record has to hold, or null when validation is not by TXT record.
8471
+ */
8382
8472
  txt_value?: string | null;
8473
+ /**
8474
+ * The URL on the domain the token file has to be served from, or null when validation is not
8475
+ * over HTTP.
8476
+ */
8383
8477
  http_url?: string | null;
8478
+ /**
8479
+ * The body that URL has to return, or null when validation is not over HTTP.
8480
+ */
8384
8481
  http_body?: string | null;
8482
+ /**
8483
+ * The addresses a validation link can be sent to. Empty when validation is not by email.
8484
+ */
8385
8485
  emails: Array<string>;
8386
8486
  }
8487
+ /**
8488
+ * Specifies how ownership of a webstore's custom domain is proven.
8489
+ * The only officially supported method is the 'http' method.
8490
+ * - `invalid`: No verification type specified. This value is typically used as a default or uninitialized state.
8491
+ * - `http`: Ownership is proven by serving a token file over HTTP from the domain.
8492
+ This is the RECOMMENDED way to prove ownership, and is used by the dashboard.
8493
+ * - `txt`: Ownership is proven by publishing a DNS TXT record on the domain.
8494
+ * - `email`: Ownership is proven by following a link sent to an administrative address on the domain.
8495
+ * - `cname`: Ownership is proven by publishing a DNS CNAME record on the domain.
8496
+ */
8387
8497
  export type WebstoreCustomDomainVerificationTypeDto = "invalid" | "http" | "txt" | "email" | "cname";
8498
+ /**
8499
+ * Represents a store's webstore, the hosted storefront customers browse and buy from.
8500
+ */
8388
8501
  export interface WebstoreDto {
8389
8502
  id: FlakeId;
8503
+ /**
8504
+ * The slug the webstore is served from, unique across all webstores.
8505
+ */
8390
8506
  slug: string;
8507
+ /**
8508
+ * Indicates whether the webstore is being served to customers.
8509
+ */
8391
8510
  is_active: boolean;
8511
+ /**
8512
+ * The custom domain the webstore is served from, or null when it is only reachable at its slug.
8513
+ */
8392
8514
  custom_domain?: string | null;
8515
+ /**
8516
+ * Indicates whether ownership of 'custom_domain' has been verified. Until it is, the webstore is
8517
+ * only served from its slug.
8518
+ */
8393
8519
  custom_domain_verified: boolean;
8394
8520
  current_template_id?: FlakeId;
8395
8521
  }