@amerged/ohmyhost-sdk 0.1.60 → 0.1.63
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 +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +64 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +164 -0
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +410 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/packages/sdk-ts/package.json +1 -1
- package/src/packages/sdk-ts/src/generated/index.ts +53 -0
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +314 -0
- package/src/packages/sdk-ts/src/generated/types.gen.ts +463 -0
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export {
|
|
|
6
6
|
applyPaidProjectDomain,
|
|
7
7
|
authorizeApplicationDomainIdentityDns,
|
|
8
8
|
authorizeWorkspaceMailDomainDns,
|
|
9
|
+
beginConnection,
|
|
9
10
|
changeDatabaseCompute,
|
|
10
11
|
changeManagedSource,
|
|
11
12
|
changeProjectHandle,
|
|
@@ -48,7 +49,9 @@ export {
|
|
|
48
49
|
detachProjectMailDomainBinding,
|
|
49
50
|
diffManagedSource,
|
|
50
51
|
disableManagedMailReceiving,
|
|
52
|
+
disconnectConnection,
|
|
51
53
|
disconnectGithubOrganization,
|
|
54
|
+
discoverConnection,
|
|
52
55
|
ensureProjectDevShareLink,
|
|
53
56
|
getAccountProfile,
|
|
54
57
|
getApplicationDomainIdentity,
|
|
@@ -56,6 +59,7 @@ export {
|
|
|
56
59
|
getBillingCheckout,
|
|
57
60
|
getBillingRecharge,
|
|
58
61
|
getCloudflareDnsAuthorizationStatus,
|
|
62
|
+
getConnectionRequest,
|
|
59
63
|
getCurrentIdentity,
|
|
60
64
|
getDatabaseCompute,
|
|
61
65
|
getDatabaseWebhookSubscription,
|
|
@@ -94,9 +98,12 @@ export {
|
|
|
94
98
|
getPublicDeploymentStats,
|
|
95
99
|
getWorkspaceMailDomain,
|
|
96
100
|
getWorkspaceMailDomainDnsAuthorization,
|
|
101
|
+
importConnection,
|
|
97
102
|
initializeManagedSource,
|
|
98
103
|
linkProjectSource,
|
|
99
104
|
listAuditEvents,
|
|
105
|
+
listConnectionProviders,
|
|
106
|
+
listConnections,
|
|
100
107
|
listDeployments,
|
|
101
108
|
listEnvironmentSecrets,
|
|
102
109
|
listFunctionRuns,
|
|
@@ -206,6 +213,11 @@ export type {
|
|
|
206
213
|
AuthorizeWorkspaceMailDomainDnsErrors,
|
|
207
214
|
AuthorizeWorkspaceMailDomainDnsResponse,
|
|
208
215
|
AuthorizeWorkspaceMailDomainDnsResponses,
|
|
216
|
+
BeginConnectionData,
|
|
217
|
+
BeginConnectionError,
|
|
218
|
+
BeginConnectionErrors,
|
|
219
|
+
BeginConnectionResponse,
|
|
220
|
+
BeginConnectionResponses,
|
|
209
221
|
BillingCheckout,
|
|
210
222
|
BillingPortal,
|
|
211
223
|
BillingRecharge,
|
|
@@ -271,6 +283,17 @@ export type {
|
|
|
271
283
|
ConnectGithubOrganizationRequest,
|
|
272
284
|
ConnectGithubOrganizationResponse,
|
|
273
285
|
ConnectGithubOrganizationResponses,
|
|
286
|
+
ConnectionBegin,
|
|
287
|
+
ConnectionDisconnection,
|
|
288
|
+
ConnectionDiscovery,
|
|
289
|
+
ConnectionDiscoveryItem,
|
|
290
|
+
ConnectionGrant,
|
|
291
|
+
ConnectionGrantList,
|
|
292
|
+
ConnectionHandoff,
|
|
293
|
+
ConnectionImport,
|
|
294
|
+
ConnectionImportRequest,
|
|
295
|
+
ConnectionProviders,
|
|
296
|
+
ConnectionRequestStatus,
|
|
274
297
|
CostEstimate,
|
|
275
298
|
CreateBillingCheckoutData,
|
|
276
299
|
CreateBillingCheckoutError,
|
|
@@ -492,11 +515,21 @@ export type {
|
|
|
492
515
|
DisableManagedMailReceivingErrors,
|
|
493
516
|
DisableManagedMailReceivingResponse,
|
|
494
517
|
DisableManagedMailReceivingResponses,
|
|
518
|
+
DisconnectConnectionData,
|
|
519
|
+
DisconnectConnectionError,
|
|
520
|
+
DisconnectConnectionErrors,
|
|
521
|
+
DisconnectConnectionResponse,
|
|
522
|
+
DisconnectConnectionResponses,
|
|
495
523
|
DisconnectGithubOrganizationData,
|
|
496
524
|
DisconnectGithubOrganizationError,
|
|
497
525
|
DisconnectGithubOrganizationErrors,
|
|
498
526
|
DisconnectGithubOrganizationResponse,
|
|
499
527
|
DisconnectGithubOrganizationResponses,
|
|
528
|
+
DiscoverConnectionData,
|
|
529
|
+
DiscoverConnectionError,
|
|
530
|
+
DiscoverConnectionErrors,
|
|
531
|
+
DiscoverConnectionResponse,
|
|
532
|
+
DiscoverConnectionResponses,
|
|
500
533
|
EnsureProjectDevShareLinkData,
|
|
501
534
|
EnsureProjectDevShareLinkError,
|
|
502
535
|
EnsureProjectDevShareLinkErrors,
|
|
@@ -545,6 +578,11 @@ export type {
|
|
|
545
578
|
GetCloudflareDnsAuthorizationStatusErrors,
|
|
546
579
|
GetCloudflareDnsAuthorizationStatusResponse,
|
|
547
580
|
GetCloudflareDnsAuthorizationStatusResponses,
|
|
581
|
+
GetConnectionRequestData,
|
|
582
|
+
GetConnectionRequestError,
|
|
583
|
+
GetConnectionRequestErrors,
|
|
584
|
+
GetConnectionRequestResponse,
|
|
585
|
+
GetConnectionRequestResponses,
|
|
548
586
|
GetCurrentIdentityData,
|
|
549
587
|
GetCurrentIdentityError,
|
|
550
588
|
GetCurrentIdentityErrors,
|
|
@@ -747,6 +785,11 @@ export type {
|
|
|
747
785
|
IdempotencyConflictProblem,
|
|
748
786
|
IdempotencyKey,
|
|
749
787
|
IfMatch,
|
|
788
|
+
ImportConnectionData,
|
|
789
|
+
ImportConnectionError,
|
|
790
|
+
ImportConnectionErrors,
|
|
791
|
+
ImportConnectionResponse,
|
|
792
|
+
ImportConnectionResponses,
|
|
750
793
|
InitializeManagedSourceData,
|
|
751
794
|
InitializeManagedSourceError,
|
|
752
795
|
InitializeManagedSourceErrors,
|
|
@@ -763,6 +806,16 @@ export type {
|
|
|
763
806
|
ListAuditEventsErrors,
|
|
764
807
|
ListAuditEventsResponse,
|
|
765
808
|
ListAuditEventsResponses,
|
|
809
|
+
ListConnectionProvidersData,
|
|
810
|
+
ListConnectionProvidersError,
|
|
811
|
+
ListConnectionProvidersErrors,
|
|
812
|
+
ListConnectionProvidersResponse,
|
|
813
|
+
ListConnectionProvidersResponses,
|
|
814
|
+
ListConnectionsData,
|
|
815
|
+
ListConnectionsError,
|
|
816
|
+
ListConnectionsErrors,
|
|
817
|
+
ListConnectionsResponse,
|
|
818
|
+
ListConnectionsResponses,
|
|
766
819
|
ListDeploymentsData,
|
|
767
820
|
ListDeploymentsError,
|
|
768
821
|
ListDeploymentsErrors,
|
|
@@ -22,6 +22,8 @@ import type {
|
|
|
22
22
|
AuthorizeApplicationDomainIdentityDnsResponses,
|
|
23
23
|
AuthorizeWorkspaceMailDomainDnsErrors,
|
|
24
24
|
AuthorizeWorkspaceMailDomainDnsResponses,
|
|
25
|
+
BeginConnectionErrors,
|
|
26
|
+
BeginConnectionResponses,
|
|
25
27
|
ChangeDatabaseComputeErrors,
|
|
26
28
|
ChangeDatabaseComputeResponses,
|
|
27
29
|
ChangeManagedSourceErrors,
|
|
@@ -47,6 +49,8 @@ import type {
|
|
|
47
49
|
ConnectGithubOrganizationErrors,
|
|
48
50
|
ConnectGithubOrganizationRequest,
|
|
49
51
|
ConnectGithubOrganizationResponses,
|
|
52
|
+
ConnectionBegin,
|
|
53
|
+
ConnectionImportRequest,
|
|
50
54
|
CreateBillingCheckoutErrors,
|
|
51
55
|
CreateBillingCheckoutResponses,
|
|
52
56
|
CreateBillingPortalErrors,
|
|
@@ -118,8 +122,12 @@ import type {
|
|
|
118
122
|
DiffManagedSourceResponses,
|
|
119
123
|
DisableManagedMailReceivingErrors,
|
|
120
124
|
DisableManagedMailReceivingResponses,
|
|
125
|
+
DisconnectConnectionErrors,
|
|
126
|
+
DisconnectConnectionResponses,
|
|
121
127
|
DisconnectGithubOrganizationErrors,
|
|
122
128
|
DisconnectGithubOrganizationResponses,
|
|
129
|
+
DiscoverConnectionErrors,
|
|
130
|
+
DiscoverConnectionResponses,
|
|
123
131
|
EnsureProjectDevShareLinkErrors,
|
|
124
132
|
EnsureProjectDevShareLinkResponses,
|
|
125
133
|
FeedbackSubmission,
|
|
@@ -135,6 +143,8 @@ import type {
|
|
|
135
143
|
GetBillingRechargeResponses,
|
|
136
144
|
GetCloudflareDnsAuthorizationStatusErrors,
|
|
137
145
|
GetCloudflareDnsAuthorizationStatusResponses,
|
|
146
|
+
GetConnectionRequestErrors,
|
|
147
|
+
GetConnectionRequestResponses,
|
|
138
148
|
GetCurrentIdentityErrors,
|
|
139
149
|
GetCurrentIdentityResponses,
|
|
140
150
|
GetDatabaseComputeErrors,
|
|
@@ -211,6 +221,8 @@ import type {
|
|
|
211
221
|
GetWorkspaceMailDomainDnsAuthorizationResponses,
|
|
212
222
|
GetWorkspaceMailDomainErrors,
|
|
213
223
|
GetWorkspaceMailDomainResponses,
|
|
224
|
+
ImportConnectionErrors,
|
|
225
|
+
ImportConnectionResponses,
|
|
214
226
|
InitializeManagedSourceErrors,
|
|
215
227
|
InitializeManagedSourceResponses,
|
|
216
228
|
LinkProjectSourceErrors,
|
|
@@ -218,6 +230,10 @@ import type {
|
|
|
218
230
|
LinkProjectSourceResponses,
|
|
219
231
|
ListAuditEventsErrors,
|
|
220
232
|
ListAuditEventsResponses,
|
|
233
|
+
ListConnectionProvidersErrors,
|
|
234
|
+
ListConnectionProvidersResponses,
|
|
235
|
+
ListConnectionsErrors,
|
|
236
|
+
ListConnectionsResponses,
|
|
221
237
|
ListDeploymentsErrors,
|
|
222
238
|
ListDeploymentsResponses,
|
|
223
239
|
ListEnvironmentSecretsErrors,
|
|
@@ -577,6 +593,304 @@ export const rotateProjectPreviewToken = <ThrowOnError extends boolean = true>(
|
|
|
577
593
|
});
|
|
578
594
|
};
|
|
579
595
|
|
|
596
|
+
/**
|
|
597
|
+
* List connection grants
|
|
598
|
+
*/
|
|
599
|
+
export const listConnections = <ThrowOnError extends boolean = true>(
|
|
600
|
+
parameters: {
|
|
601
|
+
"X-Request-Id"?: string;
|
|
602
|
+
organization_id: Ulid;
|
|
603
|
+
scope?: "workspace";
|
|
604
|
+
},
|
|
605
|
+
options?: Options<never, ThrowOnError>,
|
|
606
|
+
): RequestResult<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError, "data"> => {
|
|
607
|
+
const params = buildClientParams(
|
|
608
|
+
[parameters],
|
|
609
|
+
[
|
|
610
|
+
{
|
|
611
|
+
args: [
|
|
612
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
613
|
+
{ in: "path", key: "organization_id" },
|
|
614
|
+
{ in: "query", key: "scope" },
|
|
615
|
+
],
|
|
616
|
+
},
|
|
617
|
+
],
|
|
618
|
+
);
|
|
619
|
+
return (options?.client ?? client).get<
|
|
620
|
+
ListConnectionsResponses,
|
|
621
|
+
ListConnectionsErrors,
|
|
622
|
+
ThrowOnError,
|
|
623
|
+
"data"
|
|
624
|
+
>({
|
|
625
|
+
responseStyle: "data",
|
|
626
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
627
|
+
url: "/v1/organizations/{organization_id}/connections",
|
|
628
|
+
...options,
|
|
629
|
+
...params,
|
|
630
|
+
});
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* List available connection providers
|
|
635
|
+
*/
|
|
636
|
+
export const listConnectionProviders = <ThrowOnError extends boolean = true>(
|
|
637
|
+
parameters: {
|
|
638
|
+
"X-Request-Id"?: string;
|
|
639
|
+
organization_id: Ulid;
|
|
640
|
+
},
|
|
641
|
+
options?: Options<never, ThrowOnError>,
|
|
642
|
+
): RequestResult<
|
|
643
|
+
ListConnectionProvidersResponses,
|
|
644
|
+
ListConnectionProvidersErrors,
|
|
645
|
+
ThrowOnError,
|
|
646
|
+
"data"
|
|
647
|
+
> => {
|
|
648
|
+
const params = buildClientParams(
|
|
649
|
+
[parameters],
|
|
650
|
+
[
|
|
651
|
+
{
|
|
652
|
+
args: [
|
|
653
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
654
|
+
{ in: "path", key: "organization_id" },
|
|
655
|
+
],
|
|
656
|
+
},
|
|
657
|
+
],
|
|
658
|
+
);
|
|
659
|
+
return (options?.client ?? client).get<
|
|
660
|
+
ListConnectionProvidersResponses,
|
|
661
|
+
ListConnectionProvidersErrors,
|
|
662
|
+
ThrowOnError,
|
|
663
|
+
"data"
|
|
664
|
+
>({
|
|
665
|
+
responseStyle: "data",
|
|
666
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
667
|
+
url: "/v1/organizations/{organization_id}/connections/providers",
|
|
668
|
+
...options,
|
|
669
|
+
...params,
|
|
670
|
+
});
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Start an owner consent handoff
|
|
675
|
+
*/
|
|
676
|
+
export const beginConnection = <ThrowOnError extends boolean = true>(
|
|
677
|
+
parameters: {
|
|
678
|
+
"X-Request-Id"?: string;
|
|
679
|
+
"Idempotency-Key": string;
|
|
680
|
+
organization_id: Ulid;
|
|
681
|
+
connectionBegin: ConnectionBegin;
|
|
682
|
+
},
|
|
683
|
+
options?: Options<never, ThrowOnError>,
|
|
684
|
+
): RequestResult<BeginConnectionResponses, BeginConnectionErrors, ThrowOnError, "data"> => {
|
|
685
|
+
const params = buildClientParams(
|
|
686
|
+
[parameters],
|
|
687
|
+
[
|
|
688
|
+
{
|
|
689
|
+
args: [
|
|
690
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
691
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
692
|
+
{ in: "path", key: "organization_id" },
|
|
693
|
+
{ key: "connectionBegin", map: "body" },
|
|
694
|
+
],
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
);
|
|
698
|
+
return (options?.client ?? client).post<
|
|
699
|
+
BeginConnectionResponses,
|
|
700
|
+
BeginConnectionErrors,
|
|
701
|
+
ThrowOnError,
|
|
702
|
+
"data"
|
|
703
|
+
>({
|
|
704
|
+
responseStyle: "data",
|
|
705
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
706
|
+
url: "/v1/organizations/{organization_id}/connections/begin",
|
|
707
|
+
...options,
|
|
708
|
+
...params,
|
|
709
|
+
headers: {
|
|
710
|
+
"Content-Type": "application/json",
|
|
711
|
+
...options?.headers,
|
|
712
|
+
...params.headers,
|
|
713
|
+
},
|
|
714
|
+
});
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Read a consent handoff status
|
|
719
|
+
*/
|
|
720
|
+
export const getConnectionRequest = <ThrowOnError extends boolean = true>(
|
|
721
|
+
parameters: {
|
|
722
|
+
"X-Request-Id"?: string;
|
|
723
|
+
organization_id: Ulid;
|
|
724
|
+
request_id: string;
|
|
725
|
+
},
|
|
726
|
+
options?: Options<never, ThrowOnError>,
|
|
727
|
+
): RequestResult<
|
|
728
|
+
GetConnectionRequestResponses,
|
|
729
|
+
GetConnectionRequestErrors,
|
|
730
|
+
ThrowOnError,
|
|
731
|
+
"data"
|
|
732
|
+
> => {
|
|
733
|
+
const params = buildClientParams(
|
|
734
|
+
[parameters],
|
|
735
|
+
[
|
|
736
|
+
{
|
|
737
|
+
args: [
|
|
738
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
739
|
+
{ in: "path", key: "organization_id" },
|
|
740
|
+
{ in: "path", key: "request_id" },
|
|
741
|
+
],
|
|
742
|
+
},
|
|
743
|
+
],
|
|
744
|
+
);
|
|
745
|
+
return (options?.client ?? client).get<
|
|
746
|
+
GetConnectionRequestResponses,
|
|
747
|
+
GetConnectionRequestErrors,
|
|
748
|
+
ThrowOnError,
|
|
749
|
+
"data"
|
|
750
|
+
>({
|
|
751
|
+
responseStyle: "data",
|
|
752
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
753
|
+
url: "/v1/organizations/{organization_id}/connections/requests/{request_id}",
|
|
754
|
+
...options,
|
|
755
|
+
...params,
|
|
756
|
+
});
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Discover organizations, teams and connections
|
|
761
|
+
*/
|
|
762
|
+
export const discoverConnection = <ThrowOnError extends boolean = true>(
|
|
763
|
+
parameters: {
|
|
764
|
+
"X-Request-Id"?: string;
|
|
765
|
+
organization_id: Ulid;
|
|
766
|
+
grant_id: string;
|
|
767
|
+
project_id?: Ulid;
|
|
768
|
+
environment_id?: Ulid;
|
|
769
|
+
provider_organization_id?: number;
|
|
770
|
+
team_id?: number;
|
|
771
|
+
},
|
|
772
|
+
options?: Options<never, ThrowOnError>,
|
|
773
|
+
): RequestResult<DiscoverConnectionResponses, DiscoverConnectionErrors, ThrowOnError, "data"> => {
|
|
774
|
+
const params = buildClientParams(
|
|
775
|
+
[parameters],
|
|
776
|
+
[
|
|
777
|
+
{
|
|
778
|
+
args: [
|
|
779
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
780
|
+
{ in: "path", key: "organization_id" },
|
|
781
|
+
{ in: "path", key: "grant_id" },
|
|
782
|
+
{ in: "query", key: "project_id" },
|
|
783
|
+
{ in: "query", key: "environment_id" },
|
|
784
|
+
{ in: "query", key: "provider_organization_id" },
|
|
785
|
+
{ in: "query", key: "team_id" },
|
|
786
|
+
],
|
|
787
|
+
},
|
|
788
|
+
],
|
|
789
|
+
);
|
|
790
|
+
return (options?.client ?? client).get<
|
|
791
|
+
DiscoverConnectionResponses,
|
|
792
|
+
DiscoverConnectionErrors,
|
|
793
|
+
ThrowOnError,
|
|
794
|
+
"data"
|
|
795
|
+
>({
|
|
796
|
+
responseStyle: "data",
|
|
797
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
798
|
+
url: "/v1/organizations/{organization_id}/connections/{grant_id}/catalog",
|
|
799
|
+
...options,
|
|
800
|
+
...params,
|
|
801
|
+
});
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Import a Make connection into a project environment
|
|
806
|
+
*/
|
|
807
|
+
export const importConnection = <ThrowOnError extends boolean = true>(
|
|
808
|
+
parameters: {
|
|
809
|
+
"X-Request-Id"?: string;
|
|
810
|
+
"Idempotency-Key": string;
|
|
811
|
+
organization_id: Ulid;
|
|
812
|
+
grant_id: string;
|
|
813
|
+
connectionImportRequest: ConnectionImportRequest;
|
|
814
|
+
},
|
|
815
|
+
options?: Options<never, ThrowOnError>,
|
|
816
|
+
): RequestResult<ImportConnectionResponses, ImportConnectionErrors, ThrowOnError, "data"> => {
|
|
817
|
+
const params = buildClientParams(
|
|
818
|
+
[parameters],
|
|
819
|
+
[
|
|
820
|
+
{
|
|
821
|
+
args: [
|
|
822
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
823
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
824
|
+
{ in: "path", key: "organization_id" },
|
|
825
|
+
{ in: "path", key: "grant_id" },
|
|
826
|
+
{ key: "connectionImportRequest", map: "body" },
|
|
827
|
+
],
|
|
828
|
+
},
|
|
829
|
+
],
|
|
830
|
+
);
|
|
831
|
+
return (options?.client ?? client).post<
|
|
832
|
+
ImportConnectionResponses,
|
|
833
|
+
ImportConnectionErrors,
|
|
834
|
+
ThrowOnError,
|
|
835
|
+
"data"
|
|
836
|
+
>({
|
|
837
|
+
responseStyle: "data",
|
|
838
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
839
|
+
url: "/v1/organizations/{organization_id}/connections/{grant_id}/imports",
|
|
840
|
+
...options,
|
|
841
|
+
...params,
|
|
842
|
+
headers: {
|
|
843
|
+
"Content-Type": "application/json",
|
|
844
|
+
...options?.headers,
|
|
845
|
+
...params.headers,
|
|
846
|
+
},
|
|
847
|
+
});
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Disconnect a connection grant
|
|
852
|
+
*/
|
|
853
|
+
export const disconnectConnection = <ThrowOnError extends boolean = true>(
|
|
854
|
+
parameters: {
|
|
855
|
+
"X-Request-Id"?: string;
|
|
856
|
+
"Idempotency-Key": string;
|
|
857
|
+
organization_id: Ulid;
|
|
858
|
+
grant_id: string;
|
|
859
|
+
},
|
|
860
|
+
options?: Options<never, ThrowOnError>,
|
|
861
|
+
): RequestResult<
|
|
862
|
+
DisconnectConnectionResponses,
|
|
863
|
+
DisconnectConnectionErrors,
|
|
864
|
+
ThrowOnError,
|
|
865
|
+
"data"
|
|
866
|
+
> => {
|
|
867
|
+
const params = buildClientParams(
|
|
868
|
+
[parameters],
|
|
869
|
+
[
|
|
870
|
+
{
|
|
871
|
+
args: [
|
|
872
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
873
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
874
|
+
{ in: "path", key: "organization_id" },
|
|
875
|
+
{ in: "path", key: "grant_id" },
|
|
876
|
+
],
|
|
877
|
+
},
|
|
878
|
+
],
|
|
879
|
+
);
|
|
880
|
+
return (options?.client ?? client).delete<
|
|
881
|
+
DisconnectConnectionResponses,
|
|
882
|
+
DisconnectConnectionErrors,
|
|
883
|
+
ThrowOnError,
|
|
884
|
+
"data"
|
|
885
|
+
>({
|
|
886
|
+
responseStyle: "data",
|
|
887
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
888
|
+
url: "/v1/organizations/{organization_id}/connections/{grant_id}",
|
|
889
|
+
...options,
|
|
890
|
+
...params,
|
|
891
|
+
});
|
|
892
|
+
};
|
|
893
|
+
|
|
580
894
|
/**
|
|
581
895
|
* Read Native Auth configuration
|
|
582
896
|
*
|