@amerged/ohmyhost-sdk 0.1.70 → 0.1.72
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/mcp-remote.gen.d.ts +2 -2
- package/dist/generated/mcp-remote.gen.d.ts.map +1 -1
- package/dist/generated/mcp-remote.gen.js +220 -3
- package/dist/generated/mcp-remote.gen.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +24 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +66 -0
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +129 -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 +16 -0
- package/src/packages/sdk-ts/src/generated/mcp-remote.gen.ts +224 -3
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +116 -0
- package/src/packages/sdk-ts/src/generated/types.gen.ts +147 -0
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ export {
|
|
|
23
23
|
createCloudflareDnsAuthorization,
|
|
24
24
|
createDeployment,
|
|
25
25
|
createMakeActionBinding,
|
|
26
|
+
createMakeCredentialRequest,
|
|
26
27
|
createManagedSourceUpload,
|
|
27
28
|
createNativeAuthUser,
|
|
28
29
|
createOrganization,
|
|
@@ -69,6 +70,7 @@ export {
|
|
|
69
70
|
getFeatureInterests,
|
|
70
71
|
getFeedback,
|
|
71
72
|
getGithubOrganizationConnection,
|
|
73
|
+
getMakeCredentialRequest,
|
|
72
74
|
getManagedMailAttachment,
|
|
73
75
|
getManagedMailDomain,
|
|
74
76
|
getManagedMailMessage,
|
|
@@ -324,6 +326,11 @@ export type {
|
|
|
324
326
|
CreateMakeActionBindingErrors,
|
|
325
327
|
CreateMakeActionBindingResponse,
|
|
326
328
|
CreateMakeActionBindingResponses,
|
|
329
|
+
CreateMakeCredentialRequestData,
|
|
330
|
+
CreateMakeCredentialRequestError,
|
|
331
|
+
CreateMakeCredentialRequestErrors,
|
|
332
|
+
CreateMakeCredentialRequestResponse,
|
|
333
|
+
CreateMakeCredentialRequestResponses,
|
|
327
334
|
CreateManagedSourceUploadData,
|
|
328
335
|
CreateManagedSourceUploadError,
|
|
329
336
|
CreateManagedSourceUploadErrors,
|
|
@@ -630,6 +637,11 @@ export type {
|
|
|
630
637
|
GetGithubOrganizationConnectionErrors,
|
|
631
638
|
GetGithubOrganizationConnectionResponse,
|
|
632
639
|
GetGithubOrganizationConnectionResponses,
|
|
640
|
+
GetMakeCredentialRequestData,
|
|
641
|
+
GetMakeCredentialRequestError,
|
|
642
|
+
GetMakeCredentialRequestErrors,
|
|
643
|
+
GetMakeCredentialRequestResponse,
|
|
644
|
+
GetMakeCredentialRequestResponses,
|
|
633
645
|
GetManagedMailAttachmentData,
|
|
634
646
|
GetManagedMailAttachmentError,
|
|
635
647
|
GetManagedMailAttachmentErrors,
|
|
@@ -920,6 +932,10 @@ export type {
|
|
|
920
932
|
MakeActionRunSuccess,
|
|
921
933
|
MakeActionUnavailable,
|
|
922
934
|
MakeActionUncertain,
|
|
935
|
+
MakeCredentialRequestCreate,
|
|
936
|
+
MakeCredentialRequestResult,
|
|
937
|
+
MakeCredentialRequestStatus,
|
|
938
|
+
MakeCredentialSelection,
|
|
923
939
|
ManagedMailContent,
|
|
924
940
|
ManagedMailContentResult,
|
|
925
941
|
ManagedMailDisabled,
|
|
@@ -72,9 +72,9 @@ import {
|
|
|
72
72
|
writeProjectDatabase,
|
|
73
73
|
} from "./sdk.gen.js";
|
|
74
74
|
export const remoteMcpContractSha256 =
|
|
75
|
-
"
|
|
75
|
+
"99da3b404be30539e086a7972dca78e3d0270117abf06d1b83522d5b095d571d";
|
|
76
76
|
export const remoteMcpContractVersion = "0.0.0";
|
|
77
|
-
export const remoteMcpReleaseVersion = "0.1.
|
|
77
|
+
export const remoteMcpReleaseVersion = "0.1.72";
|
|
78
78
|
export interface RemoteMcpOperation {
|
|
79
79
|
operationId: string;
|
|
80
80
|
method: string;
|
|
@@ -807,6 +807,227 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
|
|
|
807
807
|
},
|
|
808
808
|
},
|
|
809
809
|
},
|
|
810
|
+
{
|
|
811
|
+
inputSchema: {
|
|
812
|
+
type: "object",
|
|
813
|
+
additionalProperties: false,
|
|
814
|
+
required: [
|
|
815
|
+
"organization_id",
|
|
816
|
+
"grant_id",
|
|
817
|
+
"idempotency_key",
|
|
818
|
+
"provider_organization_id",
|
|
819
|
+
"team_id",
|
|
820
|
+
"selections",
|
|
821
|
+
],
|
|
822
|
+
properties: {
|
|
823
|
+
organization_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
824
|
+
grant_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
825
|
+
idempotency_key: {
|
|
826
|
+
type: "string",
|
|
827
|
+
minLength: 1,
|
|
828
|
+
maxLength: 128,
|
|
829
|
+
pattern: "^[A-Za-z0-9._:-]+$",
|
|
830
|
+
description:
|
|
831
|
+
"Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.",
|
|
832
|
+
},
|
|
833
|
+
provider_organization_id: { type: "integer", minimum: 1, maximum: 9007199254740991 },
|
|
834
|
+
team_id: { type: "integer", minimum: 1, maximum: 9007199254740991 },
|
|
835
|
+
selections: {
|
|
836
|
+
type: "array",
|
|
837
|
+
minItems: 1,
|
|
838
|
+
maxItems: 64,
|
|
839
|
+
items: {
|
|
840
|
+
type: "object",
|
|
841
|
+
additionalProperties: false,
|
|
842
|
+
required: ["app_name", "app_version"],
|
|
843
|
+
anyOf: [{ required: ["module_ids"] }, { required: ["endpoint_names"] }],
|
|
844
|
+
properties: {
|
|
845
|
+
app_name: {
|
|
846
|
+
type: "string",
|
|
847
|
+
pattern: "^[A-Za-z0-9_-]{1,128}$",
|
|
848
|
+
description: "A Make standard app identifier.",
|
|
849
|
+
},
|
|
850
|
+
app_version: { type: "integer", minimum: 1, maximum: 9007199254740991 },
|
|
851
|
+
module_ids: {
|
|
852
|
+
type: "array",
|
|
853
|
+
minItems: 1,
|
|
854
|
+
maxItems: 64,
|
|
855
|
+
uniqueItems: true,
|
|
856
|
+
items: { type: "string", pattern: "^[A-Za-z0-9_.:-]{1,128}$" },
|
|
857
|
+
},
|
|
858
|
+
endpoint_names: {
|
|
859
|
+
type: "array",
|
|
860
|
+
minItems: 1,
|
|
861
|
+
maxItems: 64,
|
|
862
|
+
uniqueItems: true,
|
|
863
|
+
items: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" },
|
|
864
|
+
},
|
|
865
|
+
},
|
|
866
|
+
},
|
|
867
|
+
},
|
|
868
|
+
},
|
|
869
|
+
},
|
|
870
|
+
operationId: "createMakeCredentialRequest",
|
|
871
|
+
method: "POST",
|
|
872
|
+
path: "/v1/organizations/{organization_id}/connections/{grant_id}/credential-requests",
|
|
873
|
+
summary: "Create a native Make Credential Request",
|
|
874
|
+
description:
|
|
875
|
+
"Uses the workspace owner's Make grant to create a private Make authorization link for selected standard app modules or Endpoints. Retry the same logical request with the same idempotency key and selections. Treat an uncertain result as pending investigation.",
|
|
876
|
+
disposition: "named",
|
|
877
|
+
toolNames: ["integration_credential_request_create"],
|
|
878
|
+
requestBody: {
|
|
879
|
+
required: true,
|
|
880
|
+
content: {
|
|
881
|
+
"application/json": {
|
|
882
|
+
schema: {
|
|
883
|
+
type: "object",
|
|
884
|
+
additionalProperties: false,
|
|
885
|
+
required: ["provider_organization_id", "team_id", "selections"],
|
|
886
|
+
properties: {
|
|
887
|
+
provider_organization_id: { type: "integer", minimum: 1, maximum: 9007199254740991 },
|
|
888
|
+
team_id: { type: "integer", minimum: 1, maximum: 9007199254740991 },
|
|
889
|
+
selections: {
|
|
890
|
+
type: "array",
|
|
891
|
+
minItems: 1,
|
|
892
|
+
maxItems: 64,
|
|
893
|
+
items: {
|
|
894
|
+
type: "object",
|
|
895
|
+
additionalProperties: false,
|
|
896
|
+
required: ["app_name", "app_version"],
|
|
897
|
+
anyOf: [{ required: ["module_ids"] }, { required: ["endpoint_names"] }],
|
|
898
|
+
properties: {
|
|
899
|
+
app_name: {
|
|
900
|
+
type: "string",
|
|
901
|
+
pattern: "^[A-Za-z0-9_-]{1,128}$",
|
|
902
|
+
description: "A Make standard app identifier.",
|
|
903
|
+
},
|
|
904
|
+
app_version: { type: "integer", minimum: 1, maximum: 9007199254740991 },
|
|
905
|
+
module_ids: {
|
|
906
|
+
type: "array",
|
|
907
|
+
minItems: 1,
|
|
908
|
+
maxItems: 64,
|
|
909
|
+
uniqueItems: true,
|
|
910
|
+
items: { type: "string", pattern: "^[A-Za-z0-9_.:-]{1,128}$" },
|
|
911
|
+
},
|
|
912
|
+
endpoint_names: {
|
|
913
|
+
type: "array",
|
|
914
|
+
minItems: 1,
|
|
915
|
+
maxItems: 64,
|
|
916
|
+
uniqueItems: true,
|
|
917
|
+
items: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" },
|
|
918
|
+
},
|
|
919
|
+
},
|
|
920
|
+
},
|
|
921
|
+
},
|
|
922
|
+
},
|
|
923
|
+
},
|
|
924
|
+
},
|
|
925
|
+
},
|
|
926
|
+
},
|
|
927
|
+
parameters: [
|
|
928
|
+
{
|
|
929
|
+
name: "X-Request-Id",
|
|
930
|
+
in: "header",
|
|
931
|
+
description: "Optional caller-provided correlation identifier.",
|
|
932
|
+
required: false,
|
|
933
|
+
schema: { type: "string", minLength: 1, maxLength: 128 },
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
name: "organization_id",
|
|
937
|
+
in: "path",
|
|
938
|
+
required: true,
|
|
939
|
+
schema: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
name: "grant_id",
|
|
943
|
+
in: "path",
|
|
944
|
+
required: true,
|
|
945
|
+
schema: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
name: "Idempotency-Key",
|
|
949
|
+
in: "header",
|
|
950
|
+
description:
|
|
951
|
+
"Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.",
|
|
952
|
+
required: true,
|
|
953
|
+
schema: { type: "string", minLength: 1, maxLength: 128, pattern: "^[A-Za-z0-9._:-]+$" },
|
|
954
|
+
},
|
|
955
|
+
],
|
|
956
|
+
outputSchema: {
|
|
957
|
+
type: "object",
|
|
958
|
+
additionalProperties: false,
|
|
959
|
+
required: ["state"],
|
|
960
|
+
properties: {
|
|
961
|
+
state: { enum: ["created", "running", "uncertain", "reconnect_required"] },
|
|
962
|
+
request_id: { type: "string", pattern: "^[a-f0-9]{64}$" },
|
|
963
|
+
provider_status: { type: "string", minLength: 1, maxLength: 64 },
|
|
964
|
+
authorization_url: {
|
|
965
|
+
type: "string",
|
|
966
|
+
format: "uri",
|
|
967
|
+
description: "Private Make link available only on create or replay.",
|
|
968
|
+
},
|
|
969
|
+
expires_at: { type: ["string", "null"], format: "date-time" },
|
|
970
|
+
},
|
|
971
|
+
},
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
inputSchema: {
|
|
975
|
+
type: "object",
|
|
976
|
+
properties: {
|
|
977
|
+
organization_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
978
|
+
grant_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
979
|
+
request_id: { type: "string", pattern: "^[a-f0-9]{64}$" },
|
|
980
|
+
},
|
|
981
|
+
required: ["organization_id", "grant_id", "request_id"],
|
|
982
|
+
additionalProperties: false,
|
|
983
|
+
},
|
|
984
|
+
operationId: "getMakeCredentialRequest",
|
|
985
|
+
method: "GET",
|
|
986
|
+
path: "/v1/organizations/{organization_id}/connections/{grant_id}/credential-requests/{request_id}",
|
|
987
|
+
summary: "Read native Make Credential Request status",
|
|
988
|
+
description:
|
|
989
|
+
"Reads the current Make status for the owning workspace grant. The private authorization link is available in the create response.",
|
|
990
|
+
disposition: "named",
|
|
991
|
+
toolNames: ["integration_credential_request_status"],
|
|
992
|
+
parameters: [
|
|
993
|
+
{
|
|
994
|
+
name: "X-Request-Id",
|
|
995
|
+
in: "header",
|
|
996
|
+
description: "Optional caller-provided correlation identifier.",
|
|
997
|
+
required: false,
|
|
998
|
+
schema: { type: "string", minLength: 1, maxLength: 128 },
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
name: "organization_id",
|
|
1002
|
+
in: "path",
|
|
1003
|
+
required: true,
|
|
1004
|
+
schema: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
name: "grant_id",
|
|
1008
|
+
in: "path",
|
|
1009
|
+
required: true,
|
|
1010
|
+
schema: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
name: "request_id",
|
|
1014
|
+
in: "path",
|
|
1015
|
+
required: true,
|
|
1016
|
+
schema: { type: "string", pattern: "^[a-f0-9]{64}$" },
|
|
1017
|
+
},
|
|
1018
|
+
],
|
|
1019
|
+
outputSchema: {
|
|
1020
|
+
type: "object",
|
|
1021
|
+
additionalProperties: false,
|
|
1022
|
+
required: ["state"],
|
|
1023
|
+
properties: {
|
|
1024
|
+
state: { enum: ["created", "running", "uncertain", "reconnect_required"] },
|
|
1025
|
+
request_id: { type: "string", pattern: "^[a-f0-9]{64}$" },
|
|
1026
|
+
provider_status: { type: "string", minLength: 1, maxLength: 64 },
|
|
1027
|
+
expires_at: { type: ["string", "null"], format: "date-time" },
|
|
1028
|
+
},
|
|
1029
|
+
},
|
|
1030
|
+
},
|
|
810
1031
|
{
|
|
811
1032
|
inputSchema: {
|
|
812
1033
|
type: "object",
|
|
@@ -22305,7 +22526,7 @@ export const remoteMcpWorkflowTools: readonly RemoteMcpWorkflowTool[] = [
|
|
|
22305
22526
|
name: "api_reference",
|
|
22306
22527
|
title: "Read the Master Tool Contract",
|
|
22307
22528
|
description:
|
|
22308
|
-
"Find documented API operations, exact schemas and remote MCP support in the deployed Master Tool Contract. This lookup never executes an API operation.",
|
|
22529
|
+
"Find documented API operations, exact schemas and remote MCP support in the deployed Master Tool Contract. This lookup never executes an API operation. See https://github.com/amerged-org/ohmyhost for the ohmyho.st hosting platform (OMH) and https://github.com/amerged-org/cloudflare-postgres for its PostgreSQL infrastructure (PGCF).",
|
|
22309
22530
|
annotations: {
|
|
22310
22531
|
readOnlyHint: true,
|
|
22311
22532
|
destructiveHint: false,
|
|
@@ -63,6 +63,8 @@ import type {
|
|
|
63
63
|
CreateDeploymentResponses,
|
|
64
64
|
CreateMakeActionBindingErrors,
|
|
65
65
|
CreateMakeActionBindingResponses,
|
|
66
|
+
CreateMakeCredentialRequestErrors,
|
|
67
|
+
CreateMakeCredentialRequestResponses,
|
|
66
68
|
CreateManagedSourceUploadErrors,
|
|
67
69
|
CreateManagedSourceUploadResponses,
|
|
68
70
|
CreateNativeAuthUserErrors,
|
|
@@ -163,6 +165,8 @@ import type {
|
|
|
163
165
|
GetFeedbackResponses,
|
|
164
166
|
GetGithubOrganizationConnectionErrors,
|
|
165
167
|
GetGithubOrganizationConnectionResponses,
|
|
168
|
+
GetMakeCredentialRequestErrors,
|
|
169
|
+
GetMakeCredentialRequestResponses,
|
|
166
170
|
GetManagedMailAttachmentErrors,
|
|
167
171
|
GetManagedMailAttachmentResponses,
|
|
168
172
|
GetManagedMailDomainErrors,
|
|
@@ -273,6 +277,7 @@ import type {
|
|
|
273
277
|
MailRevisionRequest,
|
|
274
278
|
MakeActionBindingRequest,
|
|
275
279
|
MakeActionRunRequest,
|
|
280
|
+
MakeCredentialRequestCreate,
|
|
276
281
|
ManagedMailDomainRequest,
|
|
277
282
|
ManagedMailWebhookRequest,
|
|
278
283
|
ManagedSourceBlobRequest,
|
|
@@ -861,6 +866,117 @@ export const discoverConnection = <ThrowOnError extends boolean = true>(
|
|
|
861
866
|
});
|
|
862
867
|
};
|
|
863
868
|
|
|
869
|
+
/**
|
|
870
|
+
* Create a native Make Credential Request
|
|
871
|
+
*
|
|
872
|
+
* Uses the workspace owner's Make grant to create a private Make authorization link for selected standard app modules or Endpoints. Retry the same logical request with the same idempotency key and selections. Treat an uncertain result as pending investigation.
|
|
873
|
+
*/
|
|
874
|
+
export const createMakeCredentialRequest = <ThrowOnError extends boolean = true>(
|
|
875
|
+
parameters: {
|
|
876
|
+
"X-Request-Id"?: string;
|
|
877
|
+
"Idempotency-Key": string;
|
|
878
|
+
organization_id: Ulid;
|
|
879
|
+
grant_id: Ulid;
|
|
880
|
+
makeCredentialRequestCreate: MakeCredentialRequestCreate;
|
|
881
|
+
},
|
|
882
|
+
options?: Options<never, ThrowOnError>,
|
|
883
|
+
): RequestResult<
|
|
884
|
+
CreateMakeCredentialRequestResponses,
|
|
885
|
+
CreateMakeCredentialRequestErrors,
|
|
886
|
+
ThrowOnError,
|
|
887
|
+
"data"
|
|
888
|
+
> => {
|
|
889
|
+
const params = buildClientParams(
|
|
890
|
+
[parameters],
|
|
891
|
+
[
|
|
892
|
+
{
|
|
893
|
+
args: [
|
|
894
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
895
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
896
|
+
{ in: "path", key: "organization_id" },
|
|
897
|
+
{ in: "path", key: "grant_id" },
|
|
898
|
+
{ key: "makeCredentialRequestCreate", map: "body" },
|
|
899
|
+
],
|
|
900
|
+
},
|
|
901
|
+
],
|
|
902
|
+
);
|
|
903
|
+
return (options?.client ?? client).post<
|
|
904
|
+
CreateMakeCredentialRequestResponses,
|
|
905
|
+
CreateMakeCredentialRequestErrors,
|
|
906
|
+
ThrowOnError,
|
|
907
|
+
"data"
|
|
908
|
+
>({
|
|
909
|
+
responseStyle: "data",
|
|
910
|
+
security: [
|
|
911
|
+
{
|
|
912
|
+
key: "BearerAuth",
|
|
913
|
+
scheme: "bearer",
|
|
914
|
+
type: "http",
|
|
915
|
+
},
|
|
916
|
+
],
|
|
917
|
+
url: "/v1/organizations/{organization_id}/connections/{grant_id}/credential-requests",
|
|
918
|
+
...options,
|
|
919
|
+
...params,
|
|
920
|
+
headers: {
|
|
921
|
+
"Content-Type": "application/json",
|
|
922
|
+
...options?.headers,
|
|
923
|
+
...params.headers,
|
|
924
|
+
},
|
|
925
|
+
});
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Read native Make Credential Request status
|
|
930
|
+
*
|
|
931
|
+
* Reads the current Make status for the owning workspace grant. The private authorization link is available in the create response.
|
|
932
|
+
*/
|
|
933
|
+
export const getMakeCredentialRequest = <ThrowOnError extends boolean = true>(
|
|
934
|
+
parameters: {
|
|
935
|
+
"X-Request-Id"?: string;
|
|
936
|
+
organization_id: Ulid;
|
|
937
|
+
grant_id: Ulid;
|
|
938
|
+
request_id: string;
|
|
939
|
+
},
|
|
940
|
+
options?: Options<never, ThrowOnError>,
|
|
941
|
+
): RequestResult<
|
|
942
|
+
GetMakeCredentialRequestResponses,
|
|
943
|
+
GetMakeCredentialRequestErrors,
|
|
944
|
+
ThrowOnError,
|
|
945
|
+
"data"
|
|
946
|
+
> => {
|
|
947
|
+
const params = buildClientParams(
|
|
948
|
+
[parameters],
|
|
949
|
+
[
|
|
950
|
+
{
|
|
951
|
+
args: [
|
|
952
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
953
|
+
{ in: "path", key: "organization_id" },
|
|
954
|
+
{ in: "path", key: "grant_id" },
|
|
955
|
+
{ in: "path", key: "request_id" },
|
|
956
|
+
],
|
|
957
|
+
},
|
|
958
|
+
],
|
|
959
|
+
);
|
|
960
|
+
return (options?.client ?? client).get<
|
|
961
|
+
GetMakeCredentialRequestResponses,
|
|
962
|
+
GetMakeCredentialRequestErrors,
|
|
963
|
+
ThrowOnError,
|
|
964
|
+
"data"
|
|
965
|
+
>({
|
|
966
|
+
responseStyle: "data",
|
|
967
|
+
security: [
|
|
968
|
+
{
|
|
969
|
+
key: "BearerAuth",
|
|
970
|
+
scheme: "bearer",
|
|
971
|
+
type: "http",
|
|
972
|
+
},
|
|
973
|
+
],
|
|
974
|
+
url: "/v1/organizations/{organization_id}/connections/{grant_id}/credential-requests/{request_id}",
|
|
975
|
+
...options,
|
|
976
|
+
...params,
|
|
977
|
+
});
|
|
978
|
+
};
|
|
979
|
+
|
|
864
980
|
/**
|
|
865
981
|
* Bind one Make action to an imported connection
|
|
866
982
|
*
|
|
@@ -25,6 +25,40 @@ export type ConnectionBegin = {
|
|
|
25
25
|
environment_id?: Ulid;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
+
export type MakeCredentialRequestCreate = {
|
|
29
|
+
provider_organization_id: number;
|
|
30
|
+
team_id: number;
|
|
31
|
+
selections: Array<MakeCredentialSelection>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type MakeCredentialSelection = unknown & {
|
|
35
|
+
/**
|
|
36
|
+
* A Make standard app identifier.
|
|
37
|
+
*/
|
|
38
|
+
app_name: string;
|
|
39
|
+
app_version: number;
|
|
40
|
+
module_ids?: Array<string>;
|
|
41
|
+
endpoint_names?: Array<string>;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type MakeCredentialRequestResult = {
|
|
45
|
+
state: "created" | "running" | "uncertain" | "reconnect_required";
|
|
46
|
+
request_id?: string;
|
|
47
|
+
provider_status?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Private Make link available only on create or replay.
|
|
50
|
+
*/
|
|
51
|
+
authorization_url?: string;
|
|
52
|
+
expires_at?: string | null;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type MakeCredentialRequestStatus = {
|
|
56
|
+
state: "created" | "running" | "uncertain" | "reconnect_required";
|
|
57
|
+
request_id?: string;
|
|
58
|
+
provider_status?: string;
|
|
59
|
+
expires_at?: string | null;
|
|
60
|
+
};
|
|
61
|
+
|
|
28
62
|
export type MakeActionBindingRequest = {
|
|
29
63
|
project_id: Ulid;
|
|
30
64
|
environment_id: Ulid;
|
|
@@ -3147,6 +3181,119 @@ export type DiscoverConnectionResponses = {
|
|
|
3147
3181
|
export type DiscoverConnectionResponse =
|
|
3148
3182
|
DiscoverConnectionResponses[keyof DiscoverConnectionResponses];
|
|
3149
3183
|
|
|
3184
|
+
export type CreateMakeCredentialRequestData = {
|
|
3185
|
+
body: MakeCredentialRequestCreate;
|
|
3186
|
+
headers: {
|
|
3187
|
+
/**
|
|
3188
|
+
* Optional caller-provided correlation identifier.
|
|
3189
|
+
*/
|
|
3190
|
+
"X-Request-Id"?: string;
|
|
3191
|
+
/**
|
|
3192
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
3193
|
+
*/
|
|
3194
|
+
"Idempotency-Key": string;
|
|
3195
|
+
};
|
|
3196
|
+
path: {
|
|
3197
|
+
organization_id: Ulid;
|
|
3198
|
+
grant_id: Ulid;
|
|
3199
|
+
};
|
|
3200
|
+
query?: never;
|
|
3201
|
+
url: "/v1/organizations/{organization_id}/connections/{grant_id}/credential-requests";
|
|
3202
|
+
};
|
|
3203
|
+
|
|
3204
|
+
export type CreateMakeCredentialRequestErrors = {
|
|
3205
|
+
/**
|
|
3206
|
+
* The request failed.
|
|
3207
|
+
*/
|
|
3208
|
+
400: ProblemDetails;
|
|
3209
|
+
/**
|
|
3210
|
+
* The request failed.
|
|
3211
|
+
*/
|
|
3212
|
+
401: ProblemDetails;
|
|
3213
|
+
/**
|
|
3214
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
3215
|
+
*/
|
|
3216
|
+
404: ProblemDetails;
|
|
3217
|
+
/**
|
|
3218
|
+
* The request failed.
|
|
3219
|
+
*/
|
|
3220
|
+
409: ProblemDetails;
|
|
3221
|
+
/**
|
|
3222
|
+
* The request failed.
|
|
3223
|
+
*/
|
|
3224
|
+
429: ProblemDetails;
|
|
3225
|
+
/**
|
|
3226
|
+
* The request failed.
|
|
3227
|
+
*/
|
|
3228
|
+
503: ProblemDetails;
|
|
3229
|
+
};
|
|
3230
|
+
|
|
3231
|
+
export type CreateMakeCredentialRequestError =
|
|
3232
|
+
CreateMakeCredentialRequestErrors[keyof CreateMakeCredentialRequestErrors];
|
|
3233
|
+
|
|
3234
|
+
export type CreateMakeCredentialRequestResponses = {
|
|
3235
|
+
/**
|
|
3236
|
+
* Credential Request result and its private Make link when available.
|
|
3237
|
+
*/
|
|
3238
|
+
200: MakeCredentialRequestResult;
|
|
3239
|
+
};
|
|
3240
|
+
|
|
3241
|
+
export type CreateMakeCredentialRequestResponse =
|
|
3242
|
+
CreateMakeCredentialRequestResponses[keyof CreateMakeCredentialRequestResponses];
|
|
3243
|
+
|
|
3244
|
+
export type GetMakeCredentialRequestData = {
|
|
3245
|
+
body?: never;
|
|
3246
|
+
headers?: {
|
|
3247
|
+
/**
|
|
3248
|
+
* Optional caller-provided correlation identifier.
|
|
3249
|
+
*/
|
|
3250
|
+
"X-Request-Id"?: string;
|
|
3251
|
+
};
|
|
3252
|
+
path: {
|
|
3253
|
+
organization_id: Ulid;
|
|
3254
|
+
grant_id: Ulid;
|
|
3255
|
+
request_id: string;
|
|
3256
|
+
};
|
|
3257
|
+
query?: never;
|
|
3258
|
+
url: "/v1/organizations/{organization_id}/connections/{grant_id}/credential-requests/{request_id}";
|
|
3259
|
+
};
|
|
3260
|
+
|
|
3261
|
+
export type GetMakeCredentialRequestErrors = {
|
|
3262
|
+
/**
|
|
3263
|
+
* The request failed.
|
|
3264
|
+
*/
|
|
3265
|
+
400: ProblemDetails;
|
|
3266
|
+
/**
|
|
3267
|
+
* The request failed.
|
|
3268
|
+
*/
|
|
3269
|
+
401: ProblemDetails;
|
|
3270
|
+
/**
|
|
3271
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
3272
|
+
*/
|
|
3273
|
+
404: ProblemDetails;
|
|
3274
|
+
/**
|
|
3275
|
+
* The request failed.
|
|
3276
|
+
*/
|
|
3277
|
+
429: ProblemDetails;
|
|
3278
|
+
/**
|
|
3279
|
+
* The request failed.
|
|
3280
|
+
*/
|
|
3281
|
+
503: ProblemDetails;
|
|
3282
|
+
};
|
|
3283
|
+
|
|
3284
|
+
export type GetMakeCredentialRequestError =
|
|
3285
|
+
GetMakeCredentialRequestErrors[keyof GetMakeCredentialRequestErrors];
|
|
3286
|
+
|
|
3287
|
+
export type GetMakeCredentialRequestResponses = {
|
|
3288
|
+
/**
|
|
3289
|
+
* Current Credential Request status.
|
|
3290
|
+
*/
|
|
3291
|
+
200: MakeCredentialRequestStatus;
|
|
3292
|
+
};
|
|
3293
|
+
|
|
3294
|
+
export type GetMakeCredentialRequestResponse =
|
|
3295
|
+
GetMakeCredentialRequestResponses[keyof GetMakeCredentialRequestResponses];
|
|
3296
|
+
|
|
3150
3297
|
export type CreateMakeActionBindingData = {
|
|
3151
3298
|
body: MakeActionBindingRequest;
|
|
3152
3299
|
headers: {
|