@soat/sdk 0.10.0 → 0.12.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/dist/index.cjs +13 -13
- package/dist/index.d.cts +18 -26
- package/dist/index.d.mts +18 -26
- package/dist/index.mjs +13 -13
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2508,24 +2508,24 @@ var Users = class {
|
|
|
2508
2508
|
};
|
|
2509
2509
|
var Webhooks = class {
|
|
2510
2510
|
/**
|
|
2511
|
-
* List webhooks
|
|
2511
|
+
* List webhooks
|
|
2512
2512
|
*
|
|
2513
|
-
* Lists
|
|
2513
|
+
* Lists webhooks. Use the project_id query parameter to filter by project.
|
|
2514
2514
|
*/
|
|
2515
2515
|
static listWebhooks(options) {
|
|
2516
|
-
return (options
|
|
2517
|
-
url: "/api/v1/
|
|
2516
|
+
return (options?.client ?? client).get({
|
|
2517
|
+
url: "/api/v1/webhooks",
|
|
2518
2518
|
...options
|
|
2519
2519
|
});
|
|
2520
2520
|
}
|
|
2521
2521
|
/**
|
|
2522
2522
|
* Create a webhook
|
|
2523
2523
|
*
|
|
2524
|
-
* Creates a new webhook for
|
|
2524
|
+
* Creates a new webhook for a project
|
|
2525
2525
|
*/
|
|
2526
2526
|
static createWebhook(options) {
|
|
2527
2527
|
return (options.client ?? client).post({
|
|
2528
|
-
url: "/api/v1/
|
|
2528
|
+
url: "/api/v1/webhooks",
|
|
2529
2529
|
...options,
|
|
2530
2530
|
headers: {
|
|
2531
2531
|
"Content-Type": "application/json",
|
|
@@ -2540,7 +2540,7 @@ var Webhooks = class {
|
|
|
2540
2540
|
*/
|
|
2541
2541
|
static deleteWebhook(options) {
|
|
2542
2542
|
return (options.client ?? client).delete({
|
|
2543
|
-
url: "/api/v1/
|
|
2543
|
+
url: "/api/v1/webhooks/{webhook_id}",
|
|
2544
2544
|
...options
|
|
2545
2545
|
});
|
|
2546
2546
|
}
|
|
@@ -2551,7 +2551,7 @@ var Webhooks = class {
|
|
|
2551
2551
|
*/
|
|
2552
2552
|
static getWebhook(options) {
|
|
2553
2553
|
return (options.client ?? client).get({
|
|
2554
|
-
url: "/api/v1/
|
|
2554
|
+
url: "/api/v1/webhooks/{webhook_id}",
|
|
2555
2555
|
...options
|
|
2556
2556
|
});
|
|
2557
2557
|
}
|
|
@@ -2562,7 +2562,7 @@ var Webhooks = class {
|
|
|
2562
2562
|
*/
|
|
2563
2563
|
static updateWebhook(options) {
|
|
2564
2564
|
return (options.client ?? client).put({
|
|
2565
|
-
url: "/api/v1/
|
|
2565
|
+
url: "/api/v1/webhooks/{webhook_id}",
|
|
2566
2566
|
...options,
|
|
2567
2567
|
headers: {
|
|
2568
2568
|
"Content-Type": "application/json",
|
|
@@ -2577,7 +2577,7 @@ var Webhooks = class {
|
|
|
2577
2577
|
*/
|
|
2578
2578
|
static listWebhookDeliveries(options) {
|
|
2579
2579
|
return (options.client ?? client).get({
|
|
2580
|
-
url: "/api/v1/
|
|
2580
|
+
url: "/api/v1/webhooks/{webhook_id}/deliveries",
|
|
2581
2581
|
...options
|
|
2582
2582
|
});
|
|
2583
2583
|
}
|
|
@@ -2588,7 +2588,7 @@ var Webhooks = class {
|
|
|
2588
2588
|
*/
|
|
2589
2589
|
static getWebhookDelivery(options) {
|
|
2590
2590
|
return (options.client ?? client).get({
|
|
2591
|
-
url: "/api/v1/
|
|
2591
|
+
url: "/api/v1/webhooks/{webhook_id}/deliveries/{delivery_id}",
|
|
2592
2592
|
...options
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
@@ -2599,7 +2599,7 @@ var Webhooks = class {
|
|
|
2599
2599
|
*/
|
|
2600
2600
|
static getWebhookSecret(options) {
|
|
2601
2601
|
return (options.client ?? client).get({
|
|
2602
|
-
url: "/api/v1/
|
|
2602
|
+
url: "/api/v1/webhooks/{webhook_id}/secret",
|
|
2603
2603
|
...options
|
|
2604
2604
|
});
|
|
2605
2605
|
}
|
|
@@ -2610,7 +2610,7 @@ var Webhooks = class {
|
|
|
2610
2610
|
*/
|
|
2611
2611
|
static rotateWebhookSecret(options) {
|
|
2612
2612
|
return (options.client ?? client).post({
|
|
2613
|
-
url: "/api/v1/
|
|
2613
|
+
url: "/api/v1/webhooks/{webhook_id}/rotate-secret",
|
|
2614
2614
|
...options
|
|
2615
2615
|
});
|
|
2616
2616
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -3071,6 +3071,7 @@ type WebhookWithSecret = Webhook & {
|
|
|
3071
3071
|
secret?: string;
|
|
3072
3072
|
};
|
|
3073
3073
|
type CreateWebhookRequest = {
|
|
3074
|
+
project_id: string;
|
|
3074
3075
|
name: string;
|
|
3075
3076
|
description?: string;
|
|
3076
3077
|
url: string;
|
|
@@ -8347,11 +8348,11 @@ type AttachUserPoliciesResponses = {
|
|
|
8347
8348
|
type AttachUserPoliciesResponse = AttachUserPoliciesResponses[keyof AttachUserPoliciesResponses];
|
|
8348
8349
|
type ListWebhooksData = {
|
|
8349
8350
|
body?: never;
|
|
8350
|
-
path
|
|
8351
|
-
|
|
8351
|
+
path?: never;
|
|
8352
|
+
query?: {
|
|
8353
|
+
project_id?: string;
|
|
8352
8354
|
};
|
|
8353
|
-
|
|
8354
|
-
url: '/api/v1/projects/{project_id}/webhooks';
|
|
8355
|
+
url: '/api/v1/webhooks';
|
|
8355
8356
|
};
|
|
8356
8357
|
type ListWebhooksErrors = {
|
|
8357
8358
|
/**
|
|
@@ -8372,11 +8373,9 @@ type ListWebhooksResponses = {
|
|
|
8372
8373
|
type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
|
|
8373
8374
|
type CreateWebhookData = {
|
|
8374
8375
|
body: CreateWebhookRequest;
|
|
8375
|
-
path
|
|
8376
|
-
project_id: string;
|
|
8377
|
-
};
|
|
8376
|
+
path?: never;
|
|
8378
8377
|
query?: never;
|
|
8379
|
-
url: '/api/v1/
|
|
8378
|
+
url: '/api/v1/webhooks';
|
|
8380
8379
|
};
|
|
8381
8380
|
type CreateWebhookErrors = {
|
|
8382
8381
|
/**
|
|
@@ -8402,11 +8401,10 @@ type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses
|
|
|
8402
8401
|
type DeleteWebhookData = {
|
|
8403
8402
|
body?: never;
|
|
8404
8403
|
path: {
|
|
8405
|
-
project_id: string;
|
|
8406
8404
|
webhook_id: string;
|
|
8407
8405
|
};
|
|
8408
8406
|
query?: never;
|
|
8409
|
-
url: '/api/v1/
|
|
8407
|
+
url: '/api/v1/webhooks/{webhook_id}';
|
|
8410
8408
|
};
|
|
8411
8409
|
type DeleteWebhookErrors = {
|
|
8412
8410
|
/**
|
|
@@ -8432,11 +8430,10 @@ type DeleteWebhookResponse = DeleteWebhookResponses[keyof DeleteWebhookResponses
|
|
|
8432
8430
|
type GetWebhookData = {
|
|
8433
8431
|
body?: never;
|
|
8434
8432
|
path: {
|
|
8435
|
-
project_id: string;
|
|
8436
8433
|
webhook_id: string;
|
|
8437
8434
|
};
|
|
8438
8435
|
query?: never;
|
|
8439
|
-
url: '/api/v1/
|
|
8436
|
+
url: '/api/v1/webhooks/{webhook_id}';
|
|
8440
8437
|
};
|
|
8441
8438
|
type GetWebhookErrors = {
|
|
8442
8439
|
/**
|
|
@@ -8462,11 +8459,10 @@ type GetWebhookResponse = GetWebhookResponses[keyof GetWebhookResponses];
|
|
|
8462
8459
|
type UpdateWebhookData = {
|
|
8463
8460
|
body: UpdateWebhookRequest;
|
|
8464
8461
|
path: {
|
|
8465
|
-
project_id: string;
|
|
8466
8462
|
webhook_id: string;
|
|
8467
8463
|
};
|
|
8468
8464
|
query?: never;
|
|
8469
|
-
url: '/api/v1/
|
|
8465
|
+
url: '/api/v1/webhooks/{webhook_id}';
|
|
8470
8466
|
};
|
|
8471
8467
|
type UpdateWebhookErrors = {
|
|
8472
8468
|
/**
|
|
@@ -8496,14 +8492,13 @@ type UpdateWebhookResponse = UpdateWebhookResponses[keyof UpdateWebhookResponses
|
|
|
8496
8492
|
type ListWebhookDeliveriesData = {
|
|
8497
8493
|
body?: never;
|
|
8498
8494
|
path: {
|
|
8499
|
-
project_id: string;
|
|
8500
8495
|
webhook_id: string;
|
|
8501
8496
|
};
|
|
8502
8497
|
query?: {
|
|
8503
8498
|
limit?: number;
|
|
8504
8499
|
offset?: number;
|
|
8505
8500
|
};
|
|
8506
|
-
url: '/api/v1/
|
|
8501
|
+
url: '/api/v1/webhooks/{webhook_id}/deliveries';
|
|
8507
8502
|
};
|
|
8508
8503
|
type ListWebhookDeliveriesErrors = {
|
|
8509
8504
|
/**
|
|
@@ -8529,12 +8524,11 @@ type ListWebhookDeliveriesResponse = ListWebhookDeliveriesResponses[keyof ListWe
|
|
|
8529
8524
|
type GetWebhookDeliveryData = {
|
|
8530
8525
|
body?: never;
|
|
8531
8526
|
path: {
|
|
8532
|
-
project_id: string;
|
|
8533
8527
|
webhook_id: string;
|
|
8534
8528
|
delivery_id: string;
|
|
8535
8529
|
};
|
|
8536
8530
|
query?: never;
|
|
8537
|
-
url: '/api/v1/
|
|
8531
|
+
url: '/api/v1/webhooks/{webhook_id}/deliveries/{delivery_id}';
|
|
8538
8532
|
};
|
|
8539
8533
|
type GetWebhookDeliveryErrors = {
|
|
8540
8534
|
/**
|
|
@@ -8560,11 +8554,10 @@ type GetWebhookDeliveryResponse = GetWebhookDeliveryResponses[keyof GetWebhookDe
|
|
|
8560
8554
|
type GetWebhookSecretData = {
|
|
8561
8555
|
body?: never;
|
|
8562
8556
|
path: {
|
|
8563
|
-
project_id: string;
|
|
8564
8557
|
webhook_id: string;
|
|
8565
8558
|
};
|
|
8566
8559
|
query?: never;
|
|
8567
|
-
url: '/api/v1/
|
|
8560
|
+
url: '/api/v1/webhooks/{webhook_id}/secret';
|
|
8568
8561
|
};
|
|
8569
8562
|
type GetWebhookSecretErrors = {
|
|
8570
8563
|
/**
|
|
@@ -8590,11 +8583,10 @@ type GetWebhookSecretResponse = GetWebhookSecretResponses[keyof GetWebhookSecret
|
|
|
8590
8583
|
type RotateWebhookSecretData = {
|
|
8591
8584
|
body?: never;
|
|
8592
8585
|
path: {
|
|
8593
|
-
project_id: string;
|
|
8594
8586
|
webhook_id: string;
|
|
8595
8587
|
};
|
|
8596
8588
|
query?: never;
|
|
8597
|
-
url: '/api/v1/
|
|
8589
|
+
url: '/api/v1/webhooks/{webhook_id}/rotate-secret';
|
|
8598
8590
|
};
|
|
8599
8591
|
type RotateWebhookSecretErrors = {
|
|
8600
8592
|
/**
|
|
@@ -9548,15 +9540,15 @@ declare class Users {
|
|
|
9548
9540
|
}
|
|
9549
9541
|
declare class Webhooks {
|
|
9550
9542
|
/**
|
|
9551
|
-
* List webhooks
|
|
9543
|
+
* List webhooks
|
|
9552
9544
|
*
|
|
9553
|
-
* Lists
|
|
9545
|
+
* Lists webhooks. Use the project_id query parameter to filter by project.
|
|
9554
9546
|
*/
|
|
9555
|
-
static listWebhooks<ThrowOnError extends boolean = false>(options
|
|
9547
|
+
static listWebhooks<ThrowOnError extends boolean = false>(options?: Options<ListWebhooksData, ThrowOnError>): RequestResult<ListWebhooksResponses, ListWebhooksErrors, ThrowOnError>;
|
|
9556
9548
|
/**
|
|
9557
9549
|
* Create a webhook
|
|
9558
9550
|
*
|
|
9559
|
-
* Creates a new webhook for
|
|
9551
|
+
* Creates a new webhook for a project
|
|
9560
9552
|
*/
|
|
9561
9553
|
static createWebhook<ThrowOnError extends boolean = false>(options: Options<CreateWebhookData, ThrowOnError>): RequestResult<CreateWebhookResponses, CreateWebhookErrors, ThrowOnError>;
|
|
9562
9554
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -3071,6 +3071,7 @@ type WebhookWithSecret = Webhook & {
|
|
|
3071
3071
|
secret?: string;
|
|
3072
3072
|
};
|
|
3073
3073
|
type CreateWebhookRequest = {
|
|
3074
|
+
project_id: string;
|
|
3074
3075
|
name: string;
|
|
3075
3076
|
description?: string;
|
|
3076
3077
|
url: string;
|
|
@@ -8347,11 +8348,11 @@ type AttachUserPoliciesResponses = {
|
|
|
8347
8348
|
type AttachUserPoliciesResponse = AttachUserPoliciesResponses[keyof AttachUserPoliciesResponses];
|
|
8348
8349
|
type ListWebhooksData = {
|
|
8349
8350
|
body?: never;
|
|
8350
|
-
path
|
|
8351
|
-
|
|
8351
|
+
path?: never;
|
|
8352
|
+
query?: {
|
|
8353
|
+
project_id?: string;
|
|
8352
8354
|
};
|
|
8353
|
-
|
|
8354
|
-
url: '/api/v1/projects/{project_id}/webhooks';
|
|
8355
|
+
url: '/api/v1/webhooks';
|
|
8355
8356
|
};
|
|
8356
8357
|
type ListWebhooksErrors = {
|
|
8357
8358
|
/**
|
|
@@ -8372,11 +8373,9 @@ type ListWebhooksResponses = {
|
|
|
8372
8373
|
type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
|
|
8373
8374
|
type CreateWebhookData = {
|
|
8374
8375
|
body: CreateWebhookRequest;
|
|
8375
|
-
path
|
|
8376
|
-
project_id: string;
|
|
8377
|
-
};
|
|
8376
|
+
path?: never;
|
|
8378
8377
|
query?: never;
|
|
8379
|
-
url: '/api/v1/
|
|
8378
|
+
url: '/api/v1/webhooks';
|
|
8380
8379
|
};
|
|
8381
8380
|
type CreateWebhookErrors = {
|
|
8382
8381
|
/**
|
|
@@ -8402,11 +8401,10 @@ type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses
|
|
|
8402
8401
|
type DeleteWebhookData = {
|
|
8403
8402
|
body?: never;
|
|
8404
8403
|
path: {
|
|
8405
|
-
project_id: string;
|
|
8406
8404
|
webhook_id: string;
|
|
8407
8405
|
};
|
|
8408
8406
|
query?: never;
|
|
8409
|
-
url: '/api/v1/
|
|
8407
|
+
url: '/api/v1/webhooks/{webhook_id}';
|
|
8410
8408
|
};
|
|
8411
8409
|
type DeleteWebhookErrors = {
|
|
8412
8410
|
/**
|
|
@@ -8432,11 +8430,10 @@ type DeleteWebhookResponse = DeleteWebhookResponses[keyof DeleteWebhookResponses
|
|
|
8432
8430
|
type GetWebhookData = {
|
|
8433
8431
|
body?: never;
|
|
8434
8432
|
path: {
|
|
8435
|
-
project_id: string;
|
|
8436
8433
|
webhook_id: string;
|
|
8437
8434
|
};
|
|
8438
8435
|
query?: never;
|
|
8439
|
-
url: '/api/v1/
|
|
8436
|
+
url: '/api/v1/webhooks/{webhook_id}';
|
|
8440
8437
|
};
|
|
8441
8438
|
type GetWebhookErrors = {
|
|
8442
8439
|
/**
|
|
@@ -8462,11 +8459,10 @@ type GetWebhookResponse = GetWebhookResponses[keyof GetWebhookResponses];
|
|
|
8462
8459
|
type UpdateWebhookData = {
|
|
8463
8460
|
body: UpdateWebhookRequest;
|
|
8464
8461
|
path: {
|
|
8465
|
-
project_id: string;
|
|
8466
8462
|
webhook_id: string;
|
|
8467
8463
|
};
|
|
8468
8464
|
query?: never;
|
|
8469
|
-
url: '/api/v1/
|
|
8465
|
+
url: '/api/v1/webhooks/{webhook_id}';
|
|
8470
8466
|
};
|
|
8471
8467
|
type UpdateWebhookErrors = {
|
|
8472
8468
|
/**
|
|
@@ -8496,14 +8492,13 @@ type UpdateWebhookResponse = UpdateWebhookResponses[keyof UpdateWebhookResponses
|
|
|
8496
8492
|
type ListWebhookDeliveriesData = {
|
|
8497
8493
|
body?: never;
|
|
8498
8494
|
path: {
|
|
8499
|
-
project_id: string;
|
|
8500
8495
|
webhook_id: string;
|
|
8501
8496
|
};
|
|
8502
8497
|
query?: {
|
|
8503
8498
|
limit?: number;
|
|
8504
8499
|
offset?: number;
|
|
8505
8500
|
};
|
|
8506
|
-
url: '/api/v1/
|
|
8501
|
+
url: '/api/v1/webhooks/{webhook_id}/deliveries';
|
|
8507
8502
|
};
|
|
8508
8503
|
type ListWebhookDeliveriesErrors = {
|
|
8509
8504
|
/**
|
|
@@ -8529,12 +8524,11 @@ type ListWebhookDeliveriesResponse = ListWebhookDeliveriesResponses[keyof ListWe
|
|
|
8529
8524
|
type GetWebhookDeliveryData = {
|
|
8530
8525
|
body?: never;
|
|
8531
8526
|
path: {
|
|
8532
|
-
project_id: string;
|
|
8533
8527
|
webhook_id: string;
|
|
8534
8528
|
delivery_id: string;
|
|
8535
8529
|
};
|
|
8536
8530
|
query?: never;
|
|
8537
|
-
url: '/api/v1/
|
|
8531
|
+
url: '/api/v1/webhooks/{webhook_id}/deliveries/{delivery_id}';
|
|
8538
8532
|
};
|
|
8539
8533
|
type GetWebhookDeliveryErrors = {
|
|
8540
8534
|
/**
|
|
@@ -8560,11 +8554,10 @@ type GetWebhookDeliveryResponse = GetWebhookDeliveryResponses[keyof GetWebhookDe
|
|
|
8560
8554
|
type GetWebhookSecretData = {
|
|
8561
8555
|
body?: never;
|
|
8562
8556
|
path: {
|
|
8563
|
-
project_id: string;
|
|
8564
8557
|
webhook_id: string;
|
|
8565
8558
|
};
|
|
8566
8559
|
query?: never;
|
|
8567
|
-
url: '/api/v1/
|
|
8560
|
+
url: '/api/v1/webhooks/{webhook_id}/secret';
|
|
8568
8561
|
};
|
|
8569
8562
|
type GetWebhookSecretErrors = {
|
|
8570
8563
|
/**
|
|
@@ -8590,11 +8583,10 @@ type GetWebhookSecretResponse = GetWebhookSecretResponses[keyof GetWebhookSecret
|
|
|
8590
8583
|
type RotateWebhookSecretData = {
|
|
8591
8584
|
body?: never;
|
|
8592
8585
|
path: {
|
|
8593
|
-
project_id: string;
|
|
8594
8586
|
webhook_id: string;
|
|
8595
8587
|
};
|
|
8596
8588
|
query?: never;
|
|
8597
|
-
url: '/api/v1/
|
|
8589
|
+
url: '/api/v1/webhooks/{webhook_id}/rotate-secret';
|
|
8598
8590
|
};
|
|
8599
8591
|
type RotateWebhookSecretErrors = {
|
|
8600
8592
|
/**
|
|
@@ -9548,15 +9540,15 @@ declare class Users {
|
|
|
9548
9540
|
}
|
|
9549
9541
|
declare class Webhooks {
|
|
9550
9542
|
/**
|
|
9551
|
-
* List webhooks
|
|
9543
|
+
* List webhooks
|
|
9552
9544
|
*
|
|
9553
|
-
* Lists
|
|
9545
|
+
* Lists webhooks. Use the project_id query parameter to filter by project.
|
|
9554
9546
|
*/
|
|
9555
|
-
static listWebhooks<ThrowOnError extends boolean = false>(options
|
|
9547
|
+
static listWebhooks<ThrowOnError extends boolean = false>(options?: Options<ListWebhooksData, ThrowOnError>): RequestResult<ListWebhooksResponses, ListWebhooksErrors, ThrowOnError>;
|
|
9556
9548
|
/**
|
|
9557
9549
|
* Create a webhook
|
|
9558
9550
|
*
|
|
9559
|
-
* Creates a new webhook for
|
|
9551
|
+
* Creates a new webhook for a project
|
|
9560
9552
|
*/
|
|
9561
9553
|
static createWebhook<ThrowOnError extends boolean = false>(options: Options<CreateWebhookData, ThrowOnError>): RequestResult<CreateWebhookResponses, CreateWebhookErrors, ThrowOnError>;
|
|
9562
9554
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -2507,24 +2507,24 @@ var Users = class {
|
|
|
2507
2507
|
};
|
|
2508
2508
|
var Webhooks = class {
|
|
2509
2509
|
/**
|
|
2510
|
-
* List webhooks
|
|
2510
|
+
* List webhooks
|
|
2511
2511
|
*
|
|
2512
|
-
* Lists
|
|
2512
|
+
* Lists webhooks. Use the project_id query parameter to filter by project.
|
|
2513
2513
|
*/
|
|
2514
2514
|
static listWebhooks(options) {
|
|
2515
|
-
return (options
|
|
2516
|
-
url: "/api/v1/
|
|
2515
|
+
return (options?.client ?? client).get({
|
|
2516
|
+
url: "/api/v1/webhooks",
|
|
2517
2517
|
...options
|
|
2518
2518
|
});
|
|
2519
2519
|
}
|
|
2520
2520
|
/**
|
|
2521
2521
|
* Create a webhook
|
|
2522
2522
|
*
|
|
2523
|
-
* Creates a new webhook for
|
|
2523
|
+
* Creates a new webhook for a project
|
|
2524
2524
|
*/
|
|
2525
2525
|
static createWebhook(options) {
|
|
2526
2526
|
return (options.client ?? client).post({
|
|
2527
|
-
url: "/api/v1/
|
|
2527
|
+
url: "/api/v1/webhooks",
|
|
2528
2528
|
...options,
|
|
2529
2529
|
headers: {
|
|
2530
2530
|
"Content-Type": "application/json",
|
|
@@ -2539,7 +2539,7 @@ var Webhooks = class {
|
|
|
2539
2539
|
*/
|
|
2540
2540
|
static deleteWebhook(options) {
|
|
2541
2541
|
return (options.client ?? client).delete({
|
|
2542
|
-
url: "/api/v1/
|
|
2542
|
+
url: "/api/v1/webhooks/{webhook_id}",
|
|
2543
2543
|
...options
|
|
2544
2544
|
});
|
|
2545
2545
|
}
|
|
@@ -2550,7 +2550,7 @@ var Webhooks = class {
|
|
|
2550
2550
|
*/
|
|
2551
2551
|
static getWebhook(options) {
|
|
2552
2552
|
return (options.client ?? client).get({
|
|
2553
|
-
url: "/api/v1/
|
|
2553
|
+
url: "/api/v1/webhooks/{webhook_id}",
|
|
2554
2554
|
...options
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
@@ -2561,7 +2561,7 @@ var Webhooks = class {
|
|
|
2561
2561
|
*/
|
|
2562
2562
|
static updateWebhook(options) {
|
|
2563
2563
|
return (options.client ?? client).put({
|
|
2564
|
-
url: "/api/v1/
|
|
2564
|
+
url: "/api/v1/webhooks/{webhook_id}",
|
|
2565
2565
|
...options,
|
|
2566
2566
|
headers: {
|
|
2567
2567
|
"Content-Type": "application/json",
|
|
@@ -2576,7 +2576,7 @@ var Webhooks = class {
|
|
|
2576
2576
|
*/
|
|
2577
2577
|
static listWebhookDeliveries(options) {
|
|
2578
2578
|
return (options.client ?? client).get({
|
|
2579
|
-
url: "/api/v1/
|
|
2579
|
+
url: "/api/v1/webhooks/{webhook_id}/deliveries",
|
|
2580
2580
|
...options
|
|
2581
2581
|
});
|
|
2582
2582
|
}
|
|
@@ -2587,7 +2587,7 @@ var Webhooks = class {
|
|
|
2587
2587
|
*/
|
|
2588
2588
|
static getWebhookDelivery(options) {
|
|
2589
2589
|
return (options.client ?? client).get({
|
|
2590
|
-
url: "/api/v1/
|
|
2590
|
+
url: "/api/v1/webhooks/{webhook_id}/deliveries/{delivery_id}",
|
|
2591
2591
|
...options
|
|
2592
2592
|
});
|
|
2593
2593
|
}
|
|
@@ -2598,7 +2598,7 @@ var Webhooks = class {
|
|
|
2598
2598
|
*/
|
|
2599
2599
|
static getWebhookSecret(options) {
|
|
2600
2600
|
return (options.client ?? client).get({
|
|
2601
|
-
url: "/api/v1/
|
|
2601
|
+
url: "/api/v1/webhooks/{webhook_id}/secret",
|
|
2602
2602
|
...options
|
|
2603
2603
|
});
|
|
2604
2604
|
}
|
|
@@ -2609,7 +2609,7 @@ var Webhooks = class {
|
|
|
2609
2609
|
*/
|
|
2610
2610
|
static rotateWebhookSecret(options) {
|
|
2611
2611
|
return (options.client ?? client).post({
|
|
2612
|
-
url: "/api/v1/
|
|
2612
|
+
url: "/api/v1/webhooks/{webhook_id}/rotate-secret",
|
|
2613
2613
|
...options
|
|
2614
2614
|
});
|
|
2615
2615
|
}
|