@paynow-gg/typescript-sdk 2.1.5 → 2.1.7

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.
@@ -267,6 +267,42 @@ export interface AlipayDetailsDto {
267
267
  */
268
268
  fingerprint?: string | null;
269
269
  }
270
+ export interface ApiKeyDto {
271
+ id: FlakeId;
272
+ store_id: FlakeId;
273
+ role_id: FlakeId;
274
+ /**
275
+ * The name of the API key.
276
+ */
277
+ name: string;
278
+ /**
279
+ * The secret token used to authenticate as this API key. Only returned when the
280
+ * key is created and when its token is reset.
281
+ */
282
+ token?: string | null;
283
+ /**
284
+ * When the API key's token was last reset.
285
+ * @format date-time
286
+ */
287
+ token_reset_at?: string | null;
288
+ created_by: ActorDto;
289
+ /**
290
+ * When the API key was created.
291
+ * @format date-time
292
+ */
293
+ created_at: string;
294
+ updated_by?: ActorDto;
295
+ /**
296
+ * When the API key was last updated.
297
+ * @format date-time
298
+ */
299
+ updated_at?: string | null;
300
+ }
301
+ export interface ApiKeyResult {
302
+ id: FlakeId;
303
+ store_id?: FlakeId;
304
+ api_key?: ApiKeyDto;
305
+ }
270
306
  export interface AvailablePermissionDto {
271
307
  id: string;
272
308
  name: string;
@@ -1417,7 +1453,7 @@ export interface CreateTrialEligibilityOverrideDto {
1417
1453
  export interface CreateWebhookDto {
1418
1454
  url: string;
1419
1455
  subscribed_to: WebhookEventType;
1420
- type: WebhookType;
1456
+ type: WebhookTypeDto;
1421
1457
  discord_description_template?: string | null;
1422
1458
  discord_title?: string | null;
1423
1459
  discord_color?: string | null;
@@ -1993,6 +2029,11 @@ export interface CustomVariableOptionRequestDto {
1993
2029
  */
1994
2030
  is_default: boolean;
1995
2031
  }
2032
+ export interface CustomVariableResult {
2033
+ id: FlakeId;
2034
+ store_id?: FlakeId;
2035
+ custom_variable?: CustomVariableDto;
2036
+ }
1996
2037
  /**
1997
2038
  * Defines the type of input method for a custom variable.
1998
2039
  * - `dropdown`: Dropdown selection with predefined options.
@@ -2009,7 +2050,7 @@ export interface DashboardSearchHintDto {
2009
2050
  example: string;
2010
2051
  description: string;
2011
2052
  }
2012
- export type DashboardSearchResultTypeDto = "unknown" | "orders" | "trials" | "subscriptions" | "customers" | "coupons" | "gameservers" | "products" | "sales" | "api_keys" | "bans" | "affiliate_links" | "tags" | "giftcards" | "stores" | "users" | "tickets";
2053
+ export type DashboardSearchResultTypeDto = "unknown" | "orders" | "trials" | "subscriptions" | "customers" | "coupons" | "gameservers" | "products" | "sales" | "api_keys" | "bans" | "affiliate_links" | "tags" | "giftcards" | "stores" | "users" | "tickets" | "tier_groups" | "custom_variables" | "global_commands" | "webhooks" | "email_templates" | "email_deliveries";
2013
2054
  export interface DashboardStatsDto {
2014
2055
  store_id: FlakeId;
2015
2056
  /**
@@ -2540,6 +2581,11 @@ export interface EmailDeliveryDto {
2540
2581
  */
2541
2582
  opened_at?: string | null;
2542
2583
  }
2584
+ export interface EmailDeliveryResult {
2585
+ id: FlakeId;
2586
+ store_id?: FlakeId;
2587
+ email_delivery?: EmailDeliveryDto;
2588
+ }
2543
2589
  export type EmailDeliveryStatusDto = "unspecified" | "pending" | "sent" | "delivered" | "deferred" | "bounced" | "dropped" | "failed";
2544
2590
  export interface EmailTemplateComponentDto {
2545
2591
  tag: string;
@@ -2571,6 +2617,11 @@ export interface EmailTemplateDto {
2571
2617
  */
2572
2618
  updated_at?: string | null;
2573
2619
  }
2620
+ export interface EmailTemplateResult {
2621
+ id: FlakeId;
2622
+ store_id?: FlakeId;
2623
+ email_template?: EmailTemplateDto;
2624
+ }
2574
2625
  export type EmailTemplateStateDto = "unspecified" | "inactive" | "activating" | "active";
2575
2626
  export type EmailTemplateTypeDto = "unspecified" | "layout" | "password_reset" | "email_verification" | "email_change" | "email_changed_notification" | "forgot_password" | "logged_in_new_location" | "welcome_login" | "order_completed" | "refund_initiated" | "subscription_canceled" | "subscription_renewal_failed" | "subscription_price_changed" | "subscription_change_verification_code" | "subscription_renewal_upcoming" | "subscription_manage_login" | "subscription_manage_no_history" | "payout_created" | "payout_completed" | "store_invite" | "store_lock_changed" | "abandoned_checkout_recovery_attempt" | "purchase_follow_up_attempt" | "downloadable_file_granted" | "discord_invite_link" | "gift_card_created" | "trial_ending_soon" | "invoice_generated" | "payment_method_type_approval" | "store_trust_event" | "data_subject_request_export_completed";
2576
2627
  export interface ExecutedWebhookDto {
@@ -2989,6 +3040,11 @@ export interface GlobalCommandDto {
2989
3040
  updated_at?: string | null;
2990
3041
  updated_by?: ActorDto;
2991
3042
  }
3043
+ export interface GlobalCommandResult {
3044
+ id: FlakeId;
3045
+ store_id?: FlakeId;
3046
+ global_command?: GlobalCommandDto;
3047
+ }
2992
3048
  /**
2993
3049
  * iDEAL payment method details
2994
3050
  */
@@ -5675,7 +5731,7 @@ export interface QueuedWebhookDto {
5675
5731
  * @format date-time
5676
5732
  */
5677
5733
  created_at: string;
5678
- state: WebhookState;
5734
+ state: WebhookStateDto;
5679
5735
  /**
5680
5736
  * @format date-time
5681
5737
  */
@@ -5981,6 +6037,13 @@ export interface SearchDashboardResponseDto {
5981
6037
  trials: Array<TrialResult>;
5982
6038
  subscriptions: Array<SubscriptionResult>;
5983
6039
  bans: Array<BanResult>;
6040
+ api_keys: Array<ApiKeyResult>;
6041
+ tier_groups: Array<TierGroupResult>;
6042
+ custom_variables: Array<CustomVariableResult>;
6043
+ global_commands: Array<GlobalCommandResult>;
6044
+ webhooks: Array<WebhookResult>;
6045
+ email_templates: Array<EmailTemplateResult>;
6046
+ email_deliveries: Array<EmailDeliveryResult>;
5984
6047
  facets: {
5985
6048
  /**
5986
6049
  * @format int64
@@ -6050,6 +6113,30 @@ export interface SearchDashboardResponseDto {
6050
6113
  * @format int64
6051
6114
  */
6052
6115
  tickets?: number;
6116
+ /**
6117
+ * @format int64
6118
+ */
6119
+ tier_groups?: number;
6120
+ /**
6121
+ * @format int64
6122
+ */
6123
+ custom_variables?: number;
6124
+ /**
6125
+ * @format int64
6126
+ */
6127
+ global_commands?: number;
6128
+ /**
6129
+ * @format int64
6130
+ */
6131
+ webhooks?: number;
6132
+ /**
6133
+ * @format int64
6134
+ */
6135
+ email_templates?: number;
6136
+ /**
6137
+ * @format int64
6138
+ */
6139
+ email_deliveries?: number;
6053
6140
  };
6054
6141
  }
6055
6142
  export interface SetDiscordActionDto {
@@ -6101,6 +6188,10 @@ export interface StartDownloadableFileUploadRequestDto {
6101
6188
  file_content_type: string;
6102
6189
  description?: string | null;
6103
6190
  }
6191
+ export interface StartDownloadableFileUploadResponseDto {
6192
+ downloadable_file_id: FlakeId;
6193
+ upload_signed_url: string;
6194
+ }
6104
6195
  export type StatsDimensionTypeDto_V2 = "unspecified" | "product" | "gameserver" | "tag" | "affiliate_link" | "coupon" | "giftcard" | "payout_id";
6105
6196
  export type StatsDistributionTypeDto_V2 = "unspecified" | "order_country" | "payment_method" | "payment_acceptance";
6106
6197
  /**
@@ -8086,6 +8177,11 @@ export interface TierGroupDto {
8086
8177
  updated_at?: string | null;
8087
8178
  updated_by?: ActorDto;
8088
8179
  }
8180
+ export interface TierGroupResult {
8181
+ id: FlakeId;
8182
+ store_id?: FlakeId;
8183
+ tier_group?: TierGroupDto;
8184
+ }
8089
8185
  export interface TimeSeriesChartDto {
8090
8186
  chart: string;
8091
8187
  currency?: string | null;
@@ -9371,6 +9467,11 @@ export interface WebhookHistoryDto {
9371
9467
  page: number;
9372
9468
  history: Array<QueuedWebhookDto>;
9373
9469
  }
9470
+ export interface WebhookResult {
9471
+ id: FlakeId;
9472
+ store_id?: FlakeId;
9473
+ webhook?: WebhookSubscriptionDto;
9474
+ }
9374
9475
  /**
9375
9476
  * Query parameters
9376
9477
  */
@@ -9385,7 +9486,7 @@ export type WebhooksGetHistoryQuery = {
9385
9486
  */
9386
9487
  state?: string;
9387
9488
  };
9388
- export type WebhookState = "success" | "pending" | "failed" | "all";
9489
+ export type WebhookStateDto = "success" | "pending" | "failed" | "all";
9389
9490
  /**
9390
9491
  * Represents a webhook subscription: an endpoint that receives a request whenever one of the
9391
9492
  * subscribed events happens in the store.
@@ -9393,7 +9494,7 @@ export type WebhookState = "success" | "pending" | "failed" | "all";
9393
9494
  export interface WebhookSubscriptionDto {
9394
9495
  id: FlakeId;
9395
9496
  /**
9396
- * The URL each event is delivered to. For the 'discord_v1' type this is the Discord webhook URL.
9497
+ * The URL each event is delivered to. For the 'DiscordV1' type this is the Discord webhook URL.
9397
9498
  */
9398
9499
  url: string;
9399
9500
  /**
@@ -9402,24 +9503,29 @@ export interface WebhookSubscriptionDto {
9402
9503
  */
9403
9504
  secret: string;
9404
9505
  subscribed_to: WebhookEventType;
9405
- type: WebhookType;
9506
+ type: WebhookTypeDto;
9406
9507
  /**
9407
9508
  * The template rendered into the body of the Discord message, with webhook variables substituted.
9408
- * Only used by the 'discord_v1' type.
9509
+ * Only used by the 'DiscordV1' type.
9409
9510
  */
9410
9511
  discord_description_template?: string | null;
9411
9512
  /**
9412
- * The title of the Discord embed. Only used by the 'discord_v1' type with the 'embed' format.
9513
+ * The title of the Discord embed. Only used by the 'DiscordV1' type with the 'Embed' format.
9413
9514
  */
9414
9515
  discord_title?: string | null;
9415
9516
  /**
9416
- * The accent colour of the Discord embed, as a hex colour. Only used by the 'discord_v1' type
9417
- * with the 'embed' format.
9517
+ * The accent colour of the Discord embed, as a hex colour. Only used by the 'DiscordV1' type
9518
+ * with the 'Embed' format.
9418
9519
  */
9419
9520
  discord_color?: string | null;
9420
9521
  discord_format?: WebhookDiscordFormatDto;
9421
9522
  }
9422
- export type WebhookType = "json_v1" | "discord_v1";
9523
+ /**
9524
+ * Specifies the payload format a webhook delivers.
9525
+ * - `JsonV1`: The event is posted as JSON. This is the default.
9526
+ * - `DiscordV1`: The event is posted as a Discord message.
9527
+ */
9528
+ export type WebhookTypeDto = "JsonV1" | "DiscordV1";
9423
9529
  export interface WebhookVariablesDto {
9424
9530
  event_type: WebhookEventType;
9425
9531
  variables: Array<string>;