@seekora-ai/admin-api 1.2.12 → 1.2.13
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/README.md +16 -2
- package/api.ts +661 -0
- package/dist/api.d.ts +480 -0
- package/dist/api.js +342 -11
- package/dist/esm/api.d.ts +480 -0
- package/dist/esm/api.js +327 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.13.tgz +0 -0
- package/seekora-ai-admin-api-1.2.12.tgz +0 -0
package/api.ts
CHANGED
|
@@ -14472,6 +14472,316 @@ export interface ConnectorUpdateTransformationRequest {
|
|
|
14472
14472
|
*/
|
|
14473
14473
|
'name'?: string;
|
|
14474
14474
|
}
|
|
14475
|
+
/**
|
|
14476
|
+
*
|
|
14477
|
+
* @export
|
|
14478
|
+
* @interface ConnectorWebhookDeliveriesListData
|
|
14479
|
+
*/
|
|
14480
|
+
export interface ConnectorWebhookDeliveriesListData {
|
|
14481
|
+
/**
|
|
14482
|
+
*
|
|
14483
|
+
* @type {number}
|
|
14484
|
+
* @memberof ConnectorWebhookDeliveriesListData
|
|
14485
|
+
*/
|
|
14486
|
+
'count'?: number;
|
|
14487
|
+
/**
|
|
14488
|
+
*
|
|
14489
|
+
* @type {Array<ConnectorWebhookDeliveryItem>}
|
|
14490
|
+
* @memberof ConnectorWebhookDeliveriesListData
|
|
14491
|
+
*/
|
|
14492
|
+
'deliveries'?: Array<ConnectorWebhookDeliveryItem>;
|
|
14493
|
+
/**
|
|
14494
|
+
*
|
|
14495
|
+
* @type {string}
|
|
14496
|
+
* @memberof ConnectorWebhookDeliveriesListData
|
|
14497
|
+
*/
|
|
14498
|
+
'next_cursor'?: string;
|
|
14499
|
+
}
|
|
14500
|
+
/**
|
|
14501
|
+
*
|
|
14502
|
+
* @export
|
|
14503
|
+
* @interface ConnectorWebhookDeliveriesListResponse
|
|
14504
|
+
*/
|
|
14505
|
+
export interface ConnectorWebhookDeliveriesListResponse {
|
|
14506
|
+
/**
|
|
14507
|
+
*
|
|
14508
|
+
* @type {ConnectorWebhookDeliveriesListData}
|
|
14509
|
+
* @memberof ConnectorWebhookDeliveriesListResponse
|
|
14510
|
+
*/
|
|
14511
|
+
'data'?: ConnectorWebhookDeliveriesListData;
|
|
14512
|
+
/**
|
|
14513
|
+
*
|
|
14514
|
+
* @type {string}
|
|
14515
|
+
* @memberof ConnectorWebhookDeliveriesListResponse
|
|
14516
|
+
*/
|
|
14517
|
+
'message'?: string;
|
|
14518
|
+
/**
|
|
14519
|
+
*
|
|
14520
|
+
* @type {number}
|
|
14521
|
+
* @memberof ConnectorWebhookDeliveriesListResponse
|
|
14522
|
+
*/
|
|
14523
|
+
'status'?: number;
|
|
14524
|
+
/**
|
|
14525
|
+
*
|
|
14526
|
+
* @type {string}
|
|
14527
|
+
* @memberof ConnectorWebhookDeliveriesListResponse
|
|
14528
|
+
*/
|
|
14529
|
+
'timestamp'?: string;
|
|
14530
|
+
}
|
|
14531
|
+
/**
|
|
14532
|
+
*
|
|
14533
|
+
* @export
|
|
14534
|
+
* @interface ConnectorWebhookDeliveryItem
|
|
14535
|
+
*/
|
|
14536
|
+
export interface ConnectorWebhookDeliveryItem {
|
|
14537
|
+
/**
|
|
14538
|
+
*
|
|
14539
|
+
* @type {string}
|
|
14540
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14541
|
+
*/
|
|
14542
|
+
'connector_type'?: string;
|
|
14543
|
+
/**
|
|
14544
|
+
*
|
|
14545
|
+
* @type {string}
|
|
14546
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14547
|
+
*/
|
|
14548
|
+
'error_message'?: string;
|
|
14549
|
+
/**
|
|
14550
|
+
*
|
|
14551
|
+
* @type {string}
|
|
14552
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14553
|
+
*/
|
|
14554
|
+
'external_id'?: string;
|
|
14555
|
+
/**
|
|
14556
|
+
*
|
|
14557
|
+
* @type {boolean}
|
|
14558
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14559
|
+
*/
|
|
14560
|
+
'has_body'?: boolean;
|
|
14561
|
+
/**
|
|
14562
|
+
*
|
|
14563
|
+
* @type {object}
|
|
14564
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14565
|
+
*/
|
|
14566
|
+
'headers'?: object;
|
|
14567
|
+
/**
|
|
14568
|
+
*
|
|
14569
|
+
* @type {string}
|
|
14570
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14571
|
+
*/
|
|
14572
|
+
'processed_at'?: string;
|
|
14573
|
+
/**
|
|
14574
|
+
*
|
|
14575
|
+
* @type {string}
|
|
14576
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14577
|
+
*/
|
|
14578
|
+
'received_at'?: string;
|
|
14579
|
+
/**
|
|
14580
|
+
*
|
|
14581
|
+
* @type {string}
|
|
14582
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14583
|
+
*/
|
|
14584
|
+
'status'?: string;
|
|
14585
|
+
/**
|
|
14586
|
+
*
|
|
14587
|
+
* @type {string}
|
|
14588
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14589
|
+
*/
|
|
14590
|
+
'stream'?: string;
|
|
14591
|
+
/**
|
|
14592
|
+
*
|
|
14593
|
+
* @type {string}
|
|
14594
|
+
* @memberof ConnectorWebhookDeliveryItem
|
|
14595
|
+
*/
|
|
14596
|
+
'uuid'?: string;
|
|
14597
|
+
}
|
|
14598
|
+
/**
|
|
14599
|
+
*
|
|
14600
|
+
* @export
|
|
14601
|
+
* @interface ConnectorWebhookReplayResponse
|
|
14602
|
+
*/
|
|
14603
|
+
export interface ConnectorWebhookReplayResponse {
|
|
14604
|
+
/**
|
|
14605
|
+
*
|
|
14606
|
+
* @type {ConnectorWebhookReplayResult}
|
|
14607
|
+
* @memberof ConnectorWebhookReplayResponse
|
|
14608
|
+
*/
|
|
14609
|
+
'data'?: ConnectorWebhookReplayResult;
|
|
14610
|
+
/**
|
|
14611
|
+
*
|
|
14612
|
+
* @type {string}
|
|
14613
|
+
* @memberof ConnectorWebhookReplayResponse
|
|
14614
|
+
*/
|
|
14615
|
+
'message'?: string;
|
|
14616
|
+
/**
|
|
14617
|
+
*
|
|
14618
|
+
* @type {number}
|
|
14619
|
+
* @memberof ConnectorWebhookReplayResponse
|
|
14620
|
+
*/
|
|
14621
|
+
'status'?: number;
|
|
14622
|
+
/**
|
|
14623
|
+
*
|
|
14624
|
+
* @type {string}
|
|
14625
|
+
* @memberof ConnectorWebhookReplayResponse
|
|
14626
|
+
*/
|
|
14627
|
+
'timestamp'?: string;
|
|
14628
|
+
}
|
|
14629
|
+
/**
|
|
14630
|
+
*
|
|
14631
|
+
* @export
|
|
14632
|
+
* @interface ConnectorWebhookReplayResult
|
|
14633
|
+
*/
|
|
14634
|
+
export interface ConnectorWebhookReplayResult {
|
|
14635
|
+
/**
|
|
14636
|
+
*
|
|
14637
|
+
* @type {string}
|
|
14638
|
+
* @memberof ConnectorWebhookReplayResult
|
|
14639
|
+
*/
|
|
14640
|
+
'original_delivery_uuid'?: string;
|
|
14641
|
+
/**
|
|
14642
|
+
*
|
|
14643
|
+
* @type {string}
|
|
14644
|
+
* @memberof ConnectorWebhookReplayResult
|
|
14645
|
+
*/
|
|
14646
|
+
'replay_delivery_uuid'?: string;
|
|
14647
|
+
}
|
|
14648
|
+
/**
|
|
14649
|
+
*
|
|
14650
|
+
* @export
|
|
14651
|
+
* @interface ConnectorWebhookResubscribeAllFailure
|
|
14652
|
+
*/
|
|
14653
|
+
export interface ConnectorWebhookResubscribeAllFailure {
|
|
14654
|
+
/**
|
|
14655
|
+
*
|
|
14656
|
+
* @type {string}
|
|
14657
|
+
* @memberof ConnectorWebhookResubscribeAllFailure
|
|
14658
|
+
*/
|
|
14659
|
+
'error'?: string;
|
|
14660
|
+
/**
|
|
14661
|
+
*
|
|
14662
|
+
* @type {string}
|
|
14663
|
+
* @memberof ConnectorWebhookResubscribeAllFailure
|
|
14664
|
+
*/
|
|
14665
|
+
'source_uuid'?: string;
|
|
14666
|
+
}
|
|
14667
|
+
/**
|
|
14668
|
+
*
|
|
14669
|
+
* @export
|
|
14670
|
+
* @interface ConnectorWebhookResubscribeAllResponse
|
|
14671
|
+
*/
|
|
14672
|
+
export interface ConnectorWebhookResubscribeAllResponse {
|
|
14673
|
+
/**
|
|
14674
|
+
*
|
|
14675
|
+
* @type {ConnectorWebhookResubscribeAllResult}
|
|
14676
|
+
* @memberof ConnectorWebhookResubscribeAllResponse
|
|
14677
|
+
*/
|
|
14678
|
+
'data'?: ConnectorWebhookResubscribeAllResult;
|
|
14679
|
+
/**
|
|
14680
|
+
*
|
|
14681
|
+
* @type {string}
|
|
14682
|
+
* @memberof ConnectorWebhookResubscribeAllResponse
|
|
14683
|
+
*/
|
|
14684
|
+
'message'?: string;
|
|
14685
|
+
/**
|
|
14686
|
+
*
|
|
14687
|
+
* @type {number}
|
|
14688
|
+
* @memberof ConnectorWebhookResubscribeAllResponse
|
|
14689
|
+
*/
|
|
14690
|
+
'status'?: number;
|
|
14691
|
+
/**
|
|
14692
|
+
*
|
|
14693
|
+
* @type {string}
|
|
14694
|
+
* @memberof ConnectorWebhookResubscribeAllResponse
|
|
14695
|
+
*/
|
|
14696
|
+
'timestamp'?: string;
|
|
14697
|
+
}
|
|
14698
|
+
/**
|
|
14699
|
+
*
|
|
14700
|
+
* @export
|
|
14701
|
+
* @interface ConnectorWebhookResubscribeAllResult
|
|
14702
|
+
*/
|
|
14703
|
+
export interface ConnectorWebhookResubscribeAllResult {
|
|
14704
|
+
/**
|
|
14705
|
+
*
|
|
14706
|
+
* @type {Array<ConnectorWebhookResubscribeAllFailure>}
|
|
14707
|
+
* @memberof ConnectorWebhookResubscribeAllResult
|
|
14708
|
+
*/
|
|
14709
|
+
'errors'?: Array<ConnectorWebhookResubscribeAllFailure>;
|
|
14710
|
+
/**
|
|
14711
|
+
*
|
|
14712
|
+
* @type {number}
|
|
14713
|
+
* @memberof ConnectorWebhookResubscribeAllResult
|
|
14714
|
+
*/
|
|
14715
|
+
'failed'?: number;
|
|
14716
|
+
/**
|
|
14717
|
+
*
|
|
14718
|
+
* @type {number}
|
|
14719
|
+
* @memberof ConnectorWebhookResubscribeAllResult
|
|
14720
|
+
*/
|
|
14721
|
+
'succeeded'?: number;
|
|
14722
|
+
/**
|
|
14723
|
+
*
|
|
14724
|
+
* @type {number}
|
|
14725
|
+
* @memberof ConnectorWebhookResubscribeAllResult
|
|
14726
|
+
*/
|
|
14727
|
+
'total'?: number;
|
|
14728
|
+
}
|
|
14729
|
+
/**
|
|
14730
|
+
*
|
|
14731
|
+
* @export
|
|
14732
|
+
* @interface ConnectorWebhookResubscribeResponse
|
|
14733
|
+
*/
|
|
14734
|
+
export interface ConnectorWebhookResubscribeResponse {
|
|
14735
|
+
/**
|
|
14736
|
+
*
|
|
14737
|
+
* @type {ConnectorWebhookResubscribeResult}
|
|
14738
|
+
* @memberof ConnectorWebhookResubscribeResponse
|
|
14739
|
+
*/
|
|
14740
|
+
'data'?: ConnectorWebhookResubscribeResult;
|
|
14741
|
+
/**
|
|
14742
|
+
*
|
|
14743
|
+
* @type {string}
|
|
14744
|
+
* @memberof ConnectorWebhookResubscribeResponse
|
|
14745
|
+
*/
|
|
14746
|
+
'message'?: string;
|
|
14747
|
+
/**
|
|
14748
|
+
*
|
|
14749
|
+
* @type {number}
|
|
14750
|
+
* @memberof ConnectorWebhookResubscribeResponse
|
|
14751
|
+
*/
|
|
14752
|
+
'status'?: number;
|
|
14753
|
+
/**
|
|
14754
|
+
*
|
|
14755
|
+
* @type {string}
|
|
14756
|
+
* @memberof ConnectorWebhookResubscribeResponse
|
|
14757
|
+
*/
|
|
14758
|
+
'timestamp'?: string;
|
|
14759
|
+
}
|
|
14760
|
+
/**
|
|
14761
|
+
*
|
|
14762
|
+
* @export
|
|
14763
|
+
* @interface ConnectorWebhookResubscribeResult
|
|
14764
|
+
*/
|
|
14765
|
+
export interface ConnectorWebhookResubscribeResult {
|
|
14766
|
+
/**
|
|
14767
|
+
*
|
|
14768
|
+
* @type {string}
|
|
14769
|
+
* @memberof ConnectorWebhookResubscribeResult
|
|
14770
|
+
*/
|
|
14771
|
+
'connector_type'?: string;
|
|
14772
|
+
/**
|
|
14773
|
+
*
|
|
14774
|
+
* @type {string}
|
|
14775
|
+
* @memberof ConnectorWebhookResubscribeResult
|
|
14776
|
+
*/
|
|
14777
|
+
'source_uuid'?: string;
|
|
14778
|
+
/**
|
|
14779
|
+
*
|
|
14780
|
+
* @type {number}
|
|
14781
|
+
* @memberof ConnectorWebhookResubscribeResult
|
|
14782
|
+
*/
|
|
14783
|
+
'topics_subscribed'?: number;
|
|
14784
|
+
}
|
|
14475
14785
|
/**
|
|
14476
14786
|
*
|
|
14477
14787
|
* @export
|
|
@@ -45531,6 +45841,357 @@ export class AdminAnalyticsApi extends BaseAPI {
|
|
|
45531
45841
|
|
|
45532
45842
|
|
|
45533
45843
|
|
|
45844
|
+
/**
|
|
45845
|
+
* AdminConnectorWebhooksApi - axios parameter creator
|
|
45846
|
+
* @export
|
|
45847
|
+
*/
|
|
45848
|
+
export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45849
|
+
return {
|
|
45850
|
+
/**
|
|
45851
|
+
* Re-publish a previously recorded delivery through the forge.webhook exchange. A new external_id is minted so the worker processes the replay end-to-end.
|
|
45852
|
+
* @summary Replay a recorded webhook delivery
|
|
45853
|
+
* @param {string} sourceUuid Connector source UUID
|
|
45854
|
+
* @param {string} deliveryUuid Delivery UUID to replay
|
|
45855
|
+
* @param {*} [options] Override http request option.
|
|
45856
|
+
* @throws {RequiredError}
|
|
45857
|
+
*/
|
|
45858
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost: async (sourceUuid: string, deliveryUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45859
|
+
// verify required parameter 'sourceUuid' is not null or undefined
|
|
45860
|
+
assertParamExists('adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost', 'sourceUuid', sourceUuid)
|
|
45861
|
+
// verify required parameter 'deliveryUuid' is not null or undefined
|
|
45862
|
+
assertParamExists('adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost', 'deliveryUuid', deliveryUuid)
|
|
45863
|
+
const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/deliveries/{delivery_uuid}/replay`
|
|
45864
|
+
.replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)))
|
|
45865
|
+
.replace(`{${"delivery_uuid"}}`, encodeURIComponent(String(deliveryUuid)));
|
|
45866
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45867
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45868
|
+
let baseOptions;
|
|
45869
|
+
if (configuration) {
|
|
45870
|
+
baseOptions = configuration.baseOptions;
|
|
45871
|
+
}
|
|
45872
|
+
|
|
45873
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
45874
|
+
const localVarHeaderParameter = {} as any;
|
|
45875
|
+
const localVarQueryParameter = {} as any;
|
|
45876
|
+
|
|
45877
|
+
// authentication BearerAuth required
|
|
45878
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
45879
|
+
|
|
45880
|
+
|
|
45881
|
+
|
|
45882
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45883
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45884
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45885
|
+
|
|
45886
|
+
return {
|
|
45887
|
+
url: toPathString(localVarUrlObj),
|
|
45888
|
+
options: localVarRequestOptions,
|
|
45889
|
+
};
|
|
45890
|
+
},
|
|
45891
|
+
/**
|
|
45892
|
+
* Paginated list of recent webhook deliveries for a connector source. body_base64 is redacted; use replay to send a delivery through the pipeline again.
|
|
45893
|
+
* @summary List recent webhook deliveries
|
|
45894
|
+
* @param {string} sourceUuid Connector source UUID
|
|
45895
|
+
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
45896
|
+
* @param {number} [limit] Page size (default 50, max 200)
|
|
45897
|
+
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
45898
|
+
* @param {*} [options] Override http request option.
|
|
45899
|
+
* @throws {RequiredError}
|
|
45900
|
+
*/
|
|
45901
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet: async (sourceUuid: string, status?: string, limit?: number, beforeUuid?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45902
|
+
// verify required parameter 'sourceUuid' is not null or undefined
|
|
45903
|
+
assertParamExists('adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet', 'sourceUuid', sourceUuid)
|
|
45904
|
+
const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/deliveries`
|
|
45905
|
+
.replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)));
|
|
45906
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45907
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45908
|
+
let baseOptions;
|
|
45909
|
+
if (configuration) {
|
|
45910
|
+
baseOptions = configuration.baseOptions;
|
|
45911
|
+
}
|
|
45912
|
+
|
|
45913
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
45914
|
+
const localVarHeaderParameter = {} as any;
|
|
45915
|
+
const localVarQueryParameter = {} as any;
|
|
45916
|
+
|
|
45917
|
+
// authentication BearerAuth required
|
|
45918
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
45919
|
+
|
|
45920
|
+
if (status !== undefined) {
|
|
45921
|
+
localVarQueryParameter['status'] = status;
|
|
45922
|
+
}
|
|
45923
|
+
|
|
45924
|
+
if (limit !== undefined) {
|
|
45925
|
+
localVarQueryParameter['limit'] = limit;
|
|
45926
|
+
}
|
|
45927
|
+
|
|
45928
|
+
if (beforeUuid !== undefined) {
|
|
45929
|
+
localVarQueryParameter['before_uuid'] = beforeUuid;
|
|
45930
|
+
}
|
|
45931
|
+
|
|
45932
|
+
|
|
45933
|
+
|
|
45934
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45936
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45937
|
+
|
|
45938
|
+
return {
|
|
45939
|
+
url: toPathString(localVarUrlObj),
|
|
45940
|
+
options: localVarRequestOptions,
|
|
45941
|
+
};
|
|
45942
|
+
},
|
|
45943
|
+
/**
|
|
45944
|
+
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
45945
|
+
* @summary Resubscribe webhooks for a connector source
|
|
45946
|
+
* @param {string} sourceUuid Connector source UUID
|
|
45947
|
+
* @param {*} [options] Override http request option.
|
|
45948
|
+
* @throws {RequiredError}
|
|
45949
|
+
*/
|
|
45950
|
+
adminConnectorsSourcesSourceUuidWebhooksResubscribePost: async (sourceUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45951
|
+
// verify required parameter 'sourceUuid' is not null or undefined
|
|
45952
|
+
assertParamExists('adminConnectorsSourcesSourceUuidWebhooksResubscribePost', 'sourceUuid', sourceUuid)
|
|
45953
|
+
const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/resubscribe`
|
|
45954
|
+
.replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)));
|
|
45955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45956
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45957
|
+
let baseOptions;
|
|
45958
|
+
if (configuration) {
|
|
45959
|
+
baseOptions = configuration.baseOptions;
|
|
45960
|
+
}
|
|
45961
|
+
|
|
45962
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
45963
|
+
const localVarHeaderParameter = {} as any;
|
|
45964
|
+
const localVarQueryParameter = {} as any;
|
|
45965
|
+
|
|
45966
|
+
// authentication BearerAuth required
|
|
45967
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
45968
|
+
|
|
45969
|
+
|
|
45970
|
+
|
|
45971
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45972
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45973
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
45974
|
+
|
|
45975
|
+
return {
|
|
45976
|
+
url: toPathString(localVarUrlObj),
|
|
45977
|
+
options: localVarRequestOptions,
|
|
45978
|
+
};
|
|
45979
|
+
},
|
|
45980
|
+
/**
|
|
45981
|
+
* Iterates every active connector source in the org and re-runs register_webhooks for each. Per-source errors are captured individually — one failure does not block the others.
|
|
45982
|
+
* @summary Resubscribe webhooks for every connector source
|
|
45983
|
+
* @param {*} [options] Override http request option.
|
|
45984
|
+
* @throws {RequiredError}
|
|
45985
|
+
*/
|
|
45986
|
+
adminConnectorsWebhooksResubscribeAllPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45987
|
+
const localVarPath = `/admin/connectors/webhooks/resubscribe-all`;
|
|
45988
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45989
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45990
|
+
let baseOptions;
|
|
45991
|
+
if (configuration) {
|
|
45992
|
+
baseOptions = configuration.baseOptions;
|
|
45993
|
+
}
|
|
45994
|
+
|
|
45995
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
45996
|
+
const localVarHeaderParameter = {} as any;
|
|
45997
|
+
const localVarQueryParameter = {} as any;
|
|
45998
|
+
|
|
45999
|
+
// authentication BearerAuth required
|
|
46000
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
46001
|
+
|
|
46002
|
+
|
|
46003
|
+
|
|
46004
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46005
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46006
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46007
|
+
|
|
46008
|
+
return {
|
|
46009
|
+
url: toPathString(localVarUrlObj),
|
|
46010
|
+
options: localVarRequestOptions,
|
|
46011
|
+
};
|
|
46012
|
+
},
|
|
46013
|
+
}
|
|
46014
|
+
};
|
|
46015
|
+
|
|
46016
|
+
/**
|
|
46017
|
+
* AdminConnectorWebhooksApi - functional programming interface
|
|
46018
|
+
* @export
|
|
46019
|
+
*/
|
|
46020
|
+
export const AdminConnectorWebhooksApiFp = function(configuration?: Configuration) {
|
|
46021
|
+
const localVarAxiosParamCreator = AdminConnectorWebhooksApiAxiosParamCreator(configuration)
|
|
46022
|
+
return {
|
|
46023
|
+
/**
|
|
46024
|
+
* Re-publish a previously recorded delivery through the forge.webhook exchange. A new external_id is minted so the worker processes the replay end-to-end.
|
|
46025
|
+
* @summary Replay a recorded webhook delivery
|
|
46026
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46027
|
+
* @param {string} deliveryUuid Delivery UUID to replay
|
|
46028
|
+
* @param {*} [options] Override http request option.
|
|
46029
|
+
* @throws {RequiredError}
|
|
46030
|
+
*/
|
|
46031
|
+
async adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid: string, deliveryUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectorWebhookReplayResponse>> {
|
|
46032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options);
|
|
46033
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46034
|
+
const localVarOperationServerBasePath = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost']?.[localVarOperationServerIndex]?.url;
|
|
46035
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
46036
|
+
},
|
|
46037
|
+
/**
|
|
46038
|
+
* Paginated list of recent webhook deliveries for a connector source. body_base64 is redacted; use replay to send a delivery through the pipeline again.
|
|
46039
|
+
* @summary List recent webhook deliveries
|
|
46040
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46041
|
+
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
46042
|
+
* @param {number} [limit] Page size (default 50, max 200)
|
|
46043
|
+
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
46044
|
+
* @param {*} [options] Override http request option.
|
|
46045
|
+
* @throws {RequiredError}
|
|
46046
|
+
*/
|
|
46047
|
+
async adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid: string, status?: string, limit?: number, beforeUuid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectorWebhookDeliveriesListResponse>> {
|
|
46048
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options);
|
|
46049
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46050
|
+
const localVarOperationServerBasePath = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet']?.[localVarOperationServerIndex]?.url;
|
|
46051
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
46052
|
+
},
|
|
46053
|
+
/**
|
|
46054
|
+
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
46055
|
+
* @summary Resubscribe webhooks for a connector source
|
|
46056
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46057
|
+
* @param {*} [options] Override http request option.
|
|
46058
|
+
* @throws {RequiredError}
|
|
46059
|
+
*/
|
|
46060
|
+
async adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectorWebhookResubscribeResponse>> {
|
|
46061
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options);
|
|
46062
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46063
|
+
const localVarOperationServerBasePath = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksResubscribePost']?.[localVarOperationServerIndex]?.url;
|
|
46064
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
46065
|
+
},
|
|
46066
|
+
/**
|
|
46067
|
+
* Iterates every active connector source in the org and re-runs register_webhooks for each. Per-source errors are captured individually — one failure does not block the others.
|
|
46068
|
+
* @summary Resubscribe webhooks for every connector source
|
|
46069
|
+
* @param {*} [options] Override http request option.
|
|
46070
|
+
* @throws {RequiredError}
|
|
46071
|
+
*/
|
|
46072
|
+
async adminConnectorsWebhooksResubscribeAllPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectorWebhookResubscribeAllResponse>> {
|
|
46073
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminConnectorsWebhooksResubscribeAllPost(options);
|
|
46074
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46075
|
+
const localVarOperationServerBasePath = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsWebhooksResubscribeAllPost']?.[localVarOperationServerIndex]?.url;
|
|
46076
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
46077
|
+
},
|
|
46078
|
+
}
|
|
46079
|
+
};
|
|
46080
|
+
|
|
46081
|
+
/**
|
|
46082
|
+
* AdminConnectorWebhooksApi - factory interface
|
|
46083
|
+
* @export
|
|
46084
|
+
*/
|
|
46085
|
+
export const AdminConnectorWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
46086
|
+
const localVarFp = AdminConnectorWebhooksApiFp(configuration)
|
|
46087
|
+
return {
|
|
46088
|
+
/**
|
|
46089
|
+
* Re-publish a previously recorded delivery through the forge.webhook exchange. A new external_id is minted so the worker processes the replay end-to-end.
|
|
46090
|
+
* @summary Replay a recorded webhook delivery
|
|
46091
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46092
|
+
* @param {string} deliveryUuid Delivery UUID to replay
|
|
46093
|
+
* @param {*} [options] Override http request option.
|
|
46094
|
+
* @throws {RequiredError}
|
|
46095
|
+
*/
|
|
46096
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid: string, deliveryUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ConnectorWebhookReplayResponse> {
|
|
46097
|
+
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options).then((request) => request(axios, basePath));
|
|
46098
|
+
},
|
|
46099
|
+
/**
|
|
46100
|
+
* Paginated list of recent webhook deliveries for a connector source. body_base64 is redacted; use replay to send a delivery through the pipeline again.
|
|
46101
|
+
* @summary List recent webhook deliveries
|
|
46102
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46103
|
+
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
46104
|
+
* @param {number} [limit] Page size (default 50, max 200)
|
|
46105
|
+
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
46106
|
+
* @param {*} [options] Override http request option.
|
|
46107
|
+
* @throws {RequiredError}
|
|
46108
|
+
*/
|
|
46109
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid: string, status?: string, limit?: number, beforeUuid?: string, options?: RawAxiosRequestConfig): AxiosPromise<ConnectorWebhookDeliveriesListResponse> {
|
|
46110
|
+
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options).then((request) => request(axios, basePath));
|
|
46111
|
+
},
|
|
46112
|
+
/**
|
|
46113
|
+
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
46114
|
+
* @summary Resubscribe webhooks for a connector source
|
|
46115
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46116
|
+
* @param {*} [options] Override http request option.
|
|
46117
|
+
* @throws {RequiredError}
|
|
46118
|
+
*/
|
|
46119
|
+
adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ConnectorWebhookResubscribeResponse> {
|
|
46120
|
+
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(axios, basePath));
|
|
46121
|
+
},
|
|
46122
|
+
/**
|
|
46123
|
+
* Iterates every active connector source in the org and re-runs register_webhooks for each. Per-source errors are captured individually — one failure does not block the others.
|
|
46124
|
+
* @summary Resubscribe webhooks for every connector source
|
|
46125
|
+
* @param {*} [options] Override http request option.
|
|
46126
|
+
* @throws {RequiredError}
|
|
46127
|
+
*/
|
|
46128
|
+
adminConnectorsWebhooksResubscribeAllPost(options?: RawAxiosRequestConfig): AxiosPromise<ConnectorWebhookResubscribeAllResponse> {
|
|
46129
|
+
return localVarFp.adminConnectorsWebhooksResubscribeAllPost(options).then((request) => request(axios, basePath));
|
|
46130
|
+
},
|
|
46131
|
+
};
|
|
46132
|
+
};
|
|
46133
|
+
|
|
46134
|
+
/**
|
|
46135
|
+
* AdminConnectorWebhooksApi - object-oriented interface
|
|
46136
|
+
* @export
|
|
46137
|
+
* @class AdminConnectorWebhooksApi
|
|
46138
|
+
* @extends {BaseAPI}
|
|
46139
|
+
*/
|
|
46140
|
+
export class AdminConnectorWebhooksApi extends BaseAPI {
|
|
46141
|
+
/**
|
|
46142
|
+
* Re-publish a previously recorded delivery through the forge.webhook exchange. A new external_id is minted so the worker processes the replay end-to-end.
|
|
46143
|
+
* @summary Replay a recorded webhook delivery
|
|
46144
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46145
|
+
* @param {string} deliveryUuid Delivery UUID to replay
|
|
46146
|
+
* @param {*} [options] Override http request option.
|
|
46147
|
+
* @throws {RequiredError}
|
|
46148
|
+
* @memberof AdminConnectorWebhooksApi
|
|
46149
|
+
*/
|
|
46150
|
+
public adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid: string, deliveryUuid: string, options?: RawAxiosRequestConfig) {
|
|
46151
|
+
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options).then((request) => request(this.axios, this.basePath));
|
|
46152
|
+
}
|
|
46153
|
+
|
|
46154
|
+
/**
|
|
46155
|
+
* Paginated list of recent webhook deliveries for a connector source. body_base64 is redacted; use replay to send a delivery through the pipeline again.
|
|
46156
|
+
* @summary List recent webhook deliveries
|
|
46157
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46158
|
+
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
46159
|
+
* @param {number} [limit] Page size (default 50, max 200)
|
|
46160
|
+
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
46161
|
+
* @param {*} [options] Override http request option.
|
|
46162
|
+
* @throws {RequiredError}
|
|
46163
|
+
* @memberof AdminConnectorWebhooksApi
|
|
46164
|
+
*/
|
|
46165
|
+
public adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid: string, status?: string, limit?: number, beforeUuid?: string, options?: RawAxiosRequestConfig) {
|
|
46166
|
+
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options).then((request) => request(this.axios, this.basePath));
|
|
46167
|
+
}
|
|
46168
|
+
|
|
46169
|
+
/**
|
|
46170
|
+
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
46171
|
+
* @summary Resubscribe webhooks for a connector source
|
|
46172
|
+
* @param {string} sourceUuid Connector source UUID
|
|
46173
|
+
* @param {*} [options] Override http request option.
|
|
46174
|
+
* @throws {RequiredError}
|
|
46175
|
+
* @memberof AdminConnectorWebhooksApi
|
|
46176
|
+
*/
|
|
46177
|
+
public adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid: string, options?: RawAxiosRequestConfig) {
|
|
46178
|
+
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
|
|
46179
|
+
}
|
|
46180
|
+
|
|
46181
|
+
/**
|
|
46182
|
+
* Iterates every active connector source in the org and re-runs register_webhooks for each. Per-source errors are captured individually — one failure does not block the others.
|
|
46183
|
+
* @summary Resubscribe webhooks for every connector source
|
|
46184
|
+
* @param {*} [options] Override http request option.
|
|
46185
|
+
* @throws {RequiredError}
|
|
46186
|
+
* @memberof AdminConnectorWebhooksApi
|
|
46187
|
+
*/
|
|
46188
|
+
public adminConnectorsWebhooksResubscribeAllPost(options?: RawAxiosRequestConfig) {
|
|
46189
|
+
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsWebhooksResubscribeAllPost(options).then((request) => request(this.axios, this.basePath));
|
|
46190
|
+
}
|
|
46191
|
+
}
|
|
46192
|
+
|
|
46193
|
+
|
|
46194
|
+
|
|
45534
46195
|
/**
|
|
45535
46196
|
* AdminNotificationTemplatesApi - axios parameter creator
|
|
45536
46197
|
* @export
|