@getyetty-sdk/pennylane 2026.5.13 → 2026.5.22

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/dist/index.d.mts CHANGED
@@ -402,6 +402,30 @@ type WebhookSubscriptionsResponse = {
402
402
  * Indicates whether the webhook subscription is active
403
403
  */
404
404
  enabled: boolean;
405
+ /**
406
+ * Timestamp when the subscription was disabled
407
+ */
408
+ disabled_at: string | null;
409
+ /**
410
+ * Reason the subscription was disabled.
411
+ * - `permanent_error`: disabled due to a permanent delivery error (e.g. HTTP 400).
412
+ * - `repeated_failure`: disabled after repeated delivery failures over a sustained period.
413
+ * - `manual`: disabled manually via the API.
414
+ *
415
+ */
416
+ disabled_reason: 'permanent_error' | 'repeated_failure' | 'manual';
417
+ /**
418
+ * HTTP status code of the last failed delivery attempt
419
+ */
420
+ last_failure_status: number | null;
421
+ /**
422
+ * Timestamp of the last failed delivery attempt
423
+ */
424
+ last_failure_at: string | null;
425
+ /**
426
+ * Number of consecutive delivery failures since the last successful delivery
427
+ */
428
+ consecutive_failures: number;
405
429
  /**
406
430
  * Creation date of the webhook subscription
407
431
  */
@@ -433,6 +457,30 @@ type WebhookSubscriptionsIndexResponse = {
433
457
  * Indicates whether the webhook subscription is active
434
458
  */
435
459
  enabled: boolean;
460
+ /**
461
+ * Timestamp when the subscription was disabled
462
+ */
463
+ disabled_at: string | null;
464
+ /**
465
+ * Reason the subscription was disabled.
466
+ * - `permanent_error`: disabled due to a permanent delivery error (e.g. HTTP 400).
467
+ * - `repeated_failure`: disabled after repeated delivery failures over a sustained period.
468
+ * - `manual`: disabled manually via the API.
469
+ *
470
+ */
471
+ disabled_reason: 'permanent_error' | 'repeated_failure' | 'manual';
472
+ /**
473
+ * HTTP status code of the last failed delivery attempt
474
+ */
475
+ last_failure_status: number | null;
476
+ /**
477
+ * Timestamp of the last failed delivery attempt
478
+ */
479
+ last_failure_at: string | null;
480
+ /**
481
+ * Number of consecutive delivery failures since the last successful delivery
482
+ */
483
+ consecutive_failures: number;
436
484
  /**
437
485
  * Creation date of the webhook subscription
438
486
  */
@@ -6052,6 +6100,30 @@ type GetWebhookSubscriptionsResponses = {
6052
6100
  * Indicates whether the webhook subscription is active
6053
6101
  */
6054
6102
  enabled: boolean;
6103
+ /**
6104
+ * Timestamp when the subscription was disabled
6105
+ */
6106
+ disabled_at: string | null;
6107
+ /**
6108
+ * Reason the subscription was disabled.
6109
+ * - `permanent_error`: disabled due to a permanent delivery error (e.g. HTTP 400).
6110
+ * - `repeated_failure`: disabled after repeated delivery failures over a sustained period.
6111
+ * - `manual`: disabled manually via the API.
6112
+ *
6113
+ */
6114
+ disabled_reason: 'permanent_error' | 'repeated_failure' | 'manual';
6115
+ /**
6116
+ * HTTP status code of the last failed delivery attempt
6117
+ */
6118
+ last_failure_status: number | null;
6119
+ /**
6120
+ * Timestamp of the last failed delivery attempt
6121
+ */
6122
+ last_failure_at: string | null;
6123
+ /**
6124
+ * Number of consecutive delivery failures since the last successful delivery
6125
+ */
6126
+ consecutive_failures: number;
6055
6127
  /**
6056
6128
  * Creation date of the webhook subscription
6057
6129
  */
@@ -6338,6 +6410,30 @@ type GetWebhookSubscriptionResponses = {
6338
6410
  * Indicates whether the webhook subscription is active
6339
6411
  */
6340
6412
  enabled: boolean;
6413
+ /**
6414
+ * Timestamp when the subscription was disabled
6415
+ */
6416
+ disabled_at: string | null;
6417
+ /**
6418
+ * Reason the subscription was disabled.
6419
+ * - `permanent_error`: disabled due to a permanent delivery error (e.g. HTTP 400).
6420
+ * - `repeated_failure`: disabled after repeated delivery failures over a sustained period.
6421
+ * - `manual`: disabled manually via the API.
6422
+ *
6423
+ */
6424
+ disabled_reason: 'permanent_error' | 'repeated_failure' | 'manual';
6425
+ /**
6426
+ * HTTP status code of the last failed delivery attempt
6427
+ */
6428
+ last_failure_status: number | null;
6429
+ /**
6430
+ * Timestamp of the last failed delivery attempt
6431
+ */
6432
+ last_failure_at: string | null;
6433
+ /**
6434
+ * Number of consecutive delivery failures since the last successful delivery
6435
+ */
6436
+ consecutive_failures: number;
6341
6437
  /**
6342
6438
  * Creation date of the webhook subscription
6343
6439
  */
@@ -6458,6 +6554,30 @@ type PutWebhookSubscriptionResponses = {
6458
6554
  * Indicates whether the webhook subscription is active
6459
6555
  */
6460
6556
  enabled: boolean;
6557
+ /**
6558
+ * Timestamp when the subscription was disabled
6559
+ */
6560
+ disabled_at: string | null;
6561
+ /**
6562
+ * Reason the subscription was disabled.
6563
+ * - `permanent_error`: disabled due to a permanent delivery error (e.g. HTTP 400).
6564
+ * - `repeated_failure`: disabled after repeated delivery failures over a sustained period.
6565
+ * - `manual`: disabled manually via the API.
6566
+ *
6567
+ */
6568
+ disabled_reason: 'permanent_error' | 'repeated_failure' | 'manual';
6569
+ /**
6570
+ * HTTP status code of the last failed delivery attempt
6571
+ */
6572
+ last_failure_status: number | null;
6573
+ /**
6574
+ * Timestamp of the last failed delivery attempt
6575
+ */
6576
+ last_failure_at: string | null;
6577
+ /**
6578
+ * Number of consecutive delivery failures since the last successful delivery
6579
+ */
6580
+ consecutive_failures: number;
6461
6581
  /**
6462
6582
  * Creation date of the webhook subscription
6463
6583
  */
@@ -32817,6 +32937,37 @@ declare const WebhookSubscriptions__ResponseSchema: {
32817
32937
  readonly type: "boolean";
32818
32938
  readonly example: true;
32819
32939
  };
32940
+ readonly disabled_at: {
32941
+ readonly description: "Timestamp when the subscription was disabled";
32942
+ readonly type: "string";
32943
+ readonly format: "date-time";
32944
+ readonly nullable: true;
32945
+ readonly example: "2023-08-07T14:23:12.000Z";
32946
+ };
32947
+ readonly disabled_reason: {
32948
+ readonly description: "Reason the subscription was disabled.\n- `permanent_error`: disabled due to a permanent delivery error (e.g. HTTP 400).\n- `repeated_failure`: disabled after repeated delivery failures over a sustained period.\n- `manual`: disabled manually via the API.\n";
32949
+ readonly type: "string";
32950
+ readonly nullable: true;
32951
+ readonly enum: readonly ["permanent_error", "repeated_failure", "manual"];
32952
+ };
32953
+ readonly last_failure_status: {
32954
+ readonly description: "HTTP status code of the last failed delivery attempt";
32955
+ readonly type: "integer";
32956
+ readonly nullable: true;
32957
+ readonly example: 500;
32958
+ };
32959
+ readonly last_failure_at: {
32960
+ readonly description: "Timestamp of the last failed delivery attempt";
32961
+ readonly type: "string";
32962
+ readonly format: "date-time";
32963
+ readonly nullable: true;
32964
+ readonly example: "2023-08-07T14:23:12.000Z";
32965
+ };
32966
+ readonly consecutive_failures: {
32967
+ readonly description: "Number of consecutive delivery failures since the last successful delivery";
32968
+ readonly type: "integer";
32969
+ readonly example: 3;
32970
+ };
32820
32971
  readonly created_at: {
32821
32972
  readonly description: "Creation date of the webhook subscription";
32822
32973
  readonly type: "string";
@@ -32830,7 +32981,7 @@ declare const WebhookSubscriptions__ResponseSchema: {
32830
32981
  readonly example: "2023-08-07T14:23:12.000Z";
32831
32982
  };
32832
32983
  };
32833
- readonly required: readonly ["id", "callback_url", "events", "enabled", "created_at", "updated_at"];
32984
+ readonly required: readonly ["id", "callback_url", "events", "enabled", "disabled_at", "disabled_reason", "last_failure_status", "last_failure_at", "consecutive_failures", "created_at", "updated_at"];
32834
32985
  };
32835
32986
  declare const WebhookSubscriptions__IndexResponseSchema: {
32836
32987
  readonly type: "object";
@@ -32868,6 +33019,37 @@ declare const WebhookSubscriptions__IndexResponseSchema: {
32868
33019
  readonly type: "boolean";
32869
33020
  readonly example: true;
32870
33021
  };
33022
+ readonly disabled_at: {
33023
+ readonly description: "Timestamp when the subscription was disabled";
33024
+ readonly type: "string";
33025
+ readonly format: "date-time";
33026
+ readonly nullable: true;
33027
+ readonly example: "2023-08-07T14:23:12.000Z";
33028
+ };
33029
+ readonly disabled_reason: {
33030
+ readonly description: "Reason the subscription was disabled.\n- `permanent_error`: disabled due to a permanent delivery error (e.g. HTTP 400).\n- `repeated_failure`: disabled after repeated delivery failures over a sustained period.\n- `manual`: disabled manually via the API.\n";
33031
+ readonly type: "string";
33032
+ readonly nullable: true;
33033
+ readonly enum: readonly ["permanent_error", "repeated_failure", "manual"];
33034
+ };
33035
+ readonly last_failure_status: {
33036
+ readonly description: "HTTP status code of the last failed delivery attempt";
33037
+ readonly type: "integer";
33038
+ readonly nullable: true;
33039
+ readonly example: 500;
33040
+ };
33041
+ readonly last_failure_at: {
33042
+ readonly description: "Timestamp of the last failed delivery attempt";
33043
+ readonly type: "string";
33044
+ readonly format: "date-time";
33045
+ readonly nullable: true;
33046
+ readonly example: "2023-08-07T14:23:12.000Z";
33047
+ };
33048
+ readonly consecutive_failures: {
33049
+ readonly description: "Number of consecutive delivery failures since the last successful delivery";
33050
+ readonly type: "integer";
33051
+ readonly example: 3;
33052
+ };
32871
33053
  readonly created_at: {
32872
33054
  readonly description: "Creation date of the webhook subscription";
32873
33055
  readonly type: "string";
@@ -32881,7 +33063,7 @@ declare const WebhookSubscriptions__IndexResponseSchema: {
32881
33063
  readonly example: "2023-08-07T14:23:12.000Z";
32882
33064
  };
32883
33065
  };
32884
- readonly required: readonly ["id", "callback_url", "events", "enabled", "created_at", "updated_at"];
33066
+ readonly required: readonly ["id", "callback_url", "events", "enabled", "disabled_at", "disabled_reason", "last_failure_status", "last_failure_at", "consecutive_failures", "created_at", "updated_at"];
32885
33067
  };
32886
33068
  };
32887
33069
  readonly has_more: {