@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.10
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/LICENSE +201 -0
- package/lib/credentials.d.ts +21 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +40 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +80 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +50 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +69 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +54 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +47 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/access_groups.d.ts +459 -0
- package/lib/services/access_groups.d.ts.map +1 -0
- package/lib/services/access_groups.js +449 -0
- package/lib/services/access_groups.js.map +1 -0
- package/lib/services/ai_gateway.d.ts +122 -0
- package/lib/services/ai_gateway.d.ts.map +1 -0
- package/lib/services/ai_gateway.js +125 -0
- package/lib/services/ai_gateway.js.map +1 -0
- package/lib/services/aliases.d.ts +591 -0
- package/lib/services/aliases.d.ts.map +1 -0
- package/lib/services/aliases.js +482 -0
- package/lib/services/aliases.js.map +1 -0
- package/lib/services/api_ai_gateway.d.ts +275 -0
- package/lib/services/api_ai_gateway.d.ts.map +1 -0
- package/lib/services/api_ai_gateway.js +227 -0
- package/lib/services/api_ai_gateway.js.map +1 -0
- package/lib/services/artifacts.d.ts +228 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +214 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/authentication.d.ts +373 -0
- package/lib/services/authentication.d.ts.map +1 -0
- package/lib/services/authentication.js +304 -0
- package/lib/services/authentication.js.map +1 -0
- package/lib/services/billing.d.ts +930 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +695 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bulk_redirects.d.ts +308 -0
- package/lib/services/bulk_redirects.d.ts.map +1 -0
- package/lib/services/bulk_redirects.js +302 -0
- package/lib/services/bulk_redirects.js.map +1 -0
- package/lib/services/certs.d.ts +171 -0
- package/lib/services/certs.d.ts.map +1 -0
- package/lib/services/certs.js +163 -0
- package/lib/services/certs.js.map +1 -0
- package/lib/services/checks_v2.d.ts +1167 -0
- package/lib/services/checks_v2.d.ts.map +1 -0
- package/lib/services/checks_v2.js +1141 -0
- package/lib/services/checks_v2.js.map +1 -0
- package/lib/services/connect.d.ts +2228 -0
- package/lib/services/connect.d.ts.map +1 -0
- package/lib/services/connect.js +1575 -0
- package/lib/services/connect.js.map +1 -0
- package/lib/services/deployments.d.ts +9419 -0
- package/lib/services/deployments.d.ts.map +1 -0
- package/lib/services/deployments.js +8248 -0
- package/lib/services/deployments.js.map +1 -0
- package/lib/services/dns.d.ts +279 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +277 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/domains.d.ts +564 -0
- package/lib/services/domains.d.ts.map +1 -0
- package/lib/services/domains.js +469 -0
- package/lib/services/domains.js.map +1 -0
- package/lib/services/domains_registrar.d.ts +798 -0
- package/lib/services/domains_registrar.d.ts.map +1 -0
- package/lib/services/domains_registrar.js +916 -0
- package/lib/services/domains_registrar.js.map +1 -0
- package/lib/services/drains.d.ts +2263 -0
- package/lib/services/drains.d.ts.map +1 -0
- package/lib/services/drains.js +2121 -0
- package/lib/services/drains.js.map +1 -0
- package/lib/services/edge_cache.d.ts +125 -0
- package/lib/services/edge_cache.d.ts.map +1 -0
- package/lib/services/edge_cache.js +138 -0
- package/lib/services/edge_cache.js.map +1 -0
- package/lib/services/environment.d.ts +1020 -0
- package/lib/services/environment.d.ts.map +1 -0
- package/lib/services/environment.js +805 -0
- package/lib/services/environment.js.map +1 -0
- package/lib/services/feature_flags.d.ts +2893 -0
- package/lib/services/feature_flags.d.ts.map +1 -0
- package/lib/services/feature_flags.js +2707 -0
- package/lib/services/feature_flags.js.map +1 -0
- package/lib/services/global_config.d.ts +618 -0
- package/lib/services/global_config.d.ts.map +1 -0
- package/lib/services/global_config.js +709 -0
- package/lib/services/global_config.js.map +1 -0
- package/lib/services/index.d.ts +42 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +43 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/integrations.d.ts +3014 -0
- package/lib/services/integrations.d.ts.map +1 -0
- package/lib/services/integrations.js +2544 -0
- package/lib/services/integrations.js.map +1 -0
- package/lib/services/kms.d.ts +1095 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +956 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/log_drains.d.ts +848 -0
- package/lib/services/log_drains.d.ts.map +1 -0
- package/lib/services/log_drains.js +782 -0
- package/lib/services/log_drains.js.map +1 -0
- package/lib/services/logs.d.ts +40 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +43 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/marketplace.d.ts +1053 -0
- package/lib/services/marketplace.d.ts.map +1 -0
- package/lib/services/marketplace.js +1116 -0
- package/lib/services/marketplace.js.map +1 -0
- package/lib/services/microfrontends.d.ts +3250 -0
- package/lib/services/microfrontends.d.ts.map +1 -0
- package/lib/services/microfrontends.js +3154 -0
- package/lib/services/microfrontends.js.map +1 -0
- package/lib/services/misc.d.ts +192 -0
- package/lib/services/misc.d.ts.map +1 -0
- package/lib/services/misc.js +124 -0
- package/lib/services/misc.js.map +1 -0
- package/lib/services/networking.d.ts +360 -0
- package/lib/services/networking.d.ts.map +1 -0
- package/lib/services/networking.js +353 -0
- package/lib/services/networking.js.map +1 -0
- package/lib/services/observability.d.ts +168 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +190 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/project_members.d.ts +142 -0
- package/lib/services/project_members.d.ts.map +1 -0
- package/lib/services/project_members.js +135 -0
- package/lib/services/project_members.js.map +1 -0
- package/lib/services/project_routes.d.ts +1990 -0
- package/lib/services/project_routes.d.ts.map +1 -0
- package/lib/services/project_routes.js +1883 -0
- package/lib/services/project_routes.js.map +1 -0
- package/lib/services/projects.d.ts +23677 -0
- package/lib/services/projects.d.ts.map +1 -0
- package/lib/services/projects.js +22223 -0
- package/lib/services/projects.js.map +1 -0
- package/lib/services/rolling_release.d.ts +764 -0
- package/lib/services/rolling_release.d.ts.map +1 -0
- package/lib/services/rolling_release.js +583 -0
- package/lib/services/rolling_release.js.map +1 -0
- package/lib/services/sandboxes.d.ts +2777 -0
- package/lib/services/sandboxes.d.ts.map +1 -0
- package/lib/services/sandboxes.js +2142 -0
- package/lib/services/sandboxes.js.map +1 -0
- package/lib/services/security.d.ts +4247 -0
- package/lib/services/security.d.ts.map +1 -0
- package/lib/services/security.js +4377 -0
- package/lib/services/security.js.map +1 -0
- package/lib/services/storage.d.ts +251 -0
- package/lib/services/storage.d.ts.map +1 -0
- package/lib/services/storage.js +257 -0
- package/lib/services/storage.js.map +1 -0
- package/lib/services/teams.d.ts +1600 -0
- package/lib/services/teams.d.ts.map +1 -0
- package/lib/services/teams.js +1314 -0
- package/lib/services/teams.js.map +1 -0
- package/lib/services/user.d.ts +8559 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +7407 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vcr.d.ts +751 -0
- package/lib/services/vcr.d.ts.map +1 -0
- package/lib/services/vcr.js +826 -0
- package/lib/services/vcr.js.map +1 -0
- package/lib/services/web_analytics.d.ts +726 -0
- package/lib/services/web_analytics.d.ts.map +1 -0
- package/lib/services/web_analytics.js +707 -0
- package/lib/services/web_analytics.js.map +1 -0
- package/lib/services/webhooks.d.ts +219 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +177 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +70 -0
- package/src/errors.ts +93 -0
- package/src/index.ts +18 -0
- package/src/protocol.ts +98 -0
- package/src/retry.ts +78 -0
- package/src/services/access_groups.ts +1165 -0
- package/src/services/ai_gateway.ts +267 -0
- package/src/services/aliases.ts +1315 -0
- package/src/services/api_ai_gateway.ts +607 -0
- package/src/services/artifacts.ts +542 -0
- package/src/services/authentication.ts +827 -0
- package/src/services/billing.ts +2104 -0
- package/src/services/bulk_redirects.ts +748 -0
- package/src/services/certs.ts +371 -0
- package/src/services/checks_v2.ts +3084 -0
- package/src/services/connect.ts +4805 -0
- package/src/services/deployments.ts +24576 -0
- package/src/services/dns.ts +715 -0
- package/src/services/domains.ts +1257 -0
- package/src/services/domains_registrar.ts +2257 -0
- package/src/services/drains.ts +5828 -0
- package/src/services/edge_cache.ts +303 -0
- package/src/services/environment.ts +2379 -0
- package/src/services/feature_flags.ts +7722 -0
- package/src/services/global_config.ts +1668 -0
- package/src/services/index.ts +42 -0
- package/src/services/integrations.ts +9022 -0
- package/src/services/kms.ts +2614 -0
- package/src/services/log_drains.ts +2434 -0
- package/src/services/logs.ts +78 -0
- package/src/services/marketplace.ts +2849 -0
- package/src/services/microfrontends.ts +9921 -0
- package/src/services/misc.ts +364 -0
- package/src/services/networking.ts +865 -0
- package/src/services/observability.ts +435 -0
- package/src/services/project_members.ts +326 -0
- package/src/services/project_routes.ts +5229 -0
- package/src/services/projects.ts +68139 -0
- package/src/services/rolling_release.ts +1860 -0
- package/src/services/sandboxes.ts +6988 -0
- package/src/services/security.ts +13931 -0
- package/src/services/storage.ts +850 -0
- package/src/services/teams.ts +4055 -0
- package/src/services/user.ts +23195 -0
- package/src/services/vcr.ts +2070 -0
- package/src/services/web_analytics.ts +1638 -0
- package/src/services/webhooks.ts +1102 -0
- package/src/traits.ts +46 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,4805 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.ts";
|
|
7
|
+
import {
|
|
8
|
+
VercelProtocol,
|
|
9
|
+
type VercelOpError,
|
|
10
|
+
type VercelOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { VercelOpError, VercelOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class Conflict
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withConflictError),
|
|
31
|
+
[{ status: 409 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export class Forbidden
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
37
|
+
code: S.Number,
|
|
38
|
+
message: S.String,
|
|
39
|
+
}).pipe(C.withAuthError),
|
|
40
|
+
[{ status: 403 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export class NotFound
|
|
44
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
45
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
46
|
+
code: S.Number,
|
|
47
|
+
message: S.String,
|
|
48
|
+
}).pipe(C.withBadRequestError),
|
|
49
|
+
[{ status: 404 }],
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
export class UnprocessableEntity
|
|
53
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
54
|
+
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
55
|
+
code: S.Number,
|
|
56
|
+
message: S.String,
|
|
57
|
+
}).pipe(C.withBadRequestError),
|
|
58
|
+
[{ status: 422 }],
|
|
59
|
+
) {}
|
|
60
|
+
|
|
61
|
+
/** Intended key use: signing or encryption. */
|
|
62
|
+
export type ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemUse =
|
|
63
|
+
| "sig"
|
|
64
|
+
| "enc";
|
|
65
|
+
export const ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemUse =
|
|
66
|
+
S.String;
|
|
67
|
+
|
|
68
|
+
/** Operations permitted for this key. */
|
|
69
|
+
export type ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemKeyOpsList =
|
|
70
|
+
Array<string>;
|
|
71
|
+
export const ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemKeyOpsList =
|
|
72
|
+
/*@__PURE__*/ S.Array(
|
|
73
|
+
S.String,
|
|
74
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemKeyOpsList>;
|
|
75
|
+
|
|
76
|
+
export interface ConnectConnectorCreateDataCase0ServerConfigJwksKeysItem {
|
|
77
|
+
/** JSON Web Key type. */
|
|
78
|
+
kty: string;
|
|
79
|
+
/** JSON Web Key identifier. */
|
|
80
|
+
kid?: string;
|
|
81
|
+
/** Intended key use: signing or encryption. */
|
|
82
|
+
use?:
|
|
83
|
+
| ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemUse
|
|
84
|
+
| (string & {});
|
|
85
|
+
/** Operations permitted for this key. */
|
|
86
|
+
key_ops?: ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemKeyOpsList;
|
|
87
|
+
/** Algorithm intended for this key. */
|
|
88
|
+
alg?: string;
|
|
89
|
+
}
|
|
90
|
+
export const ConnectConnectorCreateDataCase0ServerConfigJwksKeysItem =
|
|
91
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
92
|
+
S.Struct({
|
|
93
|
+
kty: S.String,
|
|
94
|
+
kid: S.optional(S.String),
|
|
95
|
+
use: S.optional(
|
|
96
|
+
ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemUse,
|
|
97
|
+
),
|
|
98
|
+
key_ops: S.optional(
|
|
99
|
+
ConnectConnectorCreateDataCase0ServerConfigJwksKeysItemKeyOpsList,
|
|
100
|
+
),
|
|
101
|
+
alg: S.optional(S.String),
|
|
102
|
+
}),
|
|
103
|
+
).annotate({
|
|
104
|
+
identifier: "ConnectConnectorCreateDataCase0ServerConfigJwksKeysItem",
|
|
105
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigJwksKeysItem>;
|
|
106
|
+
|
|
107
|
+
/** JSON Web Keys published by the authorization server. */
|
|
108
|
+
export type ConnectConnectorCreateDataCase0ServerConfigJwksKeysList =
|
|
109
|
+
Array<ConnectConnectorCreateDataCase0ServerConfigJwksKeysItem>;
|
|
110
|
+
export const ConnectConnectorCreateDataCase0ServerConfigJwksKeysList =
|
|
111
|
+
/*@__PURE__*/ S.Array(
|
|
112
|
+
ConnectConnectorCreateDataCase0ServerConfigJwksKeysItem,
|
|
113
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigJwksKeysList>;
|
|
114
|
+
|
|
115
|
+
/** Inline authorization server JSON Web Key Set. */
|
|
116
|
+
export interface ConnectConnectorCreateDataCase0ServerConfigJwks {
|
|
117
|
+
/** JSON Web Keys published by the authorization server. */
|
|
118
|
+
keys: ConnectConnectorCreateDataCase0ServerConfigJwksKeysList;
|
|
119
|
+
}
|
|
120
|
+
export const ConnectConnectorCreateDataCase0ServerConfigJwks =
|
|
121
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
122
|
+
S.Struct({
|
|
123
|
+
keys: ConnectConnectorCreateDataCase0ServerConfigJwksKeysList,
|
|
124
|
+
}),
|
|
125
|
+
).annotate({
|
|
126
|
+
identifier: "ConnectConnectorCreateDataCase0ServerConfigJwks",
|
|
127
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigJwks>;
|
|
128
|
+
|
|
129
|
+
/** OAuth response types supported by the server. */
|
|
130
|
+
export type ConnectConnectorCreateDataCase0ServerConfigResponseTypesSupportedList =
|
|
131
|
+
Array<string>;
|
|
132
|
+
export const ConnectConnectorCreateDataCase0ServerConfigResponseTypesSupportedList =
|
|
133
|
+
/*@__PURE__*/ S.Array(
|
|
134
|
+
S.String,
|
|
135
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigResponseTypesSupportedList>;
|
|
136
|
+
|
|
137
|
+
/** Token endpoint client authentication methods supported by the server. */
|
|
138
|
+
export type ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList =
|
|
139
|
+
Array<string>;
|
|
140
|
+
export const ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList =
|
|
141
|
+
/*@__PURE__*/ S.Array(
|
|
142
|
+
S.String,
|
|
143
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList>;
|
|
144
|
+
|
|
145
|
+
/** Signing algorithms supported for token endpoint authentication. */
|
|
146
|
+
export type ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList =
|
|
147
|
+
Array<string>;
|
|
148
|
+
export const ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList =
|
|
149
|
+
/*@__PURE__*/ S.Array(
|
|
150
|
+
S.String,
|
|
151
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList>;
|
|
152
|
+
|
|
153
|
+
/** OAuth scopes supported by the server. */
|
|
154
|
+
export type ConnectConnectorCreateDataCase0ServerConfigScopesSupportedList =
|
|
155
|
+
Array<string>;
|
|
156
|
+
export const ConnectConnectorCreateDataCase0ServerConfigScopesSupportedList =
|
|
157
|
+
/*@__PURE__*/ S.Array(
|
|
158
|
+
S.String,
|
|
159
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigScopesSupportedList>;
|
|
160
|
+
|
|
161
|
+
/** OAuth grant types supported by the server. */
|
|
162
|
+
export type ConnectConnectorCreateDataCase0ServerConfigGrantTypesSupportedList =
|
|
163
|
+
Array<string>;
|
|
164
|
+
export const ConnectConnectorCreateDataCase0ServerConfigGrantTypesSupportedList =
|
|
165
|
+
/*@__PURE__*/ S.Array(
|
|
166
|
+
S.String,
|
|
167
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigGrantTypesSupportedList>;
|
|
168
|
+
|
|
169
|
+
/** OAuth response modes supported by the server. */
|
|
170
|
+
export type ConnectConnectorCreateDataCase0ServerConfigResponseModesSupportedList =
|
|
171
|
+
Array<string>;
|
|
172
|
+
export const ConnectConnectorCreateDataCase0ServerConfigResponseModesSupportedList =
|
|
173
|
+
/*@__PURE__*/ S.Array(
|
|
174
|
+
S.String,
|
|
175
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigResponseModesSupportedList>;
|
|
176
|
+
|
|
177
|
+
/** OpenID Connect subject identifier types supported by the server. */
|
|
178
|
+
export type ConnectConnectorCreateDataCase0ServerConfigSubjectTypesSupportedList =
|
|
179
|
+
Array<string>;
|
|
180
|
+
export const ConnectConnectorCreateDataCase0ServerConfigSubjectTypesSupportedList =
|
|
181
|
+
/*@__PURE__*/ S.Array(
|
|
182
|
+
S.String,
|
|
183
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigSubjectTypesSupportedList>;
|
|
184
|
+
|
|
185
|
+
/** Signing algorithms supported for ID tokens. */
|
|
186
|
+
export type ConnectConnectorCreateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList =
|
|
187
|
+
Array<string>;
|
|
188
|
+
export const ConnectConnectorCreateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList =
|
|
189
|
+
/*@__PURE__*/ S.Array(
|
|
190
|
+
S.String,
|
|
191
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList>;
|
|
192
|
+
|
|
193
|
+
/** Key management algorithms supported for encrypted ID tokens. */
|
|
194
|
+
export type ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList =
|
|
195
|
+
Array<string>;
|
|
196
|
+
export const ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList =
|
|
197
|
+
/*@__PURE__*/ S.Array(
|
|
198
|
+
S.String,
|
|
199
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList>;
|
|
200
|
+
|
|
201
|
+
/** Content encryption algorithms supported for encrypted ID tokens. */
|
|
202
|
+
export type ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList =
|
|
203
|
+
Array<string>;
|
|
204
|
+
export const ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList =
|
|
205
|
+
/*@__PURE__*/ S.Array(
|
|
206
|
+
S.String,
|
|
207
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList>;
|
|
208
|
+
|
|
209
|
+
/** OpenID Connect claim value types supported by the server. */
|
|
210
|
+
export type ConnectConnectorCreateDataCase0ServerConfigClaimTypesSupportedList =
|
|
211
|
+
Array<string>;
|
|
212
|
+
export const ConnectConnectorCreateDataCase0ServerConfigClaimTypesSupportedList =
|
|
213
|
+
/*@__PURE__*/ S.Array(
|
|
214
|
+
S.String,
|
|
215
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigClaimTypesSupportedList>;
|
|
216
|
+
|
|
217
|
+
/** Claims that the authorization server can return. */
|
|
218
|
+
export type ConnectConnectorCreateDataCase0ServerConfigClaimsSupportedList =
|
|
219
|
+
Array<string>;
|
|
220
|
+
export const ConnectConnectorCreateDataCase0ServerConfigClaimsSupportedList =
|
|
221
|
+
/*@__PURE__*/ S.Array(
|
|
222
|
+
S.String,
|
|
223
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigClaimsSupportedList>;
|
|
224
|
+
|
|
225
|
+
/** PKCE code challenge methods supported by the server. */
|
|
226
|
+
export type ConnectConnectorCreateDataCase0ServerConfigCodeChallengeMethodsSupportedList =
|
|
227
|
+
Array<string>;
|
|
228
|
+
export const ConnectConnectorCreateDataCase0ServerConfigCodeChallengeMethodsSupportedList =
|
|
229
|
+
/*@__PURE__*/ S.Array(
|
|
230
|
+
S.String,
|
|
231
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigCodeChallengeMethodsSupportedList>;
|
|
232
|
+
|
|
233
|
+
/** Authorization prompt values supported by the server. */
|
|
234
|
+
export type ConnectConnectorCreateDataCase0ServerConfigPromptValuesSupportedList =
|
|
235
|
+
Array<string>;
|
|
236
|
+
export const ConnectConnectorCreateDataCase0ServerConfigPromptValuesSupportedList =
|
|
237
|
+
/*@__PURE__*/ S.Array(
|
|
238
|
+
S.String,
|
|
239
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigPromptValuesSupportedList>;
|
|
240
|
+
|
|
241
|
+
/** OAuth authorization-detail types supported by the server. */
|
|
242
|
+
export type ConnectConnectorCreateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList =
|
|
243
|
+
Array<string>;
|
|
244
|
+
export const ConnectConnectorCreateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList =
|
|
245
|
+
/*@__PURE__*/ S.Array(
|
|
246
|
+
S.String,
|
|
247
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList>;
|
|
248
|
+
|
|
249
|
+
/** Authorization server metadata. Values override discovered metadata. Empty known string fields remove their stored overrides. */
|
|
250
|
+
export interface ConnectConnectorCreateDataCase0ServerConfig {
|
|
251
|
+
/** Authorization server issuer URL. */
|
|
252
|
+
issuer?: string;
|
|
253
|
+
/** OAuth authorization endpoint URL. */
|
|
254
|
+
authorization_endpoint?: string;
|
|
255
|
+
/** OAuth token endpoint URL. */
|
|
256
|
+
token_endpoint?: string;
|
|
257
|
+
/** OpenID Connect UserInfo endpoint URL. */
|
|
258
|
+
userinfo_endpoint?: string;
|
|
259
|
+
/** URL of the authorization server JSON Web Key Set. */
|
|
260
|
+
jwks_uri?: string;
|
|
261
|
+
/** Inline authorization server JSON Web Key Set. */
|
|
262
|
+
jwks?: ConnectConnectorCreateDataCase0ServerConfigJwks;
|
|
263
|
+
/** OAuth token revocation endpoint URL. */
|
|
264
|
+
revocation_endpoint?: string;
|
|
265
|
+
/** OAuth token introspection endpoint URL. */
|
|
266
|
+
introspection_endpoint?: string;
|
|
267
|
+
/** OpenID Connect session termination endpoint URL. */
|
|
268
|
+
end_session_endpoint?: string;
|
|
269
|
+
/** OAuth device authorization endpoint URL. */
|
|
270
|
+
device_authorization_endpoint?: string;
|
|
271
|
+
/** OAuth dynamic client registration endpoint URL. */
|
|
272
|
+
registration_endpoint?: string;
|
|
273
|
+
/** OAuth response types supported by the server. */
|
|
274
|
+
response_types_supported?: ConnectConnectorCreateDataCase0ServerConfigResponseTypesSupportedList;
|
|
275
|
+
/** Token endpoint client authentication methods supported by the server. */
|
|
276
|
+
token_endpoint_auth_methods_supported?: ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList;
|
|
277
|
+
/** Signing algorithms supported for token endpoint authentication. */
|
|
278
|
+
token_endpoint_auth_signing_alg_values_supported?: ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList;
|
|
279
|
+
/** OAuth scopes supported by the server. */
|
|
280
|
+
scopes_supported?: ConnectConnectorCreateDataCase0ServerConfigScopesSupportedList;
|
|
281
|
+
/** OAuth grant types supported by the server. */
|
|
282
|
+
grant_types_supported?: ConnectConnectorCreateDataCase0ServerConfigGrantTypesSupportedList;
|
|
283
|
+
/** OAuth response modes supported by the server. */
|
|
284
|
+
response_modes_supported?: ConnectConnectorCreateDataCase0ServerConfigResponseModesSupportedList;
|
|
285
|
+
/** OpenID Connect subject identifier types supported by the server. */
|
|
286
|
+
subject_types_supported?: ConnectConnectorCreateDataCase0ServerConfigSubjectTypesSupportedList;
|
|
287
|
+
/** Signing algorithms supported for ID tokens. */
|
|
288
|
+
id_token_signing_alg_values_supported?: ConnectConnectorCreateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList;
|
|
289
|
+
/** Key management algorithms supported for encrypted ID tokens. */
|
|
290
|
+
id_token_encryption_alg_values_supported?: ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList;
|
|
291
|
+
/** Content encryption algorithms supported for encrypted ID tokens. */
|
|
292
|
+
id_token_encryption_enc_values_supported?: ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList;
|
|
293
|
+
/** OpenID Connect claim value types supported by the server. */
|
|
294
|
+
claim_types_supported?: ConnectConnectorCreateDataCase0ServerConfigClaimTypesSupportedList;
|
|
295
|
+
/** Claims that the authorization server can return. */
|
|
296
|
+
claims_supported?: ConnectConnectorCreateDataCase0ServerConfigClaimsSupportedList;
|
|
297
|
+
/** PKCE code challenge methods supported by the server. */
|
|
298
|
+
code_challenge_methods_supported?: ConnectConnectorCreateDataCase0ServerConfigCodeChallengeMethodsSupportedList;
|
|
299
|
+
/** Authorization prompt values supported by the server. */
|
|
300
|
+
prompt_values_supported?: ConnectConnectorCreateDataCase0ServerConfigPromptValuesSupportedList;
|
|
301
|
+
/** Whether authorization requests can use the claims parameter. */
|
|
302
|
+
claims_parameter_supported?: boolean;
|
|
303
|
+
/** Whether authorization requests can use signed request objects. */
|
|
304
|
+
request_parameter_supported?: boolean;
|
|
305
|
+
/** Whether authorization requests can use request_uri. */
|
|
306
|
+
request_uri_parameter_supported?: boolean;
|
|
307
|
+
/** Whether request_uri values must be registered in advance. */
|
|
308
|
+
require_request_uri_registration?: boolean;
|
|
309
|
+
/** Authorization server documentation URL. */
|
|
310
|
+
service_documentation?: string;
|
|
311
|
+
/** Authorization server privacy policy URL. */
|
|
312
|
+
op_policy_uri?: string;
|
|
313
|
+
/** Authorization server terms of service URL. */
|
|
314
|
+
op_tos_uri?: string;
|
|
315
|
+
/** Authorization server logo URL. */
|
|
316
|
+
logo_uri?: string;
|
|
317
|
+
/** Whether the server supports OAuth client ID metadata documents. */
|
|
318
|
+
client_id_metadata_document_supported?: boolean;
|
|
319
|
+
/** OAuth authorization-detail types supported by the server. */
|
|
320
|
+
authorization_details_types_supported?: ConnectConnectorCreateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList;
|
|
321
|
+
}
|
|
322
|
+
export const ConnectConnectorCreateDataCase0ServerConfig =
|
|
323
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
324
|
+
S.Struct({
|
|
325
|
+
issuer: S.optional(S.String),
|
|
326
|
+
authorization_endpoint: S.optional(S.String),
|
|
327
|
+
token_endpoint: S.optional(S.String),
|
|
328
|
+
userinfo_endpoint: S.optional(S.String),
|
|
329
|
+
jwks_uri: S.optional(S.String),
|
|
330
|
+
jwks: S.optional(ConnectConnectorCreateDataCase0ServerConfigJwks),
|
|
331
|
+
revocation_endpoint: S.optional(S.String),
|
|
332
|
+
introspection_endpoint: S.optional(S.String),
|
|
333
|
+
end_session_endpoint: S.optional(S.String),
|
|
334
|
+
device_authorization_endpoint: S.optional(S.String),
|
|
335
|
+
registration_endpoint: S.optional(S.String),
|
|
336
|
+
response_types_supported: S.optional(
|
|
337
|
+
ConnectConnectorCreateDataCase0ServerConfigResponseTypesSupportedList,
|
|
338
|
+
),
|
|
339
|
+
token_endpoint_auth_methods_supported: S.optional(
|
|
340
|
+
ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList,
|
|
341
|
+
),
|
|
342
|
+
token_endpoint_auth_signing_alg_values_supported: S.optional(
|
|
343
|
+
ConnectConnectorCreateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList,
|
|
344
|
+
),
|
|
345
|
+
scopes_supported: S.optional(
|
|
346
|
+
ConnectConnectorCreateDataCase0ServerConfigScopesSupportedList,
|
|
347
|
+
),
|
|
348
|
+
grant_types_supported: S.optional(
|
|
349
|
+
ConnectConnectorCreateDataCase0ServerConfigGrantTypesSupportedList,
|
|
350
|
+
),
|
|
351
|
+
response_modes_supported: S.optional(
|
|
352
|
+
ConnectConnectorCreateDataCase0ServerConfigResponseModesSupportedList,
|
|
353
|
+
),
|
|
354
|
+
subject_types_supported: S.optional(
|
|
355
|
+
ConnectConnectorCreateDataCase0ServerConfigSubjectTypesSupportedList,
|
|
356
|
+
),
|
|
357
|
+
id_token_signing_alg_values_supported: S.optional(
|
|
358
|
+
ConnectConnectorCreateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList,
|
|
359
|
+
),
|
|
360
|
+
id_token_encryption_alg_values_supported: S.optional(
|
|
361
|
+
ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList,
|
|
362
|
+
),
|
|
363
|
+
id_token_encryption_enc_values_supported: S.optional(
|
|
364
|
+
ConnectConnectorCreateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList,
|
|
365
|
+
),
|
|
366
|
+
claim_types_supported: S.optional(
|
|
367
|
+
ConnectConnectorCreateDataCase0ServerConfigClaimTypesSupportedList,
|
|
368
|
+
),
|
|
369
|
+
claims_supported: S.optional(
|
|
370
|
+
ConnectConnectorCreateDataCase0ServerConfigClaimsSupportedList,
|
|
371
|
+
),
|
|
372
|
+
code_challenge_methods_supported: S.optional(
|
|
373
|
+
ConnectConnectorCreateDataCase0ServerConfigCodeChallengeMethodsSupportedList,
|
|
374
|
+
),
|
|
375
|
+
prompt_values_supported: S.optional(
|
|
376
|
+
ConnectConnectorCreateDataCase0ServerConfigPromptValuesSupportedList,
|
|
377
|
+
),
|
|
378
|
+
claims_parameter_supported: S.optional(S.Boolean),
|
|
379
|
+
request_parameter_supported: S.optional(S.Boolean),
|
|
380
|
+
request_uri_parameter_supported: S.optional(S.Boolean),
|
|
381
|
+
require_request_uri_registration: S.optional(S.Boolean),
|
|
382
|
+
service_documentation: S.optional(S.String),
|
|
383
|
+
op_policy_uri: S.optional(S.String),
|
|
384
|
+
op_tos_uri: S.optional(S.String),
|
|
385
|
+
logo_uri: S.optional(S.String),
|
|
386
|
+
client_id_metadata_document_supported: S.optional(S.Boolean),
|
|
387
|
+
authorization_details_types_supported: S.optional(
|
|
388
|
+
ConnectConnectorCreateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList,
|
|
389
|
+
),
|
|
390
|
+
}),
|
|
391
|
+
).annotate({
|
|
392
|
+
identifier: "ConnectConnectorCreateDataCase0ServerConfig",
|
|
393
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0ServerConfig>;
|
|
394
|
+
|
|
395
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
396
|
+
export type ConnectConnectorCreateDataCase0UserAuthorizationScopesList =
|
|
397
|
+
Array<string>;
|
|
398
|
+
export const ConnectConnectorCreateDataCase0UserAuthorizationScopesList =
|
|
399
|
+
/*@__PURE__*/ S.Array(
|
|
400
|
+
S.String,
|
|
401
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0UserAuthorizationScopesList>;
|
|
402
|
+
|
|
403
|
+
/** User authorization grant settings. */
|
|
404
|
+
export interface ConnectConnectorCreateDataCase0UserAuthorization {
|
|
405
|
+
/** Whether this OAuth grant is enabled. */
|
|
406
|
+
enabled: boolean;
|
|
407
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
408
|
+
scopes?: ConnectConnectorCreateDataCase0UserAuthorizationScopesList;
|
|
409
|
+
}
|
|
410
|
+
export const ConnectConnectorCreateDataCase0UserAuthorization =
|
|
411
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
412
|
+
S.Struct({
|
|
413
|
+
enabled: S.Boolean,
|
|
414
|
+
scopes: S.optional(
|
|
415
|
+
ConnectConnectorCreateDataCase0UserAuthorizationScopesList,
|
|
416
|
+
),
|
|
417
|
+
}),
|
|
418
|
+
).annotate({
|
|
419
|
+
identifier: "ConnectConnectorCreateDataCase0UserAuthorization",
|
|
420
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0UserAuthorization>;
|
|
421
|
+
|
|
422
|
+
/** Refresh token settings. */
|
|
423
|
+
export interface ConnectConnectorCreateDataCase0RefreshTokens {
|
|
424
|
+
/** Whether this OAuth grant is enabled. */
|
|
425
|
+
enabled: boolean;
|
|
426
|
+
}
|
|
427
|
+
export const ConnectConnectorCreateDataCase0RefreshTokens =
|
|
428
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
429
|
+
S.Struct({
|
|
430
|
+
enabled: S.Boolean,
|
|
431
|
+
}),
|
|
432
|
+
).annotate({
|
|
433
|
+
identifier: "ConnectConnectorCreateDataCase0RefreshTokens",
|
|
434
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0RefreshTokens>;
|
|
435
|
+
|
|
436
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
437
|
+
export type ConnectConnectorCreateDataCase0ClientCredentialsScopesList =
|
|
438
|
+
Array<string>;
|
|
439
|
+
export const ConnectConnectorCreateDataCase0ClientCredentialsScopesList =
|
|
440
|
+
/*@__PURE__*/ S.Array(
|
|
441
|
+
S.String,
|
|
442
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ClientCredentialsScopesList>;
|
|
443
|
+
|
|
444
|
+
/** Client credentials grant settings. */
|
|
445
|
+
export interface ConnectConnectorCreateDataCase0ClientCredentials {
|
|
446
|
+
/** Whether this OAuth grant is enabled. */
|
|
447
|
+
enabled: boolean;
|
|
448
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
449
|
+
scopes?: ConnectConnectorCreateDataCase0ClientCredentialsScopesList;
|
|
450
|
+
}
|
|
451
|
+
export const ConnectConnectorCreateDataCase0ClientCredentials =
|
|
452
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
453
|
+
S.Struct({
|
|
454
|
+
enabled: S.Boolean,
|
|
455
|
+
scopes: S.optional(
|
|
456
|
+
ConnectConnectorCreateDataCase0ClientCredentialsScopesList,
|
|
457
|
+
),
|
|
458
|
+
}),
|
|
459
|
+
).annotate({
|
|
460
|
+
identifier: "ConnectConnectorCreateDataCase0ClientCredentials",
|
|
461
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0ClientCredentials>;
|
|
462
|
+
|
|
463
|
+
/** ID token claim names that Connect can expose. */
|
|
464
|
+
export type ConnectConnectorCreateDataCase0ForwardedClaimsIdTokenList =
|
|
465
|
+
Array<string>;
|
|
466
|
+
export const ConnectConnectorCreateDataCase0ForwardedClaimsIdTokenList =
|
|
467
|
+
/*@__PURE__*/ S.Array(
|
|
468
|
+
S.String,
|
|
469
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ForwardedClaimsIdTokenList>;
|
|
470
|
+
|
|
471
|
+
/** Allow-list of extra claims to propagate, keyed by source (idToken). Only claims named here and present in that source are exposed. */
|
|
472
|
+
export interface ConnectConnectorCreateDataCase0ForwardedClaims {
|
|
473
|
+
/** ID token claim names that Connect can expose. */
|
|
474
|
+
idToken?: ConnectConnectorCreateDataCase0ForwardedClaimsIdTokenList;
|
|
475
|
+
}
|
|
476
|
+
export const ConnectConnectorCreateDataCase0ForwardedClaims =
|
|
477
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
478
|
+
S.Struct({
|
|
479
|
+
idToken: S.optional(
|
|
480
|
+
ConnectConnectorCreateDataCase0ForwardedClaimsIdTokenList,
|
|
481
|
+
),
|
|
482
|
+
}),
|
|
483
|
+
).annotate({
|
|
484
|
+
identifier: "ConnectConnectorCreateDataCase0ForwardedClaims",
|
|
485
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0ForwardedClaims>;
|
|
486
|
+
|
|
487
|
+
/** Extra query parameters added to authorization URLs. */
|
|
488
|
+
export type ConnectConnectorCreateDataCase0AuthorizationUrlParamsMap = {
|
|
489
|
+
[key: string]: string | undefined;
|
|
490
|
+
};
|
|
491
|
+
export const ConnectConnectorCreateDataCase0AuthorizationUrlParamsMap =
|
|
492
|
+
/*@__PURE__*/ S.Record(
|
|
493
|
+
S.String,
|
|
494
|
+
S.String,
|
|
495
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0AuthorizationUrlParamsMap>;
|
|
496
|
+
|
|
497
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
498
|
+
export type ConnectConnectorCreateDataCase0JwtBearerScopesList = Array<string>;
|
|
499
|
+
export const ConnectConnectorCreateDataCase0JwtBearerScopesList =
|
|
500
|
+
/*@__PURE__*/ S.Array(
|
|
501
|
+
S.String,
|
|
502
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0JwtBearerScopesList>;
|
|
503
|
+
|
|
504
|
+
/** Additional claims included in generated JWT assertions. */
|
|
505
|
+
export type ConnectConnectorCreateDataCase0JwtBearerAdditionalClaimsMap = {
|
|
506
|
+
[key: string]: unknown | undefined;
|
|
507
|
+
};
|
|
508
|
+
export const ConnectConnectorCreateDataCase0JwtBearerAdditionalClaimsMap =
|
|
509
|
+
/*@__PURE__*/ S.Record(
|
|
510
|
+
S.String,
|
|
511
|
+
S.Unknown,
|
|
512
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0JwtBearerAdditionalClaimsMap>;
|
|
513
|
+
|
|
514
|
+
/** JWT bearer grant settings. */
|
|
515
|
+
export interface ConnectConnectorCreateDataCase0JwtBearer {
|
|
516
|
+
/** Whether JWT bearer grants are enabled. */
|
|
517
|
+
enabled?: boolean;
|
|
518
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
519
|
+
scopes?: ConnectConnectorCreateDataCase0JwtBearerScopesList;
|
|
520
|
+
/** Default JWT subject claim. */
|
|
521
|
+
sub?: string;
|
|
522
|
+
/** Default JWT issuer claim. */
|
|
523
|
+
iss?: string;
|
|
524
|
+
/** Default JWT audience claim. */
|
|
525
|
+
aud?: string;
|
|
526
|
+
/** Additional claims included in generated JWT assertions. */
|
|
527
|
+
additionalClaims?: ConnectConnectorCreateDataCase0JwtBearerAdditionalClaimsMap;
|
|
528
|
+
/** JWT lifetime in seconds. */
|
|
529
|
+
ttl?: number;
|
|
530
|
+
/** Whether JWT bearer requests also use client credentials. */
|
|
531
|
+
useClientCredentials?: boolean;
|
|
532
|
+
}
|
|
533
|
+
export const ConnectConnectorCreateDataCase0JwtBearer = /*@__PURE__*/ S.suspend(
|
|
534
|
+
() =>
|
|
535
|
+
S.Struct({
|
|
536
|
+
enabled: S.optional(S.Boolean),
|
|
537
|
+
scopes: S.optional(ConnectConnectorCreateDataCase0JwtBearerScopesList),
|
|
538
|
+
sub: S.optional(S.String),
|
|
539
|
+
iss: S.optional(S.String),
|
|
540
|
+
aud: S.optional(S.String),
|
|
541
|
+
additionalClaims: S.optional(
|
|
542
|
+
ConnectConnectorCreateDataCase0JwtBearerAdditionalClaimsMap,
|
|
543
|
+
),
|
|
544
|
+
ttl: S.optional(S.Number),
|
|
545
|
+
useClientCredentials: S.optional(S.Boolean),
|
|
546
|
+
}),
|
|
547
|
+
).annotate({
|
|
548
|
+
identifier: "ConnectConnectorCreateDataCase0JwtBearer",
|
|
549
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0JwtBearer>;
|
|
550
|
+
|
|
551
|
+
/** Additional claims included in the client assertion. */
|
|
552
|
+
export type ConnectConnectorCreateDataCase0ClientAssertionClaimsMap = {
|
|
553
|
+
[key: string]: unknown | undefined;
|
|
554
|
+
};
|
|
555
|
+
export const ConnectConnectorCreateDataCase0ClientAssertionClaimsMap =
|
|
556
|
+
/*@__PURE__*/ S.Record(
|
|
557
|
+
S.String,
|
|
558
|
+
S.Unknown,
|
|
559
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase0ClientAssertionClaimsMap>;
|
|
560
|
+
|
|
561
|
+
/** `private_key_jwt` client assertion settings. */
|
|
562
|
+
export interface ConnectConnectorCreateDataCase0ClientAssertion {
|
|
563
|
+
/** OAuth client assertion type. Defaults to urn:ietf:params:oauth:client-assertion-type:jwt-bearer. An empty string clears the configured type. */
|
|
564
|
+
type?: string;
|
|
565
|
+
/** Client assertion lifetime in seconds. */
|
|
566
|
+
ttl?: number;
|
|
567
|
+
/** Additional claims included in the client assertion. */
|
|
568
|
+
claims?: ConnectConnectorCreateDataCase0ClientAssertionClaimsMap;
|
|
569
|
+
}
|
|
570
|
+
export const ConnectConnectorCreateDataCase0ClientAssertion =
|
|
571
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
572
|
+
S.Struct({
|
|
573
|
+
type: S.optional(S.String),
|
|
574
|
+
ttl: S.optional(S.Number),
|
|
575
|
+
claims: S.optional(
|
|
576
|
+
ConnectConnectorCreateDataCase0ClientAssertionClaimsMap,
|
|
577
|
+
),
|
|
578
|
+
}),
|
|
579
|
+
).annotate({
|
|
580
|
+
identifier: "ConnectConnectorCreateDataCase0ClientAssertion",
|
|
581
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0ClientAssertion>;
|
|
582
|
+
|
|
583
|
+
export interface ConnectConnectorCreateDataCase0 {
|
|
584
|
+
/** Authorization server base URL used for discovery. */
|
|
585
|
+
serverUrl?: string;
|
|
586
|
+
/** Authorization server metadata. Values override discovered metadata. Empty known string fields remove their stored overrides. */
|
|
587
|
+
serverConfig?: ConnectConnectorCreateDataCase0ServerConfig;
|
|
588
|
+
/** OAuth client ID assigned by the provider. */
|
|
589
|
+
clientId: string;
|
|
590
|
+
/** OAuth client name. */
|
|
591
|
+
clientName?: string;
|
|
592
|
+
/** OAuth client secret. */
|
|
593
|
+
clientSecret?: string | Redacted.Redacted<string>;
|
|
594
|
+
/** OAuth token endpoint authentication method. Common values are client_secret_post, client_secret_basic, none, and private_key_jwt. If omitted, Vercel selects a supported method from serverConfig and otherwise uses client_secret_post. */
|
|
595
|
+
tokenEndpointAuthMethod?: string;
|
|
596
|
+
/** OAuth authorization response type. Defaults to code. Other provider-supported values are accepted. An empty string clears the configured type. */
|
|
597
|
+
responseType?: string;
|
|
598
|
+
/** Whether user authorization must use PKCE. */
|
|
599
|
+
pkceRequired?: boolean;
|
|
600
|
+
/** PKCE code challenge method. Supported values are S256 and plain. Vercel prefers S256 when the provider supports it. An empty string clears the configured method. */
|
|
601
|
+
codeChallengeMethod?: string;
|
|
602
|
+
/** User authorization grant settings. */
|
|
603
|
+
userAuthorization?: ConnectConnectorCreateDataCase0UserAuthorization;
|
|
604
|
+
/** Refresh token settings. */
|
|
605
|
+
refreshTokens?: ConnectConnectorCreateDataCase0RefreshTokens;
|
|
606
|
+
/** Client credentials grant settings. */
|
|
607
|
+
clientCredentials?: ConnectConnectorCreateDataCase0ClientCredentials;
|
|
608
|
+
/** Allow-list of extra claims to propagate, keyed by source (idToken). Only claims named here and present in that source are exposed. */
|
|
609
|
+
forwardedClaims?: ConnectConnectorCreateDataCase0ForwardedClaims;
|
|
610
|
+
/** Default audience used when a token request omits one. An empty string clears the default. */
|
|
611
|
+
defaultAudience?: string;
|
|
612
|
+
/** Default token lifetime in seconds to use when the token response omits expires_in. */
|
|
613
|
+
defaultTokenExpiresIn?: number;
|
|
614
|
+
/** Extra query parameters added to authorization URLs. */
|
|
615
|
+
authorizationUrlParams?: ConnectConnectorCreateDataCase0AuthorizationUrlParamsMap;
|
|
616
|
+
/** JWT bearer grant settings. */
|
|
617
|
+
jwtBearer?: ConnectConnectorCreateDataCase0JwtBearer;
|
|
618
|
+
/** `private_key_jwt` client assertion settings. */
|
|
619
|
+
clientAssertion?: ConnectConnectorCreateDataCase0ClientAssertion;
|
|
620
|
+
}
|
|
621
|
+
export const ConnectConnectorCreateDataCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
622
|
+
S.Struct({
|
|
623
|
+
serverUrl: S.optional(S.String),
|
|
624
|
+
serverConfig: S.optional(ConnectConnectorCreateDataCase0ServerConfig),
|
|
625
|
+
clientId: S.String,
|
|
626
|
+
clientName: S.optional(S.String),
|
|
627
|
+
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
628
|
+
tokenEndpointAuthMethod: S.optional(S.String),
|
|
629
|
+
responseType: S.optional(S.String),
|
|
630
|
+
pkceRequired: S.optional(S.Boolean),
|
|
631
|
+
codeChallengeMethod: S.optional(S.String),
|
|
632
|
+
userAuthorization: S.optional(
|
|
633
|
+
ConnectConnectorCreateDataCase0UserAuthorization,
|
|
634
|
+
),
|
|
635
|
+
refreshTokens: S.optional(ConnectConnectorCreateDataCase0RefreshTokens),
|
|
636
|
+
clientCredentials: S.optional(
|
|
637
|
+
ConnectConnectorCreateDataCase0ClientCredentials,
|
|
638
|
+
),
|
|
639
|
+
forwardedClaims: S.optional(ConnectConnectorCreateDataCase0ForwardedClaims),
|
|
640
|
+
defaultAudience: S.optional(S.String),
|
|
641
|
+
defaultTokenExpiresIn: S.optional(S.Number),
|
|
642
|
+
authorizationUrlParams: S.optional(
|
|
643
|
+
ConnectConnectorCreateDataCase0AuthorizationUrlParamsMap,
|
|
644
|
+
),
|
|
645
|
+
jwtBearer: S.optional(ConnectConnectorCreateDataCase0JwtBearer),
|
|
646
|
+
clientAssertion: S.optional(ConnectConnectorCreateDataCase0ClientAssertion),
|
|
647
|
+
}),
|
|
648
|
+
).annotate({
|
|
649
|
+
identifier: "ConnectConnectorCreateDataCase0",
|
|
650
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase0>;
|
|
651
|
+
|
|
652
|
+
/** Which subject the connector issues tokens for. Defaults to \"app\" (connector-level keys). \"user\" connectors store no connector-level values; each user supplies their own key during authorization. */
|
|
653
|
+
export type ConnectConnectorCreateDataCase1SubjectType = "app" | "user";
|
|
654
|
+
export const ConnectConnectorCreateDataCase1SubjectType = S.String;
|
|
655
|
+
|
|
656
|
+
export interface ConnectConnectorCreateDataCase1ValuesItem {
|
|
657
|
+
/** API key value. */
|
|
658
|
+
value: string;
|
|
659
|
+
/** Optional scope associated with the API key value. */
|
|
660
|
+
scope?: string;
|
|
661
|
+
/** The timestamp when the API key value expires in milliseconds. */
|
|
662
|
+
expiresAt?: number;
|
|
663
|
+
}
|
|
664
|
+
export const ConnectConnectorCreateDataCase1ValuesItem =
|
|
665
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
666
|
+
S.Struct({
|
|
667
|
+
value: S.String,
|
|
668
|
+
scope: S.optional(S.String),
|
|
669
|
+
expiresAt: S.optional(S.Number),
|
|
670
|
+
}),
|
|
671
|
+
).annotate({
|
|
672
|
+
identifier: "ConnectConnectorCreateDataCase1ValuesItem",
|
|
673
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase1ValuesItem>;
|
|
674
|
+
|
|
675
|
+
/** Initial API key values stored by the connector. */
|
|
676
|
+
export type ConnectConnectorCreateDataCase1ValuesList =
|
|
677
|
+
Array<ConnectConnectorCreateDataCase1ValuesItem>;
|
|
678
|
+
export const ConnectConnectorCreateDataCase1ValuesList = /*@__PURE__*/ S.Array(
|
|
679
|
+
ConnectConnectorCreateDataCase1ValuesItem,
|
|
680
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase1ValuesList>;
|
|
681
|
+
|
|
682
|
+
/** The HTTPS resources the API key authenticates against. */
|
|
683
|
+
export type ConnectConnectorCreateDataCase1ServiceUrlsList = Array<string>;
|
|
684
|
+
export const ConnectConnectorCreateDataCase1ServiceUrlsList =
|
|
685
|
+
/*@__PURE__*/ S.Array(
|
|
686
|
+
S.String,
|
|
687
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase1ServiceUrlsList>;
|
|
688
|
+
|
|
689
|
+
export interface ConnectConnectorCreateDataCase1 {
|
|
690
|
+
/** Which subject the connector issues tokens for. Defaults to \"app\" (connector-level keys). \"user\" connectors store no connector-level values; each user supplies their own key during authorization. */
|
|
691
|
+
subjectType?: ConnectConnectorCreateDataCase1SubjectType | (string & {});
|
|
692
|
+
/** Initial API key values stored by the connector. */
|
|
693
|
+
values?: ConnectConnectorCreateDataCase1ValuesList;
|
|
694
|
+
/** The HTTPS resources the API key authenticates against. */
|
|
695
|
+
serviceUrls?: ConnectConnectorCreateDataCase1ServiceUrlsList;
|
|
696
|
+
}
|
|
697
|
+
export const ConnectConnectorCreateDataCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
698
|
+
S.Struct({
|
|
699
|
+
subjectType: S.optional(ConnectConnectorCreateDataCase1SubjectType),
|
|
700
|
+
values: S.optional(ConnectConnectorCreateDataCase1ValuesList),
|
|
701
|
+
serviceUrls: S.optional(ConnectConnectorCreateDataCase1ServiceUrlsList),
|
|
702
|
+
}),
|
|
703
|
+
).annotate({
|
|
704
|
+
identifier: "ConnectConnectorCreateDataCase1",
|
|
705
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase1>;
|
|
706
|
+
|
|
707
|
+
/** GitHub App owner type. */
|
|
708
|
+
export type ConnectConnectorCreateDataCase2OwnerType =
|
|
709
|
+
| "user"
|
|
710
|
+
| "organization"
|
|
711
|
+
| "User"
|
|
712
|
+
| "Organization";
|
|
713
|
+
export const ConnectConnectorCreateDataCase2OwnerType = S.String;
|
|
714
|
+
|
|
715
|
+
/** GitHub App owner. */
|
|
716
|
+
export interface ConnectConnectorCreateDataCase2Owner {
|
|
717
|
+
/** GitHub App owner type. */
|
|
718
|
+
type: ConnectConnectorCreateDataCase2OwnerType | (string & {});
|
|
719
|
+
/** GitHub App owner numeric ID. */
|
|
720
|
+
id: number;
|
|
721
|
+
/** GitHub App owner login. */
|
|
722
|
+
slug: string;
|
|
723
|
+
/** GitHub App owner display name. */
|
|
724
|
+
name?: string;
|
|
725
|
+
}
|
|
726
|
+
export const ConnectConnectorCreateDataCase2Owner = /*@__PURE__*/ S.suspend(
|
|
727
|
+
() =>
|
|
728
|
+
S.Struct({
|
|
729
|
+
type: ConnectConnectorCreateDataCase2OwnerType,
|
|
730
|
+
id: S.Number,
|
|
731
|
+
slug: S.String,
|
|
732
|
+
name: S.optional(S.String),
|
|
733
|
+
}),
|
|
734
|
+
).annotate({
|
|
735
|
+
identifier: "ConnectConnectorCreateDataCase2Owner",
|
|
736
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase2Owner>;
|
|
737
|
+
|
|
738
|
+
/** Additional provider metadata stored with the connector. */
|
|
739
|
+
export type ConnectConnectorCreateDataCase2ExtrasMap = {
|
|
740
|
+
[key: string]: unknown | undefined;
|
|
741
|
+
};
|
|
742
|
+
export const ConnectConnectorCreateDataCase2ExtrasMap = /*@__PURE__*/ S.Record(
|
|
743
|
+
S.String,
|
|
744
|
+
S.Unknown,
|
|
745
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase2ExtrasMap>;
|
|
746
|
+
|
|
747
|
+
export interface ConnectConnectorCreateDataCase2 {
|
|
748
|
+
/** GitHub App numeric ID. */
|
|
749
|
+
appId: number;
|
|
750
|
+
/** GitHub App slug. */
|
|
751
|
+
appSlug: string;
|
|
752
|
+
/** GitHub App display name. */
|
|
753
|
+
appName: string;
|
|
754
|
+
/** OAuth client ID assigned by GitHub. */
|
|
755
|
+
clientId: string;
|
|
756
|
+
/** GitHub App owner. */
|
|
757
|
+
owner?: ConnectConnectorCreateDataCase2Owner;
|
|
758
|
+
/** GitHub App OAuth client secret. */
|
|
759
|
+
clientSecret?: string | Redacted.Redacted<string>;
|
|
760
|
+
/** GitHub App private key in PEM format. */
|
|
761
|
+
privateKeyPem?: string;
|
|
762
|
+
/** GitHub App webhook secret. */
|
|
763
|
+
webhookSecret?: string;
|
|
764
|
+
/** Additional provider metadata stored with the connector. */
|
|
765
|
+
extras?: ConnectConnectorCreateDataCase2ExtrasMap;
|
|
766
|
+
}
|
|
767
|
+
export const ConnectConnectorCreateDataCase2 = /*@__PURE__*/ S.suspend(() =>
|
|
768
|
+
S.Struct({
|
|
769
|
+
appId: S.Number,
|
|
770
|
+
appSlug: S.String,
|
|
771
|
+
appName: S.String,
|
|
772
|
+
clientId: S.String,
|
|
773
|
+
owner: S.optional(ConnectConnectorCreateDataCase2Owner),
|
|
774
|
+
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
775
|
+
privateKeyPem: S.optional(S.String),
|
|
776
|
+
webhookSecret: S.optional(S.String),
|
|
777
|
+
extras: S.optional(ConnectConnectorCreateDataCase2ExtrasMap),
|
|
778
|
+
}),
|
|
779
|
+
).annotate({
|
|
780
|
+
identifier: "ConnectConnectorCreateDataCase2",
|
|
781
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase2>;
|
|
782
|
+
|
|
783
|
+
/** OAuth scopes requested for Linear application tokens. */
|
|
784
|
+
export type ConnectConnectorCreateDataCase3AppScopesList = Array<string>;
|
|
785
|
+
export const ConnectConnectorCreateDataCase3AppScopesList =
|
|
786
|
+
/*@__PURE__*/ S.Array(
|
|
787
|
+
S.String,
|
|
788
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase3AppScopesList>;
|
|
789
|
+
|
|
790
|
+
/** OAuth scopes requested for Linear user tokens. */
|
|
791
|
+
export type ConnectConnectorCreateDataCase3UserScopesList = Array<string>;
|
|
792
|
+
export const ConnectConnectorCreateDataCase3UserScopesList =
|
|
793
|
+
/*@__PURE__*/ S.Array(
|
|
794
|
+
S.String,
|
|
795
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase3UserScopesList>;
|
|
796
|
+
|
|
797
|
+
/** Linear organization that owns the OAuth application. */
|
|
798
|
+
export interface ConnectConnectorCreateDataCase3OwnerOrganization {
|
|
799
|
+
/** Linear organization ID. */
|
|
800
|
+
id: string;
|
|
801
|
+
/** Linear organization slug. */
|
|
802
|
+
slug: string;
|
|
803
|
+
/** Linear organization name. */
|
|
804
|
+
name: string;
|
|
805
|
+
/** Linear organization logo URL. */
|
|
806
|
+
logoUrl?: string | null;
|
|
807
|
+
}
|
|
808
|
+
export const ConnectConnectorCreateDataCase3OwnerOrganization =
|
|
809
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
810
|
+
S.Struct({
|
|
811
|
+
id: S.String,
|
|
812
|
+
slug: S.String,
|
|
813
|
+
name: S.String,
|
|
814
|
+
logoUrl: S.optional(S.NullOr(S.String)),
|
|
815
|
+
}),
|
|
816
|
+
).annotate({
|
|
817
|
+
identifier: "ConnectConnectorCreateDataCase3OwnerOrganization",
|
|
818
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase3OwnerOrganization>;
|
|
819
|
+
|
|
820
|
+
/** Registered redirect URIs for the Linear OAuth application. */
|
|
821
|
+
export type ConnectConnectorCreateDataCase3ApplicationRedirectUrisList =
|
|
822
|
+
Array<string>;
|
|
823
|
+
export const ConnectConnectorCreateDataCase3ApplicationRedirectUrisList =
|
|
824
|
+
/*@__PURE__*/ S.Array(
|
|
825
|
+
S.String,
|
|
826
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase3ApplicationRedirectUrisList>;
|
|
827
|
+
|
|
828
|
+
/** Linear resource types delivered to the webhook. */
|
|
829
|
+
export type ConnectConnectorCreateDataCase3ApplicationWebhookResourceTypesList =
|
|
830
|
+
Array<string>;
|
|
831
|
+
export const ConnectConnectorCreateDataCase3ApplicationWebhookResourceTypesList =
|
|
832
|
+
/*@__PURE__*/ S.Array(
|
|
833
|
+
S.String,
|
|
834
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase3ApplicationWebhookResourceTypesList>;
|
|
835
|
+
|
|
836
|
+
/** Linear OAuth application metadata. */
|
|
837
|
+
export interface ConnectConnectorCreateDataCase3Application {
|
|
838
|
+
/** Linear OAuth application ID. */
|
|
839
|
+
id: string;
|
|
840
|
+
/** Linear OAuth client ID. */
|
|
841
|
+
clientId: string;
|
|
842
|
+
/** Linear OAuth application name. */
|
|
843
|
+
name: string;
|
|
844
|
+
/** Linear OAuth application description. */
|
|
845
|
+
description?: string | null;
|
|
846
|
+
/** Linear OAuth application developer name. */
|
|
847
|
+
developer?: string | null;
|
|
848
|
+
/** Linear OAuth application developer URL. */
|
|
849
|
+
developerUrl?: string | null;
|
|
850
|
+
/** Linear OAuth application image URL. */
|
|
851
|
+
imageUrl?: string | null;
|
|
852
|
+
/** Registered redirect URIs for the Linear OAuth application. */
|
|
853
|
+
redirectUris?: ConnectConnectorCreateDataCase3ApplicationRedirectUrisList;
|
|
854
|
+
/** Linear OAuth application distribution mode. */
|
|
855
|
+
distribution?: string | null;
|
|
856
|
+
/** Linear resource types delivered to the webhook. */
|
|
857
|
+
webhookResourceTypes?: ConnectConnectorCreateDataCase3ApplicationWebhookResourceTypesList;
|
|
858
|
+
/** Linear webhook URL. */
|
|
859
|
+
webhookUrl?: string | null;
|
|
860
|
+
/** Whether the Linear webhook is enabled. */
|
|
861
|
+
webhookEnabled?: boolean;
|
|
862
|
+
/** Linear OAuth application creation timestamp. */
|
|
863
|
+
createdAt?: string;
|
|
864
|
+
/** Linear OAuth application update timestamp. */
|
|
865
|
+
updatedAt?: string;
|
|
866
|
+
}
|
|
867
|
+
export const ConnectConnectorCreateDataCase3Application =
|
|
868
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
869
|
+
S.Struct({
|
|
870
|
+
id: S.String,
|
|
871
|
+
clientId: S.String,
|
|
872
|
+
name: S.String,
|
|
873
|
+
description: S.optional(S.NullOr(S.String)),
|
|
874
|
+
developer: S.optional(S.NullOr(S.String)),
|
|
875
|
+
developerUrl: S.optional(S.NullOr(S.String)),
|
|
876
|
+
imageUrl: S.optional(S.NullOr(S.String)),
|
|
877
|
+
redirectUris: S.optional(
|
|
878
|
+
ConnectConnectorCreateDataCase3ApplicationRedirectUrisList,
|
|
879
|
+
),
|
|
880
|
+
distribution: S.optional(S.NullOr(S.String)),
|
|
881
|
+
webhookResourceTypes: S.optional(
|
|
882
|
+
ConnectConnectorCreateDataCase3ApplicationWebhookResourceTypesList,
|
|
883
|
+
),
|
|
884
|
+
webhookUrl: S.optional(S.NullOr(S.String)),
|
|
885
|
+
webhookEnabled: S.optional(S.Boolean),
|
|
886
|
+
createdAt: S.optional(S.String),
|
|
887
|
+
updatedAt: S.optional(S.String),
|
|
888
|
+
}),
|
|
889
|
+
).annotate({
|
|
890
|
+
identifier: "ConnectConnectorCreateDataCase3Application",
|
|
891
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase3Application>;
|
|
892
|
+
|
|
893
|
+
/** Additional provider metadata stored with the connector. */
|
|
894
|
+
export type ConnectConnectorCreateDataCase3ExtrasMap = {
|
|
895
|
+
[key: string]: unknown | undefined;
|
|
896
|
+
};
|
|
897
|
+
export const ConnectConnectorCreateDataCase3ExtrasMap = /*@__PURE__*/ S.Record(
|
|
898
|
+
S.String,
|
|
899
|
+
S.Unknown,
|
|
900
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase3ExtrasMap>;
|
|
901
|
+
|
|
902
|
+
export interface ConnectConnectorCreateDataCase3 {
|
|
903
|
+
/** Linear application ID. */
|
|
904
|
+
appId?: string;
|
|
905
|
+
/** Linear application name. */
|
|
906
|
+
appName?: string;
|
|
907
|
+
/** OAuth client ID assigned by Linear. */
|
|
908
|
+
clientId: string;
|
|
909
|
+
/** Linear OAuth client secret. */
|
|
910
|
+
clientSecret: string | Redacted.Redacted<string>;
|
|
911
|
+
/** Linear webhook verification secret. */
|
|
912
|
+
webhookSecret?: string;
|
|
913
|
+
/** OAuth scopes requested for Linear application tokens. */
|
|
914
|
+
appScopes?: ConnectConnectorCreateDataCase3AppScopesList;
|
|
915
|
+
/** OAuth scopes requested for Linear user tokens. */
|
|
916
|
+
userScopes?: ConnectConnectorCreateDataCase3UserScopesList;
|
|
917
|
+
/** Linear organization that owns the OAuth application. */
|
|
918
|
+
ownerOrganization?: ConnectConnectorCreateDataCase3OwnerOrganization;
|
|
919
|
+
/** Linear OAuth application metadata. */
|
|
920
|
+
application?: ConnectConnectorCreateDataCase3Application;
|
|
921
|
+
/** Additional provider metadata stored with the connector. */
|
|
922
|
+
extras?: ConnectConnectorCreateDataCase3ExtrasMap;
|
|
923
|
+
}
|
|
924
|
+
export const ConnectConnectorCreateDataCase3 = /*@__PURE__*/ S.suspend(() =>
|
|
925
|
+
S.Struct({
|
|
926
|
+
appId: S.optional(S.String),
|
|
927
|
+
appName: S.optional(S.String),
|
|
928
|
+
clientId: S.String,
|
|
929
|
+
clientSecret: S.String.pipe(T.SensitiveValue({})),
|
|
930
|
+
webhookSecret: S.optional(S.String),
|
|
931
|
+
appScopes: S.optional(ConnectConnectorCreateDataCase3AppScopesList),
|
|
932
|
+
userScopes: S.optional(ConnectConnectorCreateDataCase3UserScopesList),
|
|
933
|
+
ownerOrganization: S.optional(
|
|
934
|
+
ConnectConnectorCreateDataCase3OwnerOrganization,
|
|
935
|
+
),
|
|
936
|
+
application: S.optional(ConnectConnectorCreateDataCase3Application),
|
|
937
|
+
extras: S.optional(ConnectConnectorCreateDataCase3ExtrasMap),
|
|
938
|
+
}),
|
|
939
|
+
).annotate({
|
|
940
|
+
identifier: "ConnectConnectorCreateDataCase3",
|
|
941
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase3>;
|
|
942
|
+
|
|
943
|
+
export type ConnectConnectorCreateDataCase4PhoneNumbersList = Array<string>;
|
|
944
|
+
export const ConnectConnectorCreateDataCase4PhoneNumbersList =
|
|
945
|
+
/*@__PURE__*/ S.Array(
|
|
946
|
+
S.String,
|
|
947
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase4PhoneNumbersList>;
|
|
948
|
+
|
|
949
|
+
export interface ConnectConnectorCreateDataCase4 {
|
|
950
|
+
/** Linq partner API token for the shared line. */
|
|
951
|
+
apiToken: string | Redacted.Redacted<string>;
|
|
952
|
+
phoneNumbers?: ConnectConnectorCreateDataCase4PhoneNumbersList;
|
|
953
|
+
}
|
|
954
|
+
export const ConnectConnectorCreateDataCase4 = /*@__PURE__*/ S.suspend(() =>
|
|
955
|
+
S.Struct({
|
|
956
|
+
apiToken: S.String.pipe(T.SensitiveValue({})),
|
|
957
|
+
phoneNumbers: S.optional(ConnectConnectorCreateDataCase4PhoneNumbersList),
|
|
958
|
+
}),
|
|
959
|
+
).annotate({
|
|
960
|
+
identifier: "ConnectConnectorCreateDataCase4",
|
|
961
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase4>;
|
|
962
|
+
|
|
963
|
+
export interface ConnectConnectorCreateDataCase5 {
|
|
964
|
+
/** Salesforce connected app consumer key. */
|
|
965
|
+
consumerKey: string;
|
|
966
|
+
/** Salesforce connected app consumer secret. */
|
|
967
|
+
consumerSecret: string;
|
|
968
|
+
/** Salesforce login host, such as login.salesforce.com. */
|
|
969
|
+
loginHost: string;
|
|
970
|
+
}
|
|
971
|
+
export const ConnectConnectorCreateDataCase5 = /*@__PURE__*/ S.suspend(() =>
|
|
972
|
+
S.Struct({
|
|
973
|
+
consumerKey: S.String,
|
|
974
|
+
consumerSecret: S.String,
|
|
975
|
+
loginHost: S.String,
|
|
976
|
+
}),
|
|
977
|
+
).annotate({
|
|
978
|
+
identifier: "ConnectConnectorCreateDataCase5",
|
|
979
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase5>;
|
|
980
|
+
|
|
981
|
+
/** E.164 Sendblue lines this connector sends and receives on. Used as the connector's display name, and the only lines its webhooks are registered for; an empty array clears them, which also removes the webhook subscription. */
|
|
982
|
+
export type ConnectConnectorCreateDataCase6PhoneNumbersList = Array<string>;
|
|
983
|
+
export const ConnectConnectorCreateDataCase6PhoneNumbersList =
|
|
984
|
+
/*@__PURE__*/ S.Array(
|
|
985
|
+
S.String,
|
|
986
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase6PhoneNumbersList>;
|
|
987
|
+
|
|
988
|
+
export interface ConnectConnectorCreateDataCase6 {
|
|
989
|
+
/** Sendblue API key id (`sb-api-key-id`). */
|
|
990
|
+
apiKeyId: string;
|
|
991
|
+
/** Sendblue API secret key (`sb-api-secret-key`). */
|
|
992
|
+
apiSecretKey: string | Redacted.Redacted<string>;
|
|
993
|
+
/** E.164 Sendblue lines this connector sends and receives on. Used as the connector's display name, and the only lines its webhooks are registered for; an empty array clears them, which also removes the webhook subscription. */
|
|
994
|
+
phoneNumbers?: ConnectConnectorCreateDataCase6PhoneNumbersList;
|
|
995
|
+
}
|
|
996
|
+
export const ConnectConnectorCreateDataCase6 = /*@__PURE__*/ S.suspend(() =>
|
|
997
|
+
S.Struct({
|
|
998
|
+
apiKeyId: S.String,
|
|
999
|
+
apiSecretKey: S.String.pipe(T.SensitiveValue({})),
|
|
1000
|
+
phoneNumbers: S.optional(ConnectConnectorCreateDataCase6PhoneNumbersList),
|
|
1001
|
+
}),
|
|
1002
|
+
).annotate({
|
|
1003
|
+
identifier: "ConnectConnectorCreateDataCase6",
|
|
1004
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase6>;
|
|
1005
|
+
|
|
1006
|
+
/** Slack workspace metadata. */
|
|
1007
|
+
export interface ConnectConnectorCreateDataCase7SlackTeam {
|
|
1008
|
+
/** Slack workspace ID. */
|
|
1009
|
+
id: string;
|
|
1010
|
+
/** Slack workspace name. */
|
|
1011
|
+
name?: string;
|
|
1012
|
+
/** Slack workspace domain. */
|
|
1013
|
+
domain?: string;
|
|
1014
|
+
}
|
|
1015
|
+
export const ConnectConnectorCreateDataCase7SlackTeam = /*@__PURE__*/ S.suspend(
|
|
1016
|
+
() =>
|
|
1017
|
+
S.Struct({
|
|
1018
|
+
id: S.String,
|
|
1019
|
+
name: S.optional(S.String),
|
|
1020
|
+
domain: S.optional(S.String),
|
|
1021
|
+
}),
|
|
1022
|
+
).annotate({
|
|
1023
|
+
identifier: "ConnectConnectorCreateDataCase7SlackTeam",
|
|
1024
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase7SlackTeam>;
|
|
1025
|
+
|
|
1026
|
+
/** OAuth scopes requested for Slack bot tokens. */
|
|
1027
|
+
export type ConnectConnectorCreateDataCase7BotScopesList = Array<string>;
|
|
1028
|
+
export const ConnectConnectorCreateDataCase7BotScopesList =
|
|
1029
|
+
/*@__PURE__*/ S.Array(
|
|
1030
|
+
S.String,
|
|
1031
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase7BotScopesList>;
|
|
1032
|
+
|
|
1033
|
+
/** OAuth scopes requested for Slack user tokens. */
|
|
1034
|
+
export type ConnectConnectorCreateDataCase7UserScopesList = Array<string>;
|
|
1035
|
+
export const ConnectConnectorCreateDataCase7UserScopesList =
|
|
1036
|
+
/*@__PURE__*/ S.Array(
|
|
1037
|
+
S.String,
|
|
1038
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase7UserScopesList>;
|
|
1039
|
+
|
|
1040
|
+
export interface ConnectConnectorCreateDataCase7SlashCommandsItem {
|
|
1041
|
+
/** Slash command including its leading slash. */
|
|
1042
|
+
command: string;
|
|
1043
|
+
/** Description shown for the slash command in Slack. */
|
|
1044
|
+
description: string;
|
|
1045
|
+
/** Optional usage hint shown for the slash command. */
|
|
1046
|
+
usageHint?: string;
|
|
1047
|
+
/** Whether Slack should escape command arguments. */
|
|
1048
|
+
shouldEscape?: boolean;
|
|
1049
|
+
}
|
|
1050
|
+
export const ConnectConnectorCreateDataCase7SlashCommandsItem =
|
|
1051
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1052
|
+
S.Struct({
|
|
1053
|
+
command: S.String,
|
|
1054
|
+
description: S.String,
|
|
1055
|
+
usageHint: S.optional(S.String),
|
|
1056
|
+
shouldEscape: S.optional(S.Boolean),
|
|
1057
|
+
}),
|
|
1058
|
+
).annotate({
|
|
1059
|
+
identifier: "ConnectConnectorCreateDataCase7SlashCommandsItem",
|
|
1060
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase7SlashCommandsItem>;
|
|
1061
|
+
|
|
1062
|
+
/** Slash commands configured for the managed Slack app. */
|
|
1063
|
+
export type ConnectConnectorCreateDataCase7SlashCommandsList =
|
|
1064
|
+
Array<ConnectConnectorCreateDataCase7SlashCommandsItem>;
|
|
1065
|
+
export const ConnectConnectorCreateDataCase7SlashCommandsList =
|
|
1066
|
+
/*@__PURE__*/ S.Array(
|
|
1067
|
+
ConnectConnectorCreateDataCase7SlashCommandsItem,
|
|
1068
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase7SlashCommandsList>;
|
|
1069
|
+
|
|
1070
|
+
/** Where Slack exposes the shortcut. */
|
|
1071
|
+
export type ConnectConnectorCreateDataCase7ShortcutsItemType =
|
|
1072
|
+
| "global"
|
|
1073
|
+
| "message";
|
|
1074
|
+
export const ConnectConnectorCreateDataCase7ShortcutsItemType = S.String;
|
|
1075
|
+
|
|
1076
|
+
export interface ConnectConnectorCreateDataCase7ShortcutsItem {
|
|
1077
|
+
/** Where Slack exposes the shortcut. */
|
|
1078
|
+
type: ConnectConnectorCreateDataCase7ShortcutsItemType | (string & {});
|
|
1079
|
+
/** Shortcut display name. */
|
|
1080
|
+
name: string;
|
|
1081
|
+
/** Identifier included in the shortcut callback. */
|
|
1082
|
+
callbackId: string;
|
|
1083
|
+
/** Description shown for the shortcut in Slack. */
|
|
1084
|
+
description: string;
|
|
1085
|
+
}
|
|
1086
|
+
export const ConnectConnectorCreateDataCase7ShortcutsItem =
|
|
1087
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1088
|
+
S.Struct({
|
|
1089
|
+
type: ConnectConnectorCreateDataCase7ShortcutsItemType,
|
|
1090
|
+
name: S.String,
|
|
1091
|
+
callbackId: S.String,
|
|
1092
|
+
description: S.String,
|
|
1093
|
+
}),
|
|
1094
|
+
).annotate({
|
|
1095
|
+
identifier: "ConnectConnectorCreateDataCase7ShortcutsItem",
|
|
1096
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase7ShortcutsItem>;
|
|
1097
|
+
|
|
1098
|
+
/** Global and message shortcuts configured for the Slack app. */
|
|
1099
|
+
export type ConnectConnectorCreateDataCase7ShortcutsList =
|
|
1100
|
+
Array<ConnectConnectorCreateDataCase7ShortcutsItem>;
|
|
1101
|
+
export const ConnectConnectorCreateDataCase7ShortcutsList =
|
|
1102
|
+
/*@__PURE__*/ S.Array(
|
|
1103
|
+
ConnectConnectorCreateDataCase7ShortcutsItem,
|
|
1104
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase7ShortcutsList>;
|
|
1105
|
+
|
|
1106
|
+
/** Additional provider metadata stored with the connector. */
|
|
1107
|
+
export type ConnectConnectorCreateDataCase7ExtrasMap = {
|
|
1108
|
+
[key: string]: unknown | undefined;
|
|
1109
|
+
};
|
|
1110
|
+
export const ConnectConnectorCreateDataCase7ExtrasMap = /*@__PURE__*/ S.Record(
|
|
1111
|
+
S.String,
|
|
1112
|
+
S.Unknown,
|
|
1113
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase7ExtrasMap>;
|
|
1114
|
+
|
|
1115
|
+
export interface ConnectConnectorCreateDataCase7 {
|
|
1116
|
+
/** Slack app ID. */
|
|
1117
|
+
appId: string;
|
|
1118
|
+
/** Slack app display name. */
|
|
1119
|
+
appName: string;
|
|
1120
|
+
/** OAuth client ID assigned by Slack. */
|
|
1121
|
+
clientId: string;
|
|
1122
|
+
/** Slack app OAuth client secret. */
|
|
1123
|
+
clientSecret: string | Redacted.Redacted<string>;
|
|
1124
|
+
/** Slack workspace metadata. */
|
|
1125
|
+
slackTeam?: ConnectConnectorCreateDataCase7SlackTeam;
|
|
1126
|
+
/** Slack request signing secret. */
|
|
1127
|
+
signingSecret?: string;
|
|
1128
|
+
/** Legacy Slack webhook verification token. */
|
|
1129
|
+
verificationToken?: string;
|
|
1130
|
+
/** OAuth scopes requested for Slack bot tokens. */
|
|
1131
|
+
botScopes?: ConnectConnectorCreateDataCase7BotScopesList;
|
|
1132
|
+
/** OAuth scopes requested for Slack user tokens. */
|
|
1133
|
+
userScopes?: ConnectConnectorCreateDataCase7UserScopesList;
|
|
1134
|
+
/** Slash commands configured for the managed Slack app. */
|
|
1135
|
+
slashCommands?: ConnectConnectorCreateDataCase7SlashCommandsList;
|
|
1136
|
+
/** Global and message shortcuts configured for the Slack app. */
|
|
1137
|
+
shortcuts?: ConnectConnectorCreateDataCase7ShortcutsList;
|
|
1138
|
+
/** Additional provider metadata stored with the connector. */
|
|
1139
|
+
extras?: ConnectConnectorCreateDataCase7ExtrasMap;
|
|
1140
|
+
}
|
|
1141
|
+
export const ConnectConnectorCreateDataCase7 = /*@__PURE__*/ S.suspend(() =>
|
|
1142
|
+
S.Struct({
|
|
1143
|
+
appId: S.String,
|
|
1144
|
+
appName: S.String,
|
|
1145
|
+
clientId: S.String,
|
|
1146
|
+
clientSecret: S.String.pipe(T.SensitiveValue({})),
|
|
1147
|
+
slackTeam: S.optional(ConnectConnectorCreateDataCase7SlackTeam),
|
|
1148
|
+
signingSecret: S.optional(S.String),
|
|
1149
|
+
verificationToken: S.optional(S.String),
|
|
1150
|
+
botScopes: S.optional(ConnectConnectorCreateDataCase7BotScopesList),
|
|
1151
|
+
userScopes: S.optional(ConnectConnectorCreateDataCase7UserScopesList),
|
|
1152
|
+
slashCommands: S.optional(ConnectConnectorCreateDataCase7SlashCommandsList),
|
|
1153
|
+
shortcuts: S.optional(ConnectConnectorCreateDataCase7ShortcutsList),
|
|
1154
|
+
extras: S.optional(ConnectConnectorCreateDataCase7ExtrasMap),
|
|
1155
|
+
}),
|
|
1156
|
+
).annotate({
|
|
1157
|
+
identifier: "ConnectConnectorCreateDataCase7",
|
|
1158
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase7>;
|
|
1159
|
+
|
|
1160
|
+
/** Additional provider metadata stored with the connector. */
|
|
1161
|
+
export type ConnectConnectorCreateDataCase8ExtrasMap = {
|
|
1162
|
+
[key: string]: unknown | undefined;
|
|
1163
|
+
};
|
|
1164
|
+
export const ConnectConnectorCreateDataCase8ExtrasMap = /*@__PURE__*/ S.Record(
|
|
1165
|
+
S.String,
|
|
1166
|
+
S.Unknown,
|
|
1167
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase8ExtrasMap>;
|
|
1168
|
+
|
|
1169
|
+
export interface ConnectConnectorCreateDataCase8 {
|
|
1170
|
+
/** Snowflake OAuth client name. */
|
|
1171
|
+
clientName?: string;
|
|
1172
|
+
/** Snowflake account identifier. */
|
|
1173
|
+
accountIdentifier: string;
|
|
1174
|
+
/** Default Snowflake role for created sessions. */
|
|
1175
|
+
defaultSessionRole?: string;
|
|
1176
|
+
/** Additional provider metadata stored with the connector. */
|
|
1177
|
+
extras?: ConnectConnectorCreateDataCase8ExtrasMap;
|
|
1178
|
+
}
|
|
1179
|
+
export const ConnectConnectorCreateDataCase8 = /*@__PURE__*/ S.suspend(() =>
|
|
1180
|
+
S.Struct({
|
|
1181
|
+
clientName: S.optional(S.String),
|
|
1182
|
+
accountIdentifier: S.String,
|
|
1183
|
+
defaultSessionRole: S.optional(S.String),
|
|
1184
|
+
extras: S.optional(ConnectConnectorCreateDataCase8ExtrasMap),
|
|
1185
|
+
}),
|
|
1186
|
+
).annotate({
|
|
1187
|
+
identifier: "ConnectConnectorCreateDataCase8",
|
|
1188
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase8>;
|
|
1189
|
+
|
|
1190
|
+
/** Additional provider metadata stored with the connector. */
|
|
1191
|
+
export type ConnectConnectorCreateDataCase9ExtrasMap = {
|
|
1192
|
+
[key: string]: unknown | undefined;
|
|
1193
|
+
};
|
|
1194
|
+
export const ConnectConnectorCreateDataCase9ExtrasMap = /*@__PURE__*/ S.Record(
|
|
1195
|
+
S.String,
|
|
1196
|
+
S.Unknown,
|
|
1197
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase9ExtrasMap>;
|
|
1198
|
+
|
|
1199
|
+
export interface ConnectConnectorCreateDataCase9 {
|
|
1200
|
+
/** Snowflake client name. */
|
|
1201
|
+
clientName?: string;
|
|
1202
|
+
/** Snowflake account identifier. */
|
|
1203
|
+
accountIdentifier?: string;
|
|
1204
|
+
/** Additional provider metadata stored with the connector. */
|
|
1205
|
+
extras?: ConnectConnectorCreateDataCase9ExtrasMap;
|
|
1206
|
+
}
|
|
1207
|
+
export const ConnectConnectorCreateDataCase9 = /*@__PURE__*/ S.suspend(() =>
|
|
1208
|
+
S.Struct({
|
|
1209
|
+
clientName: S.optional(S.String),
|
|
1210
|
+
accountIdentifier: S.optional(S.String),
|
|
1211
|
+
extras: S.optional(ConnectConnectorCreateDataCase9ExtrasMap),
|
|
1212
|
+
}),
|
|
1213
|
+
).annotate({
|
|
1214
|
+
identifier: "ConnectConnectorCreateDataCase9",
|
|
1215
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase9>;
|
|
1216
|
+
|
|
1217
|
+
export interface ConnectConnectorCreateDataCase10 {
|
|
1218
|
+
/** Photon project ID. */
|
|
1219
|
+
projectId: string;
|
|
1220
|
+
/** Photon project secret. */
|
|
1221
|
+
projectSecret: string;
|
|
1222
|
+
/** Photon webhook verification secret. */
|
|
1223
|
+
webhookSecret?: string;
|
|
1224
|
+
}
|
|
1225
|
+
export const ConnectConnectorCreateDataCase10 = /*@__PURE__*/ S.suspend(() =>
|
|
1226
|
+
S.Struct({
|
|
1227
|
+
projectId: S.String,
|
|
1228
|
+
projectSecret: S.String,
|
|
1229
|
+
webhookSecret: S.optional(S.String),
|
|
1230
|
+
}),
|
|
1231
|
+
).annotate({
|
|
1232
|
+
identifier: "ConnectConnectorCreateDataCase10",
|
|
1233
|
+
}) as any as S.Schema<ConnectConnectorCreateDataCase10>;
|
|
1234
|
+
|
|
1235
|
+
export type ConnectConnectorCreateDataCase11Map = {
|
|
1236
|
+
[key: string]: unknown | undefined;
|
|
1237
|
+
};
|
|
1238
|
+
export const ConnectConnectorCreateDataCase11Map = /*@__PURE__*/ S.Record(
|
|
1239
|
+
S.String,
|
|
1240
|
+
S.Unknown,
|
|
1241
|
+
) as any as S.Schema<ConnectConnectorCreateDataCase11Map>;
|
|
1242
|
+
|
|
1243
|
+
/** Provider configuration. With type, provide the complete configuration for that type. With service and connectionMethod, provide only credentials and preferences; Connect supplies the type, endpoints, templates, and defaults. Other connector types accept an arbitrary object. */
|
|
1244
|
+
export type ConnectConnectorCreateData =
|
|
1245
|
+
| ConnectConnectorCreateDataCase0
|
|
1246
|
+
| ConnectConnectorCreateDataCase1
|
|
1247
|
+
| ConnectConnectorCreateDataCase2
|
|
1248
|
+
| ConnectConnectorCreateDataCase3
|
|
1249
|
+
| ConnectConnectorCreateDataCase4
|
|
1250
|
+
| ConnectConnectorCreateDataCase5
|
|
1251
|
+
| ConnectConnectorCreateDataCase6
|
|
1252
|
+
| ConnectConnectorCreateDataCase7
|
|
1253
|
+
| ConnectConnectorCreateDataCase8
|
|
1254
|
+
| ConnectConnectorCreateDataCase9
|
|
1255
|
+
| ConnectConnectorCreateDataCase10
|
|
1256
|
+
| ConnectConnectorCreateDataCase11Map;
|
|
1257
|
+
export const ConnectConnectorCreateData =
|
|
1258
|
+
S.Unknown as any as S.Schema<ConnectConnectorCreateData>;
|
|
1259
|
+
|
|
1260
|
+
/** Values for the selected connection method's template fields. Requires connectionMethod. */
|
|
1261
|
+
export type CreateConnectorRequestParamsMap = {
|
|
1262
|
+
[key: string]: string | undefined;
|
|
1263
|
+
};
|
|
1264
|
+
export const CreateConnectorRequestParamsMap = /*@__PURE__*/ S.Record(
|
|
1265
|
+
S.String,
|
|
1266
|
+
S.String,
|
|
1267
|
+
) as any as S.Schema<CreateConnectorRequestParamsMap>;
|
|
1268
|
+
|
|
1269
|
+
export type CreateConnectorRequestEnvironmentsItemCase0 =
|
|
1270
|
+
| "development"
|
|
1271
|
+
| "preview"
|
|
1272
|
+
| "production";
|
|
1273
|
+
export const CreateConnectorRequestEnvironmentsItemCase0 = S.String;
|
|
1274
|
+
|
|
1275
|
+
/** A built-in environment name or the stable env_* ID of a custom environment. */
|
|
1276
|
+
export type CreateConnectorRequestEnvironmentsItem =
|
|
1277
|
+
| CreateConnectorRequestEnvironmentsItemCase0
|
|
1278
|
+
| string;
|
|
1279
|
+
export const CreateConnectorRequestEnvironmentsItem =
|
|
1280
|
+
S.Unknown as any as S.Schema<CreateConnectorRequestEnvironmentsItem>;
|
|
1281
|
+
|
|
1282
|
+
/** Environments for the project connection. Requires projectId. Use one or more built-in environment names or stable custom environment IDs that belong to the project. Duplicate values are accepted and removed. */
|
|
1283
|
+
export type CreateConnectorRequestEnvironmentsList =
|
|
1284
|
+
Array<CreateConnectorRequestEnvironmentsItem>;
|
|
1285
|
+
export const CreateConnectorRequestEnvironmentsList = /*@__PURE__*/ S.Array(
|
|
1286
|
+
CreateConnectorRequestEnvironmentsItem,
|
|
1287
|
+
) as any as S.Schema<CreateConnectorRequestEnvironmentsList>;
|
|
1288
|
+
|
|
1289
|
+
export interface CreateConnectorRequestTriggerDestinationCase0 {
|
|
1290
|
+
/** Project that receives triggers. During connector creation, omit it to use the top-level projectId. */
|
|
1291
|
+
projectId?: string;
|
|
1292
|
+
/** Route path on the linked project that receives forwarded trigger requests. */
|
|
1293
|
+
path?: string;
|
|
1294
|
+
}
|
|
1295
|
+
export const CreateConnectorRequestTriggerDestinationCase0 =
|
|
1296
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1297
|
+
S.Struct({
|
|
1298
|
+
projectId: S.optional(S.String),
|
|
1299
|
+
path: S.optional(S.String),
|
|
1300
|
+
}),
|
|
1301
|
+
).annotate({
|
|
1302
|
+
identifier: "CreateConnectorRequestTriggerDestinationCase0",
|
|
1303
|
+
}) as any as S.Schema<CreateConnectorRequestTriggerDestinationCase0>;
|
|
1304
|
+
|
|
1305
|
+
export interface CreateConnectorRequestTriggerDestinationCase1 {
|
|
1306
|
+
/** Project that receives triggers. During connector creation, omit it to use the top-level projectId. */
|
|
1307
|
+
projectId?: string;
|
|
1308
|
+
/** Git branch used to select a preview deployment. */
|
|
1309
|
+
branch: string;
|
|
1310
|
+
/** Route path on the linked project that receives forwarded trigger requests. */
|
|
1311
|
+
path?: string;
|
|
1312
|
+
}
|
|
1313
|
+
export const CreateConnectorRequestTriggerDestinationCase1 =
|
|
1314
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1315
|
+
S.Struct({
|
|
1316
|
+
projectId: S.optional(S.String),
|
|
1317
|
+
branch: S.String,
|
|
1318
|
+
path: S.optional(S.String),
|
|
1319
|
+
}),
|
|
1320
|
+
).annotate({
|
|
1321
|
+
identifier: "CreateConnectorRequestTriggerDestinationCase1",
|
|
1322
|
+
}) as any as S.Schema<CreateConnectorRequestTriggerDestinationCase1>;
|
|
1323
|
+
|
|
1324
|
+
export interface CreateConnectorRequestTriggerDestinationCase2 {
|
|
1325
|
+
/** Project that receives triggers. During connector creation, omit it to use the top-level projectId. */
|
|
1326
|
+
projectId?: string;
|
|
1327
|
+
/** Stable custom environment ID that belongs to the destination project. */
|
|
1328
|
+
customEnvironmentId: string;
|
|
1329
|
+
/** Route path on the linked project that receives forwarded trigger requests. */
|
|
1330
|
+
path?: string;
|
|
1331
|
+
}
|
|
1332
|
+
export const CreateConnectorRequestTriggerDestinationCase2 =
|
|
1333
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1334
|
+
S.Struct({
|
|
1335
|
+
projectId: S.optional(S.String),
|
|
1336
|
+
customEnvironmentId: S.String,
|
|
1337
|
+
path: S.optional(S.String),
|
|
1338
|
+
}),
|
|
1339
|
+
).annotate({
|
|
1340
|
+
identifier: "CreateConnectorRequestTriggerDestinationCase2",
|
|
1341
|
+
}) as any as S.Schema<CreateConnectorRequestTriggerDestinationCase2>;
|
|
1342
|
+
|
|
1343
|
+
/** Initial trigger destination. Requires triggers to be enabled and a projectId here or at the top level. Connector responses expose the resulting set as triggerDestinations. Replace the complete set with PATCH /v1/connect/connectors/{connector}/trigger-destinations. */
|
|
1344
|
+
export type CreateConnectorRequestTriggerDestination =
|
|
1345
|
+
| CreateConnectorRequestTriggerDestinationCase0
|
|
1346
|
+
| CreateConnectorRequestTriggerDestinationCase1
|
|
1347
|
+
| CreateConnectorRequestTriggerDestinationCase2;
|
|
1348
|
+
export const CreateConnectorRequestTriggerDestination =
|
|
1349
|
+
S.Unknown as any as S.Schema<CreateConnectorRequestTriggerDestination>;
|
|
1350
|
+
|
|
1351
|
+
/** Default trigger events for this connector. */
|
|
1352
|
+
export type CreateConnectorRequestEventsList = Array<string>;
|
|
1353
|
+
export const CreateConnectorRequestEventsList = /*@__PURE__*/ S.Array(
|
|
1354
|
+
S.String,
|
|
1355
|
+
) as any as S.Schema<CreateConnectorRequestEventsList>;
|
|
1356
|
+
|
|
1357
|
+
export interface CreateConnectorRequest {
|
|
1358
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
1359
|
+
teamId?: string;
|
|
1360
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
1361
|
+
slug?: string;
|
|
1362
|
+
/** Provider configuration for the selected connector type or connection method. */
|
|
1363
|
+
data: ConnectConnectorCreateData;
|
|
1364
|
+
/** SHA-1 digest of a PNG or JPEG icon that is at least 640 by 640 pixels. This field does not accept a URL or image bytes. First compute the digest and upload the raw image with [POST /v2/files](https://vercel.com/docs/rest-api/deployments/upload-deployment-files). Send `Content-Length` and the same 40-character digest in `x-vercel-digest`. Then set `icon` to that digest. ```js import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; const VERCEL_TOKEN = process.env.VERCEL_TOKEN; const connectorId = 'scl_...'; const bytes = await readFile('icon.png'); const digest = createHash('sha1').update(bytes).digest('hex'); await fetch('https://api.vercel.com/v2/files', { method: 'POST', headers: { Authorization: `Bearer ${VERCEL_TOKEN}`, 'Content-Type': 'application/octet-stream', 'Content-Length': String(bytes.length), 'x-vercel-digest': digest, }, body: bytes, }); await fetch(`https://api.vercel.com/v2/connect/connectors/${connectorId}`, { method: 'PATCH', headers: { Authorization: `Bearer ${VERCEL_TOKEN}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ icon: digest }), }); ``` */
|
|
1365
|
+
icon?: string;
|
|
1366
|
+
/** Branding background color (6-digit hex, for example */
|
|
1367
|
+
backgroundColor?: string;
|
|
1368
|
+
/** Branding accent color (6-digit hex, for example */
|
|
1369
|
+
accentColor?: string;
|
|
1370
|
+
/** Connector implementation type for full configuration. Known types: api-key, discord, github, linear, linq, microsoft-entra, oauth, photon, salesforce, sendblue, slack, snowflake, snowflake-wif. Optional when service and connectionMethod select the type. */
|
|
1371
|
+
type?: string;
|
|
1372
|
+
/** Service slug or URL for which the connector is used. Required when connectionMethod is set. Service alone does not enable preset configuration. */
|
|
1373
|
+
service?: string;
|
|
1374
|
+
/** Connection method slug of the service. Use it with service to select preset configuration. */
|
|
1375
|
+
connectionMethod?: string;
|
|
1376
|
+
/** Values for the selected connection method's template fields. Requires connectionMethod. */
|
|
1377
|
+
params?: CreateConnectorRequestParamsMap;
|
|
1378
|
+
/** Which of the service's targets this connector is for. Requires \"connectionMethod\" and must be one that method serves. Optional. */
|
|
1379
|
+
target?: string;
|
|
1380
|
+
/** Optional team-scoped unique identifier for the connector. If omitted or empty, Connect generates a value. */
|
|
1381
|
+
uid?: string;
|
|
1382
|
+
/** Connector name. The value is trimmed and cannot contain control characters. If omitted or empty, the project name is used. A name or projectId is required. API key connectors require name. */
|
|
1383
|
+
name?: string;
|
|
1384
|
+
/** Project to connect during creation. If environments is omitted, the connection uses development, preview, and production. */
|
|
1385
|
+
projectId?: string;
|
|
1386
|
+
/** Environments for the project connection. Requires projectId. Use one or more built-in environment names or stable custom environment IDs that belong to the project. Duplicate values are accepted and removed. */
|
|
1387
|
+
environments?: CreateConnectorRequestEnvironmentsList;
|
|
1388
|
+
/** Whether the triggers are enabled for this connector. */
|
|
1389
|
+
triggers?: boolean;
|
|
1390
|
+
/** Initial trigger destination. Requires triggers to be enabled and a projectId here or at the top level. Connector responses expose the resulting set as triggerDestinations. Replace the complete set with PATCH /v1/connect/connectors/{connector}/trigger-destinations. */
|
|
1391
|
+
triggerDestination?: CreateConnectorRequestTriggerDestination;
|
|
1392
|
+
/** Default trigger events for this connector. */
|
|
1393
|
+
events?: CreateConnectorRequestEventsList;
|
|
1394
|
+
}
|
|
1395
|
+
export const CreateConnectorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1396
|
+
S.Struct({
|
|
1397
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
1398
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
1399
|
+
data: ConnectConnectorCreateData,
|
|
1400
|
+
icon: S.optional(S.String),
|
|
1401
|
+
backgroundColor: S.optional(S.String),
|
|
1402
|
+
accentColor: S.optional(S.String),
|
|
1403
|
+
type: S.optional(S.String),
|
|
1404
|
+
service: S.optional(S.String),
|
|
1405
|
+
connectionMethod: S.optional(S.String),
|
|
1406
|
+
params: S.optional(CreateConnectorRequestParamsMap),
|
|
1407
|
+
target: S.optional(S.String),
|
|
1408
|
+
uid: S.optional(S.String),
|
|
1409
|
+
name: S.optional(S.String),
|
|
1410
|
+
projectId: S.optional(S.String),
|
|
1411
|
+
environments: S.optional(CreateConnectorRequestEnvironmentsList),
|
|
1412
|
+
triggers: S.optional(S.Boolean),
|
|
1413
|
+
triggerDestination: S.optional(CreateConnectorRequestTriggerDestination),
|
|
1414
|
+
events: S.optional(CreateConnectorRequestEventsList),
|
|
1415
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/connect/connectors", code: 200 })),
|
|
1416
|
+
).annotate({
|
|
1417
|
+
identifier: "CreateConnectorRequest",
|
|
1418
|
+
}) as any as S.Schema<CreateConnectorRequest>;
|
|
1419
|
+
|
|
1420
|
+
/** Principal kind. */
|
|
1421
|
+
export type ConnectConnectorCreateResultCreatedByCase0Type = "user";
|
|
1422
|
+
export const ConnectConnectorCreateResultCreatedByCase0Type = S.String;
|
|
1423
|
+
|
|
1424
|
+
/** Principal that originally created the connector — either a Vercel user (interactive dashboard / CLI flow) or a Vercel deployment (OIDC-authenticated project, used by runtime auto-provisioning). See {@link ConnexPrincipal}. Optional: pre-existing rows from before this shape was introduced may carry no attribution at all. */
|
|
1425
|
+
export interface ConnectConnectorCreateResultCreatedByCase0 {
|
|
1426
|
+
/** Principal kind. */
|
|
1427
|
+
type: ConnectConnectorCreateResultCreatedByCase0Type;
|
|
1428
|
+
/** Vercel user ID. */
|
|
1429
|
+
id: string;
|
|
1430
|
+
}
|
|
1431
|
+
export const ConnectConnectorCreateResultCreatedByCase0 =
|
|
1432
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1433
|
+
S.Struct({
|
|
1434
|
+
type: ConnectConnectorCreateResultCreatedByCase0Type,
|
|
1435
|
+
id: S.String,
|
|
1436
|
+
}),
|
|
1437
|
+
).annotate({
|
|
1438
|
+
identifier: "ConnectConnectorCreateResultCreatedByCase0",
|
|
1439
|
+
}) as any as S.Schema<ConnectConnectorCreateResultCreatedByCase0>;
|
|
1440
|
+
|
|
1441
|
+
/** Principal kind. */
|
|
1442
|
+
export type ConnectConnectorCreateResultCreatedByCase1Type = "project";
|
|
1443
|
+
export const ConnectConnectorCreateResultCreatedByCase1Type = S.String;
|
|
1444
|
+
|
|
1445
|
+
export type ConnectConnectorCreateResultCreatedByCase1EnvironmentCase1 =
|
|
1446
|
+
| "development"
|
|
1447
|
+
| "preview"
|
|
1448
|
+
| "production";
|
|
1449
|
+
export const ConnectConnectorCreateResultCreatedByCase1EnvironmentCase1 =
|
|
1450
|
+
S.String;
|
|
1451
|
+
|
|
1452
|
+
/** Deployment environment of the project principal. */
|
|
1453
|
+
export type ConnectConnectorCreateResultCreatedByCase1Environment =
|
|
1454
|
+
| string
|
|
1455
|
+
| ConnectConnectorCreateResultCreatedByCase1EnvironmentCase1;
|
|
1456
|
+
export const ConnectConnectorCreateResultCreatedByCase1Environment =
|
|
1457
|
+
S.Unknown as any as S.Schema<ConnectConnectorCreateResultCreatedByCase1Environment>;
|
|
1458
|
+
|
|
1459
|
+
/** Principal that originally created the connector — either a Vercel user (interactive dashboard / CLI flow) or a Vercel deployment (OIDC-authenticated project, used by runtime auto-provisioning). See {@link ConnexPrincipal}. Optional: pre-existing rows from before this shape was introduced may carry no attribution at all. */
|
|
1460
|
+
export interface ConnectConnectorCreateResultCreatedByCase1 {
|
|
1461
|
+
/** Principal kind. */
|
|
1462
|
+
type: ConnectConnectorCreateResultCreatedByCase1Type;
|
|
1463
|
+
/** Vercel project ID. */
|
|
1464
|
+
id: string;
|
|
1465
|
+
/** Deployment environment of the project principal. */
|
|
1466
|
+
environment: ConnectConnectorCreateResultCreatedByCase1Environment;
|
|
1467
|
+
}
|
|
1468
|
+
export const ConnectConnectorCreateResultCreatedByCase1 =
|
|
1469
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1470
|
+
S.Struct({
|
|
1471
|
+
type: ConnectConnectorCreateResultCreatedByCase1Type,
|
|
1472
|
+
id: S.String,
|
|
1473
|
+
environment: ConnectConnectorCreateResultCreatedByCase1Environment,
|
|
1474
|
+
}),
|
|
1475
|
+
).annotate({
|
|
1476
|
+
identifier: "ConnectConnectorCreateResultCreatedByCase1",
|
|
1477
|
+
}) as any as S.Schema<ConnectConnectorCreateResultCreatedByCase1>;
|
|
1478
|
+
|
|
1479
|
+
/** Principal that created the connector. */
|
|
1480
|
+
export type ConnectConnectorCreateResultCreatedBy =
|
|
1481
|
+
| ConnectConnectorCreateResultCreatedByCase0
|
|
1482
|
+
| ConnectConnectorCreateResultCreatedByCase1;
|
|
1483
|
+
export const ConnectConnectorCreateResultCreatedBy =
|
|
1484
|
+
S.Unknown as any as S.Schema<ConnectConnectorCreateResultCreatedBy>;
|
|
1485
|
+
|
|
1486
|
+
/** Principal kind. */
|
|
1487
|
+
export type ConnectConnectorCreateResultUpdatedByCase0Type = "user";
|
|
1488
|
+
export const ConnectConnectorCreateResultUpdatedByCase0Type = S.String;
|
|
1489
|
+
|
|
1490
|
+
/** Principal that most recently mutated the connector. Same shape as {@link createdBy} but tracks the most recent updater, not the original creator. At create time the two fields point at the same principal; they diverge on the first subsequent update. */
|
|
1491
|
+
export interface ConnectConnectorCreateResultUpdatedByCase0 {
|
|
1492
|
+
/** Principal kind. */
|
|
1493
|
+
type: ConnectConnectorCreateResultUpdatedByCase0Type;
|
|
1494
|
+
/** Vercel user ID. */
|
|
1495
|
+
id: string;
|
|
1496
|
+
}
|
|
1497
|
+
export const ConnectConnectorCreateResultUpdatedByCase0 =
|
|
1498
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1499
|
+
S.Struct({
|
|
1500
|
+
type: ConnectConnectorCreateResultUpdatedByCase0Type,
|
|
1501
|
+
id: S.String,
|
|
1502
|
+
}),
|
|
1503
|
+
).annotate({
|
|
1504
|
+
identifier: "ConnectConnectorCreateResultUpdatedByCase0",
|
|
1505
|
+
}) as any as S.Schema<ConnectConnectorCreateResultUpdatedByCase0>;
|
|
1506
|
+
|
|
1507
|
+
/** Principal kind. */
|
|
1508
|
+
export type ConnectConnectorCreateResultUpdatedByCase1Type = "project";
|
|
1509
|
+
export const ConnectConnectorCreateResultUpdatedByCase1Type = S.String;
|
|
1510
|
+
|
|
1511
|
+
export type ConnectConnectorCreateResultUpdatedByCase1EnvironmentCase1 =
|
|
1512
|
+
| "development"
|
|
1513
|
+
| "preview"
|
|
1514
|
+
| "production";
|
|
1515
|
+
export const ConnectConnectorCreateResultUpdatedByCase1EnvironmentCase1 =
|
|
1516
|
+
S.String;
|
|
1517
|
+
|
|
1518
|
+
/** Deployment environment of the project principal. */
|
|
1519
|
+
export type ConnectConnectorCreateResultUpdatedByCase1Environment =
|
|
1520
|
+
| string
|
|
1521
|
+
| ConnectConnectorCreateResultUpdatedByCase1EnvironmentCase1;
|
|
1522
|
+
export const ConnectConnectorCreateResultUpdatedByCase1Environment =
|
|
1523
|
+
S.Unknown as any as S.Schema<ConnectConnectorCreateResultUpdatedByCase1Environment>;
|
|
1524
|
+
|
|
1525
|
+
/** Principal that most recently mutated the connector. Same shape as {@link createdBy} but tracks the most recent updater, not the original creator. At create time the two fields point at the same principal; they diverge on the first subsequent update. */
|
|
1526
|
+
export interface ConnectConnectorCreateResultUpdatedByCase1 {
|
|
1527
|
+
/** Principal kind. */
|
|
1528
|
+
type: ConnectConnectorCreateResultUpdatedByCase1Type;
|
|
1529
|
+
/** Vercel project ID. */
|
|
1530
|
+
id: string;
|
|
1531
|
+
/** Deployment environment of the project principal. */
|
|
1532
|
+
environment: ConnectConnectorCreateResultUpdatedByCase1Environment;
|
|
1533
|
+
}
|
|
1534
|
+
export const ConnectConnectorCreateResultUpdatedByCase1 =
|
|
1535
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1536
|
+
S.Struct({
|
|
1537
|
+
type: ConnectConnectorCreateResultUpdatedByCase1Type,
|
|
1538
|
+
id: S.String,
|
|
1539
|
+
environment: ConnectConnectorCreateResultUpdatedByCase1Environment,
|
|
1540
|
+
}),
|
|
1541
|
+
).annotate({
|
|
1542
|
+
identifier: "ConnectConnectorCreateResultUpdatedByCase1",
|
|
1543
|
+
}) as any as S.Schema<ConnectConnectorCreateResultUpdatedByCase1>;
|
|
1544
|
+
|
|
1545
|
+
/** Principal that most recently updated the connector. */
|
|
1546
|
+
export type ConnectConnectorCreateResultUpdatedBy =
|
|
1547
|
+
| ConnectConnectorCreateResultUpdatedByCase0
|
|
1548
|
+
| ConnectConnectorCreateResultUpdatedByCase1;
|
|
1549
|
+
export const ConnectConnectorCreateResultUpdatedBy =
|
|
1550
|
+
S.Unknown as any as S.Schema<ConnectConnectorCreateResultUpdatedBy>;
|
|
1551
|
+
|
|
1552
|
+
/** How the connector row was originally created. New create paths stamp this explicitly; older rows may omit it. */
|
|
1553
|
+
export type ConnectConnectorCreateResultCreationMode = "managed" | "manual";
|
|
1554
|
+
export const ConnectConnectorCreateResultCreationMode = S.String;
|
|
1555
|
+
|
|
1556
|
+
/** Managed connector metadata exposed without leaking the manager connector or installation identifiers. */
|
|
1557
|
+
export interface ConnectConnectorCreateResultManaged {
|
|
1558
|
+
/** Whether Vercel synchronizes provider-side configuration. */
|
|
1559
|
+
sync?: boolean;
|
|
1560
|
+
}
|
|
1561
|
+
export const ConnectConnectorCreateResultManaged = /*@__PURE__*/ S.suspend(() =>
|
|
1562
|
+
S.Struct({
|
|
1563
|
+
sync: S.optional(S.Boolean),
|
|
1564
|
+
}),
|
|
1565
|
+
).annotate({
|
|
1566
|
+
identifier: "ConnectConnectorCreateResultManaged",
|
|
1567
|
+
}) as any as S.Schema<ConnectConnectorCreateResultManaged>;
|
|
1568
|
+
|
|
1569
|
+
/** Connector implementation type. */
|
|
1570
|
+
export type ConnectConnectorCreateResultType =
|
|
1571
|
+
| "api-key"
|
|
1572
|
+
| "custom"
|
|
1573
|
+
| "discord"
|
|
1574
|
+
| "github"
|
|
1575
|
+
| "linear"
|
|
1576
|
+
| "linq"
|
|
1577
|
+
| "microsoft-entra"
|
|
1578
|
+
| "microsoft-teams"
|
|
1579
|
+
| "oauth"
|
|
1580
|
+
| "photon"
|
|
1581
|
+
| "salesforce"
|
|
1582
|
+
| "sendblue"
|
|
1583
|
+
| "slack"
|
|
1584
|
+
| "snowflake"
|
|
1585
|
+
| "snowflake-wif";
|
|
1586
|
+
export const ConnectConnectorCreateResultType = S.String;
|
|
1587
|
+
|
|
1588
|
+
/** Token subject types supported by the connector. */
|
|
1589
|
+
export type ConnectConnectorCreateResultSupportedSubjectTypesList =
|
|
1590
|
+
Array<string>;
|
|
1591
|
+
export const ConnectConnectorCreateResultSupportedSubjectTypesList =
|
|
1592
|
+
/*@__PURE__*/ S.Array(
|
|
1593
|
+
S.String,
|
|
1594
|
+
) as any as S.Schema<ConnectConnectorCreateResultSupportedSubjectTypesList>;
|
|
1595
|
+
|
|
1596
|
+
/** Known allowed app-level scopes. For Slack this is the bot scope set configured on the app; for OAuth it is the connector's enabled `clientCredentials.scopes` configuration. */
|
|
1597
|
+
export type ConnectConnectorCreateResultAppTokensScopesList = Array<string>;
|
|
1598
|
+
export const ConnectConnectorCreateResultAppTokensScopesList =
|
|
1599
|
+
/*@__PURE__*/ S.Array(
|
|
1600
|
+
S.String,
|
|
1601
|
+
) as any as S.Schema<ConnectConnectorCreateResultAppTokensScopesList>;
|
|
1602
|
+
|
|
1603
|
+
/** Supported OAuth authorization-detail type names. */
|
|
1604
|
+
export type ConnectConnectorCreateResultAppTokensSupportedAuthorizationDetailsList =
|
|
1605
|
+
Array<string>;
|
|
1606
|
+
export const ConnectConnectorCreateResultAppTokensSupportedAuthorizationDetailsList =
|
|
1607
|
+
/*@__PURE__*/ S.Array(
|
|
1608
|
+
S.String,
|
|
1609
|
+
) as any as S.Schema<ConnectConnectorCreateResultAppTokensSupportedAuthorizationDetailsList>;
|
|
1610
|
+
|
|
1611
|
+
/** App-token capabilities and known grants for the connector. */
|
|
1612
|
+
export interface ConnectConnectorCreateResultAppTokens {
|
|
1613
|
+
/** Whether one app token can be used across installations. */
|
|
1614
|
+
crossInstallation: boolean;
|
|
1615
|
+
/** Whether callers can narrow app-token grants per request. */
|
|
1616
|
+
supportsRefinement: boolean;
|
|
1617
|
+
/** True when changing app token grants requires reinstalling the app, so tokens cannot be partitioned independently by requester environment. */
|
|
1618
|
+
requiresReinstallation?: boolean;
|
|
1619
|
+
/** Known allowed app-level scopes. For Slack this is the bot scope set configured on the app; for OAuth it is the connector's enabled `clientCredentials.scopes` configuration. */
|
|
1620
|
+
scopes?: ConnectConnectorCreateResultAppTokensScopesList;
|
|
1621
|
+
/** Supported OAuth authorization-detail type names. */
|
|
1622
|
+
supportedAuthorizationDetails?: ConnectConnectorCreateResultAppTokensSupportedAuthorizationDetailsList;
|
|
1623
|
+
/** Link to the page on the service where this connector's app-level permissions are declared and granted, when the service has one and it differs from `clientUrl`. */
|
|
1624
|
+
permissionsUrl?: string;
|
|
1625
|
+
}
|
|
1626
|
+
export const ConnectConnectorCreateResultAppTokens = /*@__PURE__*/ S.suspend(
|
|
1627
|
+
() =>
|
|
1628
|
+
S.Struct({
|
|
1629
|
+
crossInstallation: S.Boolean,
|
|
1630
|
+
supportsRefinement: S.Boolean,
|
|
1631
|
+
requiresReinstallation: S.optional(S.Boolean),
|
|
1632
|
+
scopes: S.optional(ConnectConnectorCreateResultAppTokensScopesList),
|
|
1633
|
+
supportedAuthorizationDetails: S.optional(
|
|
1634
|
+
ConnectConnectorCreateResultAppTokensSupportedAuthorizationDetailsList,
|
|
1635
|
+
),
|
|
1636
|
+
permissionsUrl: S.optional(S.String),
|
|
1637
|
+
}),
|
|
1638
|
+
).annotate({
|
|
1639
|
+
identifier: "ConnectConnectorCreateResultAppTokens",
|
|
1640
|
+
}) as any as S.Schema<ConnectConnectorCreateResultAppTokens>;
|
|
1641
|
+
|
|
1642
|
+
/** Known allowed user-level scopes. For Slack this is the user scope set configured on the app; for OAuth it is the connector's enabled `userAuthorization.scopes` configuration. */
|
|
1643
|
+
export type ConnectConnectorCreateResultUserTokensScopesList = Array<string>;
|
|
1644
|
+
export const ConnectConnectorCreateResultUserTokensScopesList =
|
|
1645
|
+
/*@__PURE__*/ S.Array(
|
|
1646
|
+
S.String,
|
|
1647
|
+
) as any as S.Schema<ConnectConnectorCreateResultUserTokensScopesList>;
|
|
1648
|
+
|
|
1649
|
+
/** Supported OAuth authorization-detail type names. */
|
|
1650
|
+
export type ConnectConnectorCreateResultUserTokensSupportedAuthorizationDetailsList =
|
|
1651
|
+
Array<string>;
|
|
1652
|
+
export const ConnectConnectorCreateResultUserTokensSupportedAuthorizationDetailsList =
|
|
1653
|
+
/*@__PURE__*/ S.Array(
|
|
1654
|
+
S.String,
|
|
1655
|
+
) as any as S.Schema<ConnectConnectorCreateResultUserTokensSupportedAuthorizationDetailsList>;
|
|
1656
|
+
|
|
1657
|
+
/** User-token capabilities and known grants for the connector. */
|
|
1658
|
+
export interface ConnectConnectorCreateResultUserTokens {
|
|
1659
|
+
/** Whether one user token can be used across installations. */
|
|
1660
|
+
crossInstallation: boolean;
|
|
1661
|
+
/** Whether callers can narrow user-token grants per request. */
|
|
1662
|
+
supportsRefinement: boolean;
|
|
1663
|
+
/** Known allowed user-level scopes. For Slack this is the user scope set configured on the app; for OAuth it is the connector's enabled `userAuthorization.scopes` configuration. */
|
|
1664
|
+
scopes?: ConnectConnectorCreateResultUserTokensScopesList;
|
|
1665
|
+
/** Supported OAuth authorization-detail type names. */
|
|
1666
|
+
supportedAuthorizationDetails?: ConnectConnectorCreateResultUserTokensSupportedAuthorizationDetailsList;
|
|
1667
|
+
/** User authorization is completed by the Connect consent screen submitting a credential instead of an OAuth redirect. */
|
|
1668
|
+
manualCredentialInput?: boolean;
|
|
1669
|
+
}
|
|
1670
|
+
export const ConnectConnectorCreateResultUserTokens = /*@__PURE__*/ S.suspend(
|
|
1671
|
+
() =>
|
|
1672
|
+
S.Struct({
|
|
1673
|
+
crossInstallation: S.Boolean,
|
|
1674
|
+
supportsRefinement: S.Boolean,
|
|
1675
|
+
scopes: S.optional(ConnectConnectorCreateResultUserTokensScopesList),
|
|
1676
|
+
supportedAuthorizationDetails: S.optional(
|
|
1677
|
+
ConnectConnectorCreateResultUserTokensSupportedAuthorizationDetailsList,
|
|
1678
|
+
),
|
|
1679
|
+
manualCredentialInput: S.optional(S.Boolean),
|
|
1680
|
+
}),
|
|
1681
|
+
).annotate({
|
|
1682
|
+
identifier: "ConnectConnectorCreateResultUserTokens",
|
|
1683
|
+
}) as any as S.Schema<ConnectConnectorCreateResultUserTokens>;
|
|
1684
|
+
|
|
1685
|
+
/** Incoming trigger configuration. Only present when enabled. */
|
|
1686
|
+
export interface ConnectTriggerConfiguration {
|
|
1687
|
+
/** Whether incoming triggers are enabled for the connector. */
|
|
1688
|
+
enabled: boolean;
|
|
1689
|
+
}
|
|
1690
|
+
export const ConnectTriggerConfiguration = /*@__PURE__*/ S.suspend(() =>
|
|
1691
|
+
S.Struct({
|
|
1692
|
+
enabled: S.Boolean,
|
|
1693
|
+
}),
|
|
1694
|
+
).annotate({
|
|
1695
|
+
identifier: "ConnectTriggerConfiguration",
|
|
1696
|
+
}) as any as S.Schema<ConnectTriggerConfiguration>;
|
|
1697
|
+
|
|
1698
|
+
/** Known events this connector subscribes to (e.g. Slack bot events, GitHub webhook events). Names are type-specific and validated by the managed-create flow when forwarded to the third-party service. */
|
|
1699
|
+
export type ConnectConnectorCreateResultEventsList = Array<string>;
|
|
1700
|
+
export const ConnectConnectorCreateResultEventsList = /*@__PURE__*/ S.Array(
|
|
1701
|
+
S.String,
|
|
1702
|
+
) as any as S.Schema<ConnectConnectorCreateResultEventsList>;
|
|
1703
|
+
|
|
1704
|
+
/** Destinations that incoming triggers should be forwarded to. Limited to 3 entries. Set the initial destination with `triggerDestination` during creation. Replace the complete set with `PATCH /v1/connect/connectors/{connector}/trigger-destinations`. */
|
|
1705
|
+
export interface ConnectTriggerDestination {
|
|
1706
|
+
/** Vercel project that receives matching trigger requests. */
|
|
1707
|
+
projectId: string;
|
|
1708
|
+
/** Stable custom-environment ID to route this destination to. Mutually exclusive with `branch`; omitted destinations keep the legacy production behavior. */
|
|
1709
|
+
customEnvironmentId?: string;
|
|
1710
|
+
/** Git branch used to select a preview deployment. */
|
|
1711
|
+
branch?: string;
|
|
1712
|
+
/** Route path that receives the forwarded trigger request. */
|
|
1713
|
+
path?: string;
|
|
1714
|
+
}
|
|
1715
|
+
export const ConnectTriggerDestination = /*@__PURE__*/ S.suspend(() =>
|
|
1716
|
+
S.Struct({
|
|
1717
|
+
projectId: S.String,
|
|
1718
|
+
customEnvironmentId: S.optional(S.String),
|
|
1719
|
+
branch: S.optional(S.String),
|
|
1720
|
+
path: S.optional(S.String),
|
|
1721
|
+
}),
|
|
1722
|
+
).annotate({
|
|
1723
|
+
identifier: "ConnectTriggerDestination",
|
|
1724
|
+
}) as any as S.Schema<ConnectTriggerDestination>;
|
|
1725
|
+
|
|
1726
|
+
/** Destinations that incoming triggers should be forwarded to. Limited to 3 entries. Set the initial destination with `triggerDestination` during creation. Replace the complete set with `PATCH /v1/connect/connectors/{connector}/trigger-destinations`. */
|
|
1727
|
+
export type ConnectConnectorCreateResultTriggerDestinationsList =
|
|
1728
|
+
Array<ConnectTriggerDestination>;
|
|
1729
|
+
export const ConnectConnectorCreateResultTriggerDestinationsList =
|
|
1730
|
+
/*@__PURE__*/ S.Array(
|
|
1731
|
+
ConnectTriggerDestination,
|
|
1732
|
+
) as any as S.Schema<ConnectConnectorCreateResultTriggerDestinationsList>;
|
|
1733
|
+
|
|
1734
|
+
/** Connector created by the request. */
|
|
1735
|
+
export interface ConnectConnectorCreateResult {
|
|
1736
|
+
/** Stable `scl_` connector ID. Use this value directly in `{connector}`. */
|
|
1737
|
+
id: string;
|
|
1738
|
+
/** Team-scoped UID. URL-encode this value before using it in `{connector}`. */
|
|
1739
|
+
uid: string;
|
|
1740
|
+
/** Installation used when a token request does not specify an installation. */
|
|
1741
|
+
defaultInstallationId?: string;
|
|
1742
|
+
/** Creation time in epoch milliseconds. */
|
|
1743
|
+
createdAt: number;
|
|
1744
|
+
/** Last update time in epoch milliseconds. */
|
|
1745
|
+
updatedAt: number;
|
|
1746
|
+
/** Time when this connector started requiring reinstallation because an installation-affecting app-token grant changed. */
|
|
1747
|
+
reinstallAt?: number;
|
|
1748
|
+
/** Principal that created the connector. */
|
|
1749
|
+
createdBy?: ConnectConnectorCreateResultCreatedBy;
|
|
1750
|
+
/** Principal that most recently updated the connector. */
|
|
1751
|
+
updatedBy?: ConnectConnectorCreateResultUpdatedBy;
|
|
1752
|
+
/** How the connector row was originally created. New create paths stamp this explicitly; older rows may omit it. */
|
|
1753
|
+
creationMode?: ConnectConnectorCreateResultCreationMode;
|
|
1754
|
+
/** Managed connector metadata exposed without leaking the manager connector or installation identifiers. */
|
|
1755
|
+
managed?: ConnectConnectorCreateResultManaged;
|
|
1756
|
+
/** Connector implementation type. */
|
|
1757
|
+
type: ConnectConnectorCreateResultType;
|
|
1758
|
+
/** Best-effort identifier of the third-party service this connector represents, independent of `type`. Examples: `'slack'`, `'mcp.linear.app'`, and `'auth.example.com'`. Always present in API responses. */
|
|
1759
|
+
service: string;
|
|
1760
|
+
/** The connection method this connector was created from, when the create request named one. */
|
|
1761
|
+
connectionMethod?: string;
|
|
1762
|
+
/** Which of the service's products/surfaces this connector points at. */
|
|
1763
|
+
target?: string;
|
|
1764
|
+
/** Connector name within the owning team. */
|
|
1765
|
+
name: string;
|
|
1766
|
+
/** Human-readable connector name. */
|
|
1767
|
+
displayName: string;
|
|
1768
|
+
/** Provider-side URL for viewing or managing the resource represented by the connector. The destination can be an app, account, phone line, or service instance, depending on the connector type. */
|
|
1769
|
+
clientUrl?: string | null;
|
|
1770
|
+
/** Redirect URI registered with the third-party service for this connector, if any. Used by `startAuthorization`/`startInstallation` to replay the exact URI back to the provider's token endpoint. Absent on connectors created before this field was introduced; those callers fall back to the `https://connect.vercel.com/callback` default. */
|
|
1771
|
+
redirectUri?: string;
|
|
1772
|
+
/** Human-readable name of the connector type. */
|
|
1773
|
+
typeName: string;
|
|
1774
|
+
/** Icon identifier supplied by the connector type. */
|
|
1775
|
+
typeIcon?: string;
|
|
1776
|
+
/** Public website for the connected service. */
|
|
1777
|
+
website?: string;
|
|
1778
|
+
/** Developer website for the connected service. */
|
|
1779
|
+
devsite?: string;
|
|
1780
|
+
/** Developer documentation for the connected service. */
|
|
1781
|
+
docsite?: string;
|
|
1782
|
+
/** Connector branding icon. SHA-1 hash that resolves to the uploaded icon through the Vercel avatar service. Consumers render this with `https://vercel.com/api/www/avatar/{icon}`. */
|
|
1783
|
+
icon?: string;
|
|
1784
|
+
/** Hex background color (e.g., `#000000`) for branding. */
|
|
1785
|
+
backgroundColor?: string;
|
|
1786
|
+
/** Hex accent color (e.g., `#000000`) for branding. */
|
|
1787
|
+
accentColor?: string;
|
|
1788
|
+
/** Token subject types supported by the connector. */
|
|
1789
|
+
supportedSubjectTypes: ConnectConnectorCreateResultSupportedSubjectTypesList;
|
|
1790
|
+
/** App-token capabilities and known grants for the connector. */
|
|
1791
|
+
appTokens?: ConnectConnectorCreateResultAppTokens;
|
|
1792
|
+
/** User-token capabilities and known grants for the connector. */
|
|
1793
|
+
userTokens?: ConnectConnectorCreateResultUserTokens;
|
|
1794
|
+
/** Whether the connector supports an installation flow. */
|
|
1795
|
+
supportsInstallation: boolean;
|
|
1796
|
+
/** Whether Connect can revoke tokens for this connector. */
|
|
1797
|
+
supportsRevocation: boolean;
|
|
1798
|
+
/** Whether this connector type supports trigger webhooks. Derived from the type definition; indicates that `triggers` and `triggerDestinations` may be meaningful for this connector. */
|
|
1799
|
+
supportsTriggers: boolean;
|
|
1800
|
+
/** Whether the connector icon can propagate to the provider. */
|
|
1801
|
+
supportsIcon: unknown;
|
|
1802
|
+
/** Incoming trigger configuration for the connector. */
|
|
1803
|
+
triggers?: ConnectTriggerConfiguration;
|
|
1804
|
+
/** Known events this connector subscribes to (e.g. Slack bot events, GitHub webhook events). Names are type-specific and validated by the managed-create flow when forwarded to the third-party service. */
|
|
1805
|
+
events?: ConnectConnectorCreateResultEventsList;
|
|
1806
|
+
/** Destinations that incoming triggers should be forwarded to. Limited to 3 entries. Set the initial destination with `triggerDestination` during creation. Replace the complete set with `PATCH /v1/connect/connectors/{connector}/trigger-destinations`. */
|
|
1807
|
+
triggerDestinations?: ConnectConnectorCreateResultTriggerDestinationsList;
|
|
1808
|
+
}
|
|
1809
|
+
export const ConnectConnectorCreateResult = /*@__PURE__*/ S.suspend(() =>
|
|
1810
|
+
S.Struct({
|
|
1811
|
+
id: S.String,
|
|
1812
|
+
uid: S.String,
|
|
1813
|
+
defaultInstallationId: S.optional(S.String),
|
|
1814
|
+
createdAt: S.Number,
|
|
1815
|
+
updatedAt: S.Number,
|
|
1816
|
+
reinstallAt: S.optional(S.Number),
|
|
1817
|
+
createdBy: S.optional(ConnectConnectorCreateResultCreatedBy),
|
|
1818
|
+
updatedBy: S.optional(ConnectConnectorCreateResultUpdatedBy),
|
|
1819
|
+
creationMode: S.optional(ConnectConnectorCreateResultCreationMode),
|
|
1820
|
+
managed: S.optional(ConnectConnectorCreateResultManaged),
|
|
1821
|
+
type: ConnectConnectorCreateResultType,
|
|
1822
|
+
service: S.String,
|
|
1823
|
+
connectionMethod: S.optional(S.String),
|
|
1824
|
+
target: S.optional(S.String),
|
|
1825
|
+
name: S.String,
|
|
1826
|
+
displayName: S.String,
|
|
1827
|
+
clientUrl: S.optional(S.NullOr(S.String)),
|
|
1828
|
+
redirectUri: S.optional(S.String),
|
|
1829
|
+
typeName: S.String,
|
|
1830
|
+
typeIcon: S.optional(S.String),
|
|
1831
|
+
website: S.optional(S.String),
|
|
1832
|
+
devsite: S.optional(S.String),
|
|
1833
|
+
docsite: S.optional(S.String),
|
|
1834
|
+
icon: S.optional(S.String),
|
|
1835
|
+
backgroundColor: S.optional(S.String),
|
|
1836
|
+
accentColor: S.optional(S.String),
|
|
1837
|
+
supportedSubjectTypes:
|
|
1838
|
+
ConnectConnectorCreateResultSupportedSubjectTypesList,
|
|
1839
|
+
appTokens: S.optional(ConnectConnectorCreateResultAppTokens),
|
|
1840
|
+
userTokens: S.optional(ConnectConnectorCreateResultUserTokens),
|
|
1841
|
+
supportsInstallation: S.Boolean,
|
|
1842
|
+
supportsRevocation: S.Boolean,
|
|
1843
|
+
supportsTriggers: S.Boolean,
|
|
1844
|
+
supportsIcon: S.Unknown,
|
|
1845
|
+
triggers: S.optional(ConnectTriggerConfiguration),
|
|
1846
|
+
events: S.optional(ConnectConnectorCreateResultEventsList),
|
|
1847
|
+
triggerDestinations: S.optional(
|
|
1848
|
+
ConnectConnectorCreateResultTriggerDestinationsList,
|
|
1849
|
+
),
|
|
1850
|
+
}),
|
|
1851
|
+
).annotate({
|
|
1852
|
+
identifier: "ConnectConnectorCreateResult",
|
|
1853
|
+
}) as any as S.Schema<ConnectConnectorCreateResult>;
|
|
1854
|
+
|
|
1855
|
+
export type CreateConnectorAuthorizationRequestRequestSubjectCase0Type = "app";
|
|
1856
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase0Type =
|
|
1857
|
+
S.String;
|
|
1858
|
+
|
|
1859
|
+
export interface CreateConnectorAuthorizationRequestRequestSubjectCase0 {
|
|
1860
|
+
type: CreateConnectorAuthorizationRequestRequestSubjectCase0Type;
|
|
1861
|
+
}
|
|
1862
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase0 =
|
|
1863
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1864
|
+
S.Struct({
|
|
1865
|
+
type: CreateConnectorAuthorizationRequestRequestSubjectCase0Type,
|
|
1866
|
+
}),
|
|
1867
|
+
).annotate({
|
|
1868
|
+
identifier: "CreateConnectorAuthorizationRequestRequestSubjectCase0",
|
|
1869
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestRequestSubjectCase0>;
|
|
1870
|
+
|
|
1871
|
+
export type CreateConnectorAuthorizationRequestRequestSubjectCase1Type = "user";
|
|
1872
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase1Type =
|
|
1873
|
+
S.String;
|
|
1874
|
+
|
|
1875
|
+
export interface CreateConnectorAuthorizationRequestRequestSubjectCase1 {
|
|
1876
|
+
type: CreateConnectorAuthorizationRequestRequestSubjectCase1Type;
|
|
1877
|
+
id?: string;
|
|
1878
|
+
issuer?: string;
|
|
1879
|
+
}
|
|
1880
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase1 =
|
|
1881
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1882
|
+
S.Struct({
|
|
1883
|
+
type: CreateConnectorAuthorizationRequestRequestSubjectCase1Type,
|
|
1884
|
+
id: S.optional(S.String),
|
|
1885
|
+
issuer: S.optional(S.String),
|
|
1886
|
+
}),
|
|
1887
|
+
).annotate({
|
|
1888
|
+
identifier: "CreateConnectorAuthorizationRequestRequestSubjectCase1",
|
|
1889
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestRequestSubjectCase1>;
|
|
1890
|
+
|
|
1891
|
+
export type CreateConnectorAuthorizationRequestRequestSubjectCase2Type =
|
|
1892
|
+
"jwt-bearer";
|
|
1893
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase2Type =
|
|
1894
|
+
S.String;
|
|
1895
|
+
|
|
1896
|
+
export type CreateConnectorAuthorizationRequestRequestSubjectCase2AdditionalClaimsMap =
|
|
1897
|
+
{ [key: string]: unknown | undefined };
|
|
1898
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase2AdditionalClaimsMap =
|
|
1899
|
+
/*@__PURE__*/ S.Record(
|
|
1900
|
+
S.String,
|
|
1901
|
+
S.Unknown,
|
|
1902
|
+
) as any as S.Schema<CreateConnectorAuthorizationRequestRequestSubjectCase2AdditionalClaimsMap>;
|
|
1903
|
+
|
|
1904
|
+
export interface CreateConnectorAuthorizationRequestRequestSubjectCase2 {
|
|
1905
|
+
type: CreateConnectorAuthorizationRequestRequestSubjectCase2Type;
|
|
1906
|
+
sub?: string;
|
|
1907
|
+
iss?: string;
|
|
1908
|
+
aud?: string;
|
|
1909
|
+
additionalClaims?: CreateConnectorAuthorizationRequestRequestSubjectCase2AdditionalClaimsMap;
|
|
1910
|
+
}
|
|
1911
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase2 =
|
|
1912
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1913
|
+
S.Struct({
|
|
1914
|
+
type: CreateConnectorAuthorizationRequestRequestSubjectCase2Type,
|
|
1915
|
+
sub: S.optional(S.String),
|
|
1916
|
+
iss: S.optional(S.String),
|
|
1917
|
+
aud: S.optional(S.String),
|
|
1918
|
+
additionalClaims: S.optional(
|
|
1919
|
+
CreateConnectorAuthorizationRequestRequestSubjectCase2AdditionalClaimsMap,
|
|
1920
|
+
),
|
|
1921
|
+
}),
|
|
1922
|
+
).annotate({
|
|
1923
|
+
identifier: "CreateConnectorAuthorizationRequestRequestSubjectCase2",
|
|
1924
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestRequestSubjectCase2>;
|
|
1925
|
+
|
|
1926
|
+
export type CreateConnectorAuthorizationRequestRequestSubjectCase3Type =
|
|
1927
|
+
"token";
|
|
1928
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase3Type =
|
|
1929
|
+
S.String;
|
|
1930
|
+
|
|
1931
|
+
export interface CreateConnectorAuthorizationRequestRequestSubjectCase3 {
|
|
1932
|
+
type: CreateConnectorAuthorizationRequestRequestSubjectCase3Type;
|
|
1933
|
+
token: string;
|
|
1934
|
+
}
|
|
1935
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase3 =
|
|
1936
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1937
|
+
S.Struct({
|
|
1938
|
+
type: CreateConnectorAuthorizationRequestRequestSubjectCase3Type,
|
|
1939
|
+
token: S.String,
|
|
1940
|
+
}),
|
|
1941
|
+
).annotate({
|
|
1942
|
+
identifier: "CreateConnectorAuthorizationRequestRequestSubjectCase3",
|
|
1943
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestRequestSubjectCase3>;
|
|
1944
|
+
|
|
1945
|
+
export interface CreateConnectorAuthorizationRequestRequestSubjectCase4 {
|
|
1946
|
+
type: string;
|
|
1947
|
+
}
|
|
1948
|
+
export const CreateConnectorAuthorizationRequestRequestSubjectCase4 =
|
|
1949
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1950
|
+
S.Struct({
|
|
1951
|
+
type: S.String,
|
|
1952
|
+
}),
|
|
1953
|
+
).annotate({
|
|
1954
|
+
identifier: "CreateConnectorAuthorizationRequestRequestSubjectCase4",
|
|
1955
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestRequestSubjectCase4>;
|
|
1956
|
+
|
|
1957
|
+
export type CreateConnectorAuthorizationRequestRequestSubject =
|
|
1958
|
+
| CreateConnectorAuthorizationRequestRequestSubjectCase0
|
|
1959
|
+
| CreateConnectorAuthorizationRequestRequestSubjectCase1
|
|
1960
|
+
| CreateConnectorAuthorizationRequestRequestSubjectCase2
|
|
1961
|
+
| CreateConnectorAuthorizationRequestRequestSubjectCase3
|
|
1962
|
+
| CreateConnectorAuthorizationRequestRequestSubjectCase4;
|
|
1963
|
+
export const CreateConnectorAuthorizationRequestRequestSubject =
|
|
1964
|
+
S.Unknown as any as S.Schema<CreateConnectorAuthorizationRequestRequestSubject>;
|
|
1965
|
+
|
|
1966
|
+
export type CreateConnectorAuthorizationRequestRequestAudienceList =
|
|
1967
|
+
Array<string>;
|
|
1968
|
+
export const CreateConnectorAuthorizationRequestRequestAudienceList =
|
|
1969
|
+
/*@__PURE__*/ S.Array(
|
|
1970
|
+
S.String,
|
|
1971
|
+
) as any as S.Schema<CreateConnectorAuthorizationRequestRequestAudienceList>;
|
|
1972
|
+
|
|
1973
|
+
export type CreateConnectorAuthorizationRequestRequestScopesList =
|
|
1974
|
+
Array<string>;
|
|
1975
|
+
export const CreateConnectorAuthorizationRequestRequestScopesList =
|
|
1976
|
+
/*@__PURE__*/ S.Array(
|
|
1977
|
+
S.String,
|
|
1978
|
+
) as any as S.Schema<CreateConnectorAuthorizationRequestRequestScopesList>;
|
|
1979
|
+
|
|
1980
|
+
export type CreateConnectorAuthorizationRequestRequestResourcesList =
|
|
1981
|
+
Array<string>;
|
|
1982
|
+
export const CreateConnectorAuthorizationRequestRequestResourcesList =
|
|
1983
|
+
/*@__PURE__*/ S.Array(
|
|
1984
|
+
S.String,
|
|
1985
|
+
) as any as S.Schema<CreateConnectorAuthorizationRequestRequestResourcesList>;
|
|
1986
|
+
|
|
1987
|
+
export interface CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem {
|
|
1988
|
+
type?: string;
|
|
1989
|
+
}
|
|
1990
|
+
export const CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem =
|
|
1991
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1992
|
+
S.Struct({
|
|
1993
|
+
type: S.optional(S.String),
|
|
1994
|
+
}),
|
|
1995
|
+
).annotate({
|
|
1996
|
+
identifier:
|
|
1997
|
+
"CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem",
|
|
1998
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem>;
|
|
1999
|
+
|
|
2000
|
+
export type CreateConnectorAuthorizationRequestRequestAuthorizationDetailsList =
|
|
2001
|
+
Array<CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem>;
|
|
2002
|
+
export const CreateConnectorAuthorizationRequestRequestAuthorizationDetailsList =
|
|
2003
|
+
/*@__PURE__*/ S.Array(
|
|
2004
|
+
CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem,
|
|
2005
|
+
) as any as S.Schema<CreateConnectorAuthorizationRequestRequestAuthorizationDetailsList>;
|
|
2006
|
+
|
|
2007
|
+
export type CreateConnectorAuthorizationRequestRequestAdditionalParamsMap = {
|
|
2008
|
+
[key: string]: string | undefined;
|
|
2009
|
+
};
|
|
2010
|
+
export const CreateConnectorAuthorizationRequestRequestAdditionalParamsMap =
|
|
2011
|
+
/*@__PURE__*/ S.Record(
|
|
2012
|
+
S.String,
|
|
2013
|
+
S.String,
|
|
2014
|
+
) as any as S.Schema<CreateConnectorAuthorizationRequestRequestAdditionalParamsMap>;
|
|
2015
|
+
|
|
2016
|
+
export interface CreateConnectorAuthorizationRequestRequest {
|
|
2017
|
+
connector: string;
|
|
2018
|
+
subject?: CreateConnectorAuthorizationRequestRequestSubject;
|
|
2019
|
+
installationId?: string;
|
|
2020
|
+
audience?: CreateConnectorAuthorizationRequestRequestAudienceList;
|
|
2021
|
+
scopes?: CreateConnectorAuthorizationRequestRequestScopesList;
|
|
2022
|
+
resources?: CreateConnectorAuthorizationRequestRequestResourcesList;
|
|
2023
|
+
authorizationDetails?: CreateConnectorAuthorizationRequestRequestAuthorizationDetailsList;
|
|
2024
|
+
validityBufferMs?: number;
|
|
2025
|
+
returnUrl?: string;
|
|
2026
|
+
webhook?: string;
|
|
2027
|
+
prompt?: string;
|
|
2028
|
+
deviceCode?: boolean;
|
|
2029
|
+
expiresInMs?: number;
|
|
2030
|
+
additionalParams?: CreateConnectorAuthorizationRequestRequestAdditionalParamsMap;
|
|
2031
|
+
}
|
|
2032
|
+
export const CreateConnectorAuthorizationRequestRequest =
|
|
2033
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2034
|
+
S.Struct({
|
|
2035
|
+
connector: S.String.pipe(T.Label()),
|
|
2036
|
+
subject: S.optional(CreateConnectorAuthorizationRequestRequestSubject),
|
|
2037
|
+
installationId: S.optional(S.String),
|
|
2038
|
+
audience: S.optional(
|
|
2039
|
+
CreateConnectorAuthorizationRequestRequestAudienceList,
|
|
2040
|
+
),
|
|
2041
|
+
scopes: S.optional(CreateConnectorAuthorizationRequestRequestScopesList),
|
|
2042
|
+
resources: S.optional(
|
|
2043
|
+
CreateConnectorAuthorizationRequestRequestResourcesList,
|
|
2044
|
+
),
|
|
2045
|
+
authorizationDetails: S.optional(
|
|
2046
|
+
CreateConnectorAuthorizationRequestRequestAuthorizationDetailsList,
|
|
2047
|
+
),
|
|
2048
|
+
validityBufferMs: S.optional(S.Number),
|
|
2049
|
+
returnUrl: S.optional(S.String),
|
|
2050
|
+
webhook: S.optional(S.String),
|
|
2051
|
+
prompt: S.optional(S.String),
|
|
2052
|
+
deviceCode: S.optional(S.Boolean),
|
|
2053
|
+
expiresInMs: S.optional(S.Number),
|
|
2054
|
+
additionalParams: S.optional(
|
|
2055
|
+
CreateConnectorAuthorizationRequestRequestAdditionalParamsMap,
|
|
2056
|
+
),
|
|
2057
|
+
}).pipe(
|
|
2058
|
+
T.Http({
|
|
2059
|
+
method: "POST",
|
|
2060
|
+
uri: "/v1/connect/authorize/{connector}",
|
|
2061
|
+
code: 200,
|
|
2062
|
+
}),
|
|
2063
|
+
),
|
|
2064
|
+
).annotate({
|
|
2065
|
+
identifier: "CreateConnectorAuthorizationRequestRequest",
|
|
2066
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestRequest>;
|
|
2067
|
+
|
|
2068
|
+
export interface CreateConnectorAuthorizationRequestResponseConnector {
|
|
2069
|
+
/** Client id (e.g. `scl_…`). */
|
|
2070
|
+
id: string;
|
|
2071
|
+
/** Client uid (e.g. `salesforce/my-org`). */
|
|
2072
|
+
uid: string;
|
|
2073
|
+
/** Client type (e.g. `oauth`, `salesforce`). */
|
|
2074
|
+
type: string;
|
|
2075
|
+
/** Resolved service id when known (e.g. `salesforce`), following the `stored.service ?? typeDef.service ?? stored.type` convention. */
|
|
2076
|
+
service?: string;
|
|
2077
|
+
/** Curated display name of the resolved service (e.g. "Salesforce"), present when the service is a known service. Suited for end-user surfaces like "Sign in with {serviceName}". */
|
|
2078
|
+
serviceName?: string;
|
|
2079
|
+
/** Provider-facing display name when the connector type exposes one, falling back to the stored connector name. */
|
|
2080
|
+
displayName: string;
|
|
2081
|
+
/** The connector's own name: the operator-given client name, falling back to the client type's name for legacy rows without one. */
|
|
2082
|
+
name: string;
|
|
2083
|
+
}
|
|
2084
|
+
export const CreateConnectorAuthorizationRequestResponseConnector =
|
|
2085
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2086
|
+
S.Struct({
|
|
2087
|
+
id: S.String,
|
|
2088
|
+
uid: S.String,
|
|
2089
|
+
type: S.String,
|
|
2090
|
+
service: S.optional(S.String),
|
|
2091
|
+
serviceName: S.optional(S.String),
|
|
2092
|
+
displayName: S.String,
|
|
2093
|
+
name: S.String,
|
|
2094
|
+
}),
|
|
2095
|
+
).annotate({
|
|
2096
|
+
identifier: "CreateConnectorAuthorizationRequestResponseConnector",
|
|
2097
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestResponseConnector>;
|
|
2098
|
+
|
|
2099
|
+
export interface CreateConnectorAuthorizationRequestResponse {
|
|
2100
|
+
url: string;
|
|
2101
|
+
request: string;
|
|
2102
|
+
verifier: string;
|
|
2103
|
+
deviceCode?: string;
|
|
2104
|
+
expiresAt: number;
|
|
2105
|
+
connector: CreateConnectorAuthorizationRequestResponseConnector;
|
|
2106
|
+
}
|
|
2107
|
+
export const CreateConnectorAuthorizationRequestResponse =
|
|
2108
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2109
|
+
S.Struct({
|
|
2110
|
+
url: S.String,
|
|
2111
|
+
request: S.String,
|
|
2112
|
+
verifier: S.String,
|
|
2113
|
+
deviceCode: S.optional(S.String),
|
|
2114
|
+
expiresAt: S.Number,
|
|
2115
|
+
connector: CreateConnectorAuthorizationRequestResponseConnector,
|
|
2116
|
+
}),
|
|
2117
|
+
).annotate({
|
|
2118
|
+
identifier: "CreateConnectorAuthorizationRequestResponse",
|
|
2119
|
+
}) as any as S.Schema<CreateConnectorAuthorizationRequestResponse>;
|
|
2120
|
+
|
|
2121
|
+
export interface DeleteConnectorRequest {
|
|
2122
|
+
/** Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */
|
|
2123
|
+
connector: string;
|
|
2124
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2125
|
+
teamId?: string;
|
|
2126
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2127
|
+
slug?: string;
|
|
2128
|
+
}
|
|
2129
|
+
export const DeleteConnectorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2130
|
+
S.Struct({
|
|
2131
|
+
connector: S.String.pipe(T.Label()),
|
|
2132
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
2133
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
2134
|
+
}).pipe(
|
|
2135
|
+
T.Http({
|
|
2136
|
+
method: "DELETE",
|
|
2137
|
+
uri: "/v1/connect/connectors/{connector}",
|
|
2138
|
+
code: 200,
|
|
2139
|
+
}),
|
|
2140
|
+
),
|
|
2141
|
+
).annotate({
|
|
2142
|
+
identifier: "DeleteConnectorRequest",
|
|
2143
|
+
}) as any as S.Schema<DeleteConnectorRequest>;
|
|
2144
|
+
|
|
2145
|
+
export interface DeleteConnectorResponse {}
|
|
2146
|
+
export const DeleteConnectorResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2147
|
+
S.Struct({}),
|
|
2148
|
+
).annotate({
|
|
2149
|
+
identifier: "DeleteConnectorResponse",
|
|
2150
|
+
}) as any as S.Schema<DeleteConnectorResponse>;
|
|
2151
|
+
|
|
2152
|
+
export interface DeleteConnectorProjectConnectionRequest {
|
|
2153
|
+
/** Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */
|
|
2154
|
+
connector: string;
|
|
2155
|
+
/** Vercel project ID. */
|
|
2156
|
+
projectId: string;
|
|
2157
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2158
|
+
teamId?: string;
|
|
2159
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2160
|
+
slug?: string;
|
|
2161
|
+
}
|
|
2162
|
+
export const DeleteConnectorProjectConnectionRequest = /*@__PURE__*/ S.suspend(
|
|
2163
|
+
() =>
|
|
2164
|
+
S.Struct({
|
|
2165
|
+
connector: S.String.pipe(T.Label()),
|
|
2166
|
+
projectId: S.String.pipe(T.Label()),
|
|
2167
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
2168
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
2169
|
+
}).pipe(
|
|
2170
|
+
T.Http({
|
|
2171
|
+
method: "DELETE",
|
|
2172
|
+
uri: "/v1/connect/connectors/{connector}/projects/{projectId}",
|
|
2173
|
+
code: 200,
|
|
2174
|
+
}),
|
|
2175
|
+
),
|
|
2176
|
+
).annotate({
|
|
2177
|
+
identifier: "DeleteConnectorProjectConnectionRequest",
|
|
2178
|
+
}) as any as S.Schema<DeleteConnectorProjectConnectionRequest>;
|
|
2179
|
+
|
|
2180
|
+
export interface DeleteConnectorProjectConnectionResponse {}
|
|
2181
|
+
export const DeleteConnectorProjectConnectionResponse = /*@__PURE__*/ S.suspend(
|
|
2182
|
+
() => S.Struct({}),
|
|
2183
|
+
).annotate({
|
|
2184
|
+
identifier: "DeleteConnectorProjectConnectionResponse",
|
|
2185
|
+
}) as any as S.Schema<DeleteConnectorProjectConnectionResponse>;
|
|
2186
|
+
|
|
2187
|
+
export interface GetConnectorRequest {
|
|
2188
|
+
/** Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */
|
|
2189
|
+
connector: string;
|
|
2190
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2191
|
+
teamId?: string;
|
|
2192
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2193
|
+
slug?: string;
|
|
2194
|
+
}
|
|
2195
|
+
export const GetConnectorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2196
|
+
S.Struct({
|
|
2197
|
+
connector: S.String.pipe(T.Label()),
|
|
2198
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
2199
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
2200
|
+
}).pipe(
|
|
2201
|
+
T.Http({
|
|
2202
|
+
method: "GET",
|
|
2203
|
+
uri: "/v1/connect/connectors/{connector}",
|
|
2204
|
+
code: 200,
|
|
2205
|
+
}),
|
|
2206
|
+
),
|
|
2207
|
+
).annotate({
|
|
2208
|
+
identifier: "GetConnectorRequest",
|
|
2209
|
+
}) as any as S.Schema<GetConnectorRequest>;
|
|
2210
|
+
|
|
2211
|
+
/** Principal kind. */
|
|
2212
|
+
export type ConnectConnectorCreatedByCase0Type = "user";
|
|
2213
|
+
export const ConnectConnectorCreatedByCase0Type = S.String;
|
|
2214
|
+
|
|
2215
|
+
/** Principal that originally created the connector — either a Vercel user (interactive dashboard / CLI flow) or a Vercel deployment (OIDC-authenticated project, used by runtime auto-provisioning). See {@link ConnexPrincipal}. Optional: pre-existing rows from before this shape was introduced may carry no attribution at all. */
|
|
2216
|
+
export interface ConnectConnectorCreatedByCase0 {
|
|
2217
|
+
/** Principal kind. */
|
|
2218
|
+
type: ConnectConnectorCreatedByCase0Type;
|
|
2219
|
+
/** Vercel user ID. */
|
|
2220
|
+
id: string;
|
|
2221
|
+
}
|
|
2222
|
+
export const ConnectConnectorCreatedByCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
2223
|
+
S.Struct({
|
|
2224
|
+
type: ConnectConnectorCreatedByCase0Type,
|
|
2225
|
+
id: S.String,
|
|
2226
|
+
}),
|
|
2227
|
+
).annotate({
|
|
2228
|
+
identifier: "ConnectConnectorCreatedByCase0",
|
|
2229
|
+
}) as any as S.Schema<ConnectConnectorCreatedByCase0>;
|
|
2230
|
+
|
|
2231
|
+
/** Principal kind. */
|
|
2232
|
+
export type ConnectConnectorCreatedByCase1Type = "project";
|
|
2233
|
+
export const ConnectConnectorCreatedByCase1Type = S.String;
|
|
2234
|
+
|
|
2235
|
+
export type ConnectConnectorCreatedByCase1EnvironmentCase1 =
|
|
2236
|
+
| "development"
|
|
2237
|
+
| "preview"
|
|
2238
|
+
| "production";
|
|
2239
|
+
export const ConnectConnectorCreatedByCase1EnvironmentCase1 = S.String;
|
|
2240
|
+
|
|
2241
|
+
/** Deployment environment of the project principal. */
|
|
2242
|
+
export type ConnectConnectorCreatedByCase1Environment =
|
|
2243
|
+
| string
|
|
2244
|
+
| ConnectConnectorCreatedByCase1EnvironmentCase1;
|
|
2245
|
+
export const ConnectConnectorCreatedByCase1Environment =
|
|
2246
|
+
S.Unknown as any as S.Schema<ConnectConnectorCreatedByCase1Environment>;
|
|
2247
|
+
|
|
2248
|
+
/** Principal that originally created the connector — either a Vercel user (interactive dashboard / CLI flow) or a Vercel deployment (OIDC-authenticated project, used by runtime auto-provisioning). See {@link ConnexPrincipal}. Optional: pre-existing rows from before this shape was introduced may carry no attribution at all. */
|
|
2249
|
+
export interface ConnectConnectorCreatedByCase1 {
|
|
2250
|
+
/** Principal kind. */
|
|
2251
|
+
type: ConnectConnectorCreatedByCase1Type;
|
|
2252
|
+
/** Vercel project ID. */
|
|
2253
|
+
id: string;
|
|
2254
|
+
/** Deployment environment of the project principal. */
|
|
2255
|
+
environment: ConnectConnectorCreatedByCase1Environment;
|
|
2256
|
+
}
|
|
2257
|
+
export const ConnectConnectorCreatedByCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
2258
|
+
S.Struct({
|
|
2259
|
+
type: ConnectConnectorCreatedByCase1Type,
|
|
2260
|
+
id: S.String,
|
|
2261
|
+
environment: ConnectConnectorCreatedByCase1Environment,
|
|
2262
|
+
}),
|
|
2263
|
+
).annotate({
|
|
2264
|
+
identifier: "ConnectConnectorCreatedByCase1",
|
|
2265
|
+
}) as any as S.Schema<ConnectConnectorCreatedByCase1>;
|
|
2266
|
+
|
|
2267
|
+
/** Principal that created the connector. */
|
|
2268
|
+
export type ConnectConnectorCreatedBy =
|
|
2269
|
+
| ConnectConnectorCreatedByCase0
|
|
2270
|
+
| ConnectConnectorCreatedByCase1;
|
|
2271
|
+
export const ConnectConnectorCreatedBy =
|
|
2272
|
+
S.Unknown as any as S.Schema<ConnectConnectorCreatedBy>;
|
|
2273
|
+
|
|
2274
|
+
/** Principal kind. */
|
|
2275
|
+
export type ConnectConnectorUpdatedByCase0Type = "user";
|
|
2276
|
+
export const ConnectConnectorUpdatedByCase0Type = S.String;
|
|
2277
|
+
|
|
2278
|
+
/** Principal that most recently mutated the connector. Same shape as {@link createdBy} but tracks the most recent updater, not the original creator. At create time the two fields point at the same principal; they diverge on the first subsequent update. */
|
|
2279
|
+
export interface ConnectConnectorUpdatedByCase0 {
|
|
2280
|
+
/** Principal kind. */
|
|
2281
|
+
type: ConnectConnectorUpdatedByCase0Type;
|
|
2282
|
+
/** Vercel user ID. */
|
|
2283
|
+
id: string;
|
|
2284
|
+
}
|
|
2285
|
+
export const ConnectConnectorUpdatedByCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
2286
|
+
S.Struct({
|
|
2287
|
+
type: ConnectConnectorUpdatedByCase0Type,
|
|
2288
|
+
id: S.String,
|
|
2289
|
+
}),
|
|
2290
|
+
).annotate({
|
|
2291
|
+
identifier: "ConnectConnectorUpdatedByCase0",
|
|
2292
|
+
}) as any as S.Schema<ConnectConnectorUpdatedByCase0>;
|
|
2293
|
+
|
|
2294
|
+
/** Principal kind. */
|
|
2295
|
+
export type ConnectConnectorUpdatedByCase1Type = "project";
|
|
2296
|
+
export const ConnectConnectorUpdatedByCase1Type = S.String;
|
|
2297
|
+
|
|
2298
|
+
export type ConnectConnectorUpdatedByCase1EnvironmentCase1 =
|
|
2299
|
+
| "development"
|
|
2300
|
+
| "preview"
|
|
2301
|
+
| "production";
|
|
2302
|
+
export const ConnectConnectorUpdatedByCase1EnvironmentCase1 = S.String;
|
|
2303
|
+
|
|
2304
|
+
/** Deployment environment of the project principal. */
|
|
2305
|
+
export type ConnectConnectorUpdatedByCase1Environment =
|
|
2306
|
+
| string
|
|
2307
|
+
| ConnectConnectorUpdatedByCase1EnvironmentCase1;
|
|
2308
|
+
export const ConnectConnectorUpdatedByCase1Environment =
|
|
2309
|
+
S.Unknown as any as S.Schema<ConnectConnectorUpdatedByCase1Environment>;
|
|
2310
|
+
|
|
2311
|
+
/** Principal that most recently mutated the connector. Same shape as {@link createdBy} but tracks the most recent updater, not the original creator. At create time the two fields point at the same principal; they diverge on the first subsequent update. */
|
|
2312
|
+
export interface ConnectConnectorUpdatedByCase1 {
|
|
2313
|
+
/** Principal kind. */
|
|
2314
|
+
type: ConnectConnectorUpdatedByCase1Type;
|
|
2315
|
+
/** Vercel project ID. */
|
|
2316
|
+
id: string;
|
|
2317
|
+
/** Deployment environment of the project principal. */
|
|
2318
|
+
environment: ConnectConnectorUpdatedByCase1Environment;
|
|
2319
|
+
}
|
|
2320
|
+
export const ConnectConnectorUpdatedByCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
2321
|
+
S.Struct({
|
|
2322
|
+
type: ConnectConnectorUpdatedByCase1Type,
|
|
2323
|
+
id: S.String,
|
|
2324
|
+
environment: ConnectConnectorUpdatedByCase1Environment,
|
|
2325
|
+
}),
|
|
2326
|
+
).annotate({
|
|
2327
|
+
identifier: "ConnectConnectorUpdatedByCase1",
|
|
2328
|
+
}) as any as S.Schema<ConnectConnectorUpdatedByCase1>;
|
|
2329
|
+
|
|
2330
|
+
/** Principal that most recently updated the connector. */
|
|
2331
|
+
export type ConnectConnectorUpdatedBy =
|
|
2332
|
+
| ConnectConnectorUpdatedByCase0
|
|
2333
|
+
| ConnectConnectorUpdatedByCase1;
|
|
2334
|
+
export const ConnectConnectorUpdatedBy =
|
|
2335
|
+
S.Unknown as any as S.Schema<ConnectConnectorUpdatedBy>;
|
|
2336
|
+
|
|
2337
|
+
/** How the connector row was originally created. New create paths stamp this explicitly; older rows may omit it. */
|
|
2338
|
+
export type ConnectConnectorCreationMode = "managed" | "manual";
|
|
2339
|
+
export const ConnectConnectorCreationMode = S.String;
|
|
2340
|
+
|
|
2341
|
+
/** Managed connector metadata exposed without leaking the manager connector or installation identifiers. */
|
|
2342
|
+
export type ConnectConnectorManaged = ConnectConnectorCreateResultManaged;
|
|
2343
|
+
export const ConnectConnectorManaged = ConnectConnectorCreateResultManaged;
|
|
2344
|
+
|
|
2345
|
+
/** Connector implementation type. */
|
|
2346
|
+
export type ConnectConnectorType =
|
|
2347
|
+
| "api-key"
|
|
2348
|
+
| "custom"
|
|
2349
|
+
| "discord"
|
|
2350
|
+
| "github"
|
|
2351
|
+
| "linear"
|
|
2352
|
+
| "linq"
|
|
2353
|
+
| "microsoft-entra"
|
|
2354
|
+
| "microsoft-teams"
|
|
2355
|
+
| "oauth"
|
|
2356
|
+
| "photon"
|
|
2357
|
+
| "salesforce"
|
|
2358
|
+
| "sendblue"
|
|
2359
|
+
| "slack"
|
|
2360
|
+
| "snowflake"
|
|
2361
|
+
| "snowflake-wif";
|
|
2362
|
+
export const ConnectConnectorType = S.String;
|
|
2363
|
+
|
|
2364
|
+
/** Token subject types supported by the connector. */
|
|
2365
|
+
export type ConnectConnectorSupportedSubjectTypesList = Array<string>;
|
|
2366
|
+
export const ConnectConnectorSupportedSubjectTypesList = /*@__PURE__*/ S.Array(
|
|
2367
|
+
S.String,
|
|
2368
|
+
) as any as S.Schema<ConnectConnectorSupportedSubjectTypesList>;
|
|
2369
|
+
|
|
2370
|
+
/** Known allowed app-level scopes. For Slack this is the bot scope set configured on the app; for OAuth it is the connector's enabled `clientCredentials.scopes` configuration. */
|
|
2371
|
+
export type ConnectConnectorAppTokensScopesList = Array<string>;
|
|
2372
|
+
export const ConnectConnectorAppTokensScopesList = /*@__PURE__*/ S.Array(
|
|
2373
|
+
S.String,
|
|
2374
|
+
) as any as S.Schema<ConnectConnectorAppTokensScopesList>;
|
|
2375
|
+
|
|
2376
|
+
/** Supported OAuth authorization-detail type names. */
|
|
2377
|
+
export type ConnectConnectorAppTokensSupportedAuthorizationDetailsList =
|
|
2378
|
+
Array<string>;
|
|
2379
|
+
export const ConnectConnectorAppTokensSupportedAuthorizationDetailsList =
|
|
2380
|
+
/*@__PURE__*/ S.Array(
|
|
2381
|
+
S.String,
|
|
2382
|
+
) as any as S.Schema<ConnectConnectorAppTokensSupportedAuthorizationDetailsList>;
|
|
2383
|
+
|
|
2384
|
+
/** App-token capabilities and known grants for the connector. */
|
|
2385
|
+
export interface ConnectConnectorAppTokens {
|
|
2386
|
+
/** Whether one app token can be used across installations. */
|
|
2387
|
+
crossInstallation: boolean;
|
|
2388
|
+
/** Whether callers can narrow app-token grants per request. */
|
|
2389
|
+
supportsRefinement: boolean;
|
|
2390
|
+
/** True when changing app token grants requires reinstalling the app, so tokens cannot be partitioned independently by requester environment. */
|
|
2391
|
+
requiresReinstallation?: boolean;
|
|
2392
|
+
/** Known allowed app-level scopes. For Slack this is the bot scope set configured on the app; for OAuth it is the connector's enabled `clientCredentials.scopes` configuration. */
|
|
2393
|
+
scopes?: ConnectConnectorAppTokensScopesList;
|
|
2394
|
+
/** Supported OAuth authorization-detail type names. */
|
|
2395
|
+
supportedAuthorizationDetails?: ConnectConnectorAppTokensSupportedAuthorizationDetailsList;
|
|
2396
|
+
/** Link to the page on the service where this connector's app-level permissions are declared and granted, when the service has one and it differs from `clientUrl`. */
|
|
2397
|
+
permissionsUrl?: string;
|
|
2398
|
+
}
|
|
2399
|
+
export const ConnectConnectorAppTokens = /*@__PURE__*/ S.suspend(() =>
|
|
2400
|
+
S.Struct({
|
|
2401
|
+
crossInstallation: S.Boolean,
|
|
2402
|
+
supportsRefinement: S.Boolean,
|
|
2403
|
+
requiresReinstallation: S.optional(S.Boolean),
|
|
2404
|
+
scopes: S.optional(ConnectConnectorAppTokensScopesList),
|
|
2405
|
+
supportedAuthorizationDetails: S.optional(
|
|
2406
|
+
ConnectConnectorAppTokensSupportedAuthorizationDetailsList,
|
|
2407
|
+
),
|
|
2408
|
+
permissionsUrl: S.optional(S.String),
|
|
2409
|
+
}),
|
|
2410
|
+
).annotate({
|
|
2411
|
+
identifier: "ConnectConnectorAppTokens",
|
|
2412
|
+
}) as any as S.Schema<ConnectConnectorAppTokens>;
|
|
2413
|
+
|
|
2414
|
+
/** Known allowed user-level scopes. For Slack this is the user scope set configured on the app; for OAuth it is the connector's enabled `userAuthorization.scopes` configuration. */
|
|
2415
|
+
export type ConnectConnectorUserTokensScopesList = Array<string>;
|
|
2416
|
+
export const ConnectConnectorUserTokensScopesList = /*@__PURE__*/ S.Array(
|
|
2417
|
+
S.String,
|
|
2418
|
+
) as any as S.Schema<ConnectConnectorUserTokensScopesList>;
|
|
2419
|
+
|
|
2420
|
+
/** Supported OAuth authorization-detail type names. */
|
|
2421
|
+
export type ConnectConnectorUserTokensSupportedAuthorizationDetailsList =
|
|
2422
|
+
Array<string>;
|
|
2423
|
+
export const ConnectConnectorUserTokensSupportedAuthorizationDetailsList =
|
|
2424
|
+
/*@__PURE__*/ S.Array(
|
|
2425
|
+
S.String,
|
|
2426
|
+
) as any as S.Schema<ConnectConnectorUserTokensSupportedAuthorizationDetailsList>;
|
|
2427
|
+
|
|
2428
|
+
/** User-token capabilities and known grants for the connector. */
|
|
2429
|
+
export interface ConnectConnectorUserTokens {
|
|
2430
|
+
/** Whether one user token can be used across installations. */
|
|
2431
|
+
crossInstallation: boolean;
|
|
2432
|
+
/** Whether callers can narrow user-token grants per request. */
|
|
2433
|
+
supportsRefinement: boolean;
|
|
2434
|
+
/** Known allowed user-level scopes. For Slack this is the user scope set configured on the app; for OAuth it is the connector's enabled `userAuthorization.scopes` configuration. */
|
|
2435
|
+
scopes?: ConnectConnectorUserTokensScopesList;
|
|
2436
|
+
/** Supported OAuth authorization-detail type names. */
|
|
2437
|
+
supportedAuthorizationDetails?: ConnectConnectorUserTokensSupportedAuthorizationDetailsList;
|
|
2438
|
+
/** User authorization is completed by the Connect consent screen submitting a credential instead of an OAuth redirect. */
|
|
2439
|
+
manualCredentialInput?: boolean;
|
|
2440
|
+
}
|
|
2441
|
+
export const ConnectConnectorUserTokens = /*@__PURE__*/ S.suspend(() =>
|
|
2442
|
+
S.Struct({
|
|
2443
|
+
crossInstallation: S.Boolean,
|
|
2444
|
+
supportsRefinement: S.Boolean,
|
|
2445
|
+
scopes: S.optional(ConnectConnectorUserTokensScopesList),
|
|
2446
|
+
supportedAuthorizationDetails: S.optional(
|
|
2447
|
+
ConnectConnectorUserTokensSupportedAuthorizationDetailsList,
|
|
2448
|
+
),
|
|
2449
|
+
manualCredentialInput: S.optional(S.Boolean),
|
|
2450
|
+
}),
|
|
2451
|
+
).annotate({
|
|
2452
|
+
identifier: "ConnectConnectorUserTokens",
|
|
2453
|
+
}) as any as S.Schema<ConnectConnectorUserTokens>;
|
|
2454
|
+
|
|
2455
|
+
/** Known events this connector subscribes to (e.g. Slack bot events, GitHub webhook events). Names are type-specific and validated by the managed-create flow when forwarded to the third-party service. */
|
|
2456
|
+
export type ConnectConnectorEventsList = Array<string>;
|
|
2457
|
+
export const ConnectConnectorEventsList = /*@__PURE__*/ S.Array(
|
|
2458
|
+
S.String,
|
|
2459
|
+
) as any as S.Schema<ConnectConnectorEventsList>;
|
|
2460
|
+
|
|
2461
|
+
/** Destinations that incoming triggers should be forwarded to. Limited to 3 entries. Set the initial destination with `triggerDestination` during creation. Replace the complete set with `PATCH /v1/connect/connectors/{connector}/trigger-destinations`. */
|
|
2462
|
+
export type ConnectConnectorTriggerDestinationsList =
|
|
2463
|
+
Array<ConnectTriggerDestination>;
|
|
2464
|
+
export const ConnectConnectorTriggerDestinationsList = /*@__PURE__*/ S.Array(
|
|
2465
|
+
ConnectTriggerDestination,
|
|
2466
|
+
) as any as S.Schema<ConnectConnectorTriggerDestinationsList>;
|
|
2467
|
+
|
|
2468
|
+
/** A connector that defines how Vercel accesses an external service. */
|
|
2469
|
+
export interface ConnectConnector {
|
|
2470
|
+
/** Stable `scl_` connector ID. Use this value directly in `{connector}`. */
|
|
2471
|
+
id: string;
|
|
2472
|
+
/** Team-scoped UID. URL-encode this value before using it in `{connector}`. */
|
|
2473
|
+
uid: string;
|
|
2474
|
+
/** Installation used when a token request does not specify an installation. */
|
|
2475
|
+
defaultInstallationId?: string;
|
|
2476
|
+
/** Creation time in epoch milliseconds. */
|
|
2477
|
+
createdAt: number;
|
|
2478
|
+
/** Last update time in epoch milliseconds. */
|
|
2479
|
+
updatedAt: number;
|
|
2480
|
+
/** Time when this connector started requiring reinstallation because an installation-affecting app-token grant changed. */
|
|
2481
|
+
reinstallAt?: number;
|
|
2482
|
+
/** Principal that created the connector. */
|
|
2483
|
+
createdBy?: ConnectConnectorCreatedBy;
|
|
2484
|
+
/** Principal that most recently updated the connector. */
|
|
2485
|
+
updatedBy?: ConnectConnectorUpdatedBy;
|
|
2486
|
+
/** How the connector row was originally created. New create paths stamp this explicitly; older rows may omit it. */
|
|
2487
|
+
creationMode?: ConnectConnectorCreationMode;
|
|
2488
|
+
/** Managed connector metadata exposed without leaking the manager connector or installation identifiers. */
|
|
2489
|
+
managed?: ConnectConnectorCreateResultManaged;
|
|
2490
|
+
/** Connector implementation type. */
|
|
2491
|
+
type: ConnectConnectorType;
|
|
2492
|
+
/** Best-effort identifier of the third-party service this connector represents, independent of `type`. Examples: `'slack'`, `'mcp.linear.app'`, and `'auth.example.com'`. Always present in API responses. */
|
|
2493
|
+
service: string;
|
|
2494
|
+
/** The connection method this connector was created from, when the create request named one. */
|
|
2495
|
+
connectionMethod?: string;
|
|
2496
|
+
/** Which of the service's products/surfaces this connector points at. */
|
|
2497
|
+
target?: string;
|
|
2498
|
+
/** Connector name within the owning team. */
|
|
2499
|
+
name: string;
|
|
2500
|
+
/** Human-readable connector name. */
|
|
2501
|
+
displayName: string;
|
|
2502
|
+
/** Provider-side URL for viewing or managing the resource represented by the connector. The destination can be an app, account, phone line, or service instance, depending on the connector type. */
|
|
2503
|
+
clientUrl?: string | null;
|
|
2504
|
+
/** Redirect URI registered with the third-party service for this connector, if any. Used by `startAuthorization`/`startInstallation` to replay the exact URI back to the provider's token endpoint. Absent on connectors created before this field was introduced; those callers fall back to the `https://connect.vercel.com/callback` default. */
|
|
2505
|
+
redirectUri?: string;
|
|
2506
|
+
/** Human-readable name of the connector type. */
|
|
2507
|
+
typeName: string;
|
|
2508
|
+
/** Icon identifier supplied by the connector type. */
|
|
2509
|
+
typeIcon?: string;
|
|
2510
|
+
/** Public website for the connected service. */
|
|
2511
|
+
website?: string;
|
|
2512
|
+
/** Developer website for the connected service. */
|
|
2513
|
+
devsite?: string;
|
|
2514
|
+
/** Developer documentation for the connected service. */
|
|
2515
|
+
docsite?: string;
|
|
2516
|
+
/** Connector branding icon. SHA-1 hash that resolves to the uploaded icon through the Vercel avatar service. Consumers render this with `https://vercel.com/api/www/avatar/{icon}`. */
|
|
2517
|
+
icon?: string;
|
|
2518
|
+
/** Hex background color (e.g., `#000000`) for branding. */
|
|
2519
|
+
backgroundColor?: string;
|
|
2520
|
+
/** Hex accent color (e.g., `#000000`) for branding. */
|
|
2521
|
+
accentColor?: string;
|
|
2522
|
+
/** Token subject types supported by the connector. */
|
|
2523
|
+
supportedSubjectTypes: ConnectConnectorSupportedSubjectTypesList;
|
|
2524
|
+
/** App-token capabilities and known grants for the connector. */
|
|
2525
|
+
appTokens?: ConnectConnectorAppTokens;
|
|
2526
|
+
/** User-token capabilities and known grants for the connector. */
|
|
2527
|
+
userTokens?: ConnectConnectorUserTokens;
|
|
2528
|
+
/** Whether the connector supports an installation flow. */
|
|
2529
|
+
supportsInstallation: boolean;
|
|
2530
|
+
/** Whether Connect can revoke tokens for this connector. */
|
|
2531
|
+
supportsRevocation: boolean;
|
|
2532
|
+
/** Whether this connector type supports trigger webhooks. Derived from the type definition; indicates that `triggers` and `triggerDestinations` may be meaningful for this connector. */
|
|
2533
|
+
supportsTriggers: boolean;
|
|
2534
|
+
/** Whether the connector icon can propagate to the provider. */
|
|
2535
|
+
supportsIcon: unknown;
|
|
2536
|
+
/** Incoming trigger configuration for the connector. */
|
|
2537
|
+
triggers?: ConnectTriggerConfiguration;
|
|
2538
|
+
/** Known events this connector subscribes to (e.g. Slack bot events, GitHub webhook events). Names are type-specific and validated by the managed-create flow when forwarded to the third-party service. */
|
|
2539
|
+
events?: ConnectConnectorEventsList;
|
|
2540
|
+
/** Destinations that incoming triggers should be forwarded to. Limited to 3 entries. Set the initial destination with `triggerDestination` during creation. Replace the complete set with `PATCH /v1/connect/connectors/{connector}/trigger-destinations`. */
|
|
2541
|
+
triggerDestinations?: ConnectConnectorTriggerDestinationsList;
|
|
2542
|
+
}
|
|
2543
|
+
export const ConnectConnector = /*@__PURE__*/ S.suspend(() =>
|
|
2544
|
+
S.Struct({
|
|
2545
|
+
id: S.String,
|
|
2546
|
+
uid: S.String,
|
|
2547
|
+
defaultInstallationId: S.optional(S.String),
|
|
2548
|
+
createdAt: S.Number,
|
|
2549
|
+
updatedAt: S.Number,
|
|
2550
|
+
reinstallAt: S.optional(S.Number),
|
|
2551
|
+
createdBy: S.optional(ConnectConnectorCreatedBy),
|
|
2552
|
+
updatedBy: S.optional(ConnectConnectorUpdatedBy),
|
|
2553
|
+
creationMode: S.optional(ConnectConnectorCreationMode),
|
|
2554
|
+
managed: S.optional(ConnectConnectorCreateResultManaged),
|
|
2555
|
+
type: ConnectConnectorType,
|
|
2556
|
+
service: S.String,
|
|
2557
|
+
connectionMethod: S.optional(S.String),
|
|
2558
|
+
target: S.optional(S.String),
|
|
2559
|
+
name: S.String,
|
|
2560
|
+
displayName: S.String,
|
|
2561
|
+
clientUrl: S.optional(S.NullOr(S.String)),
|
|
2562
|
+
redirectUri: S.optional(S.String),
|
|
2563
|
+
typeName: S.String,
|
|
2564
|
+
typeIcon: S.optional(S.String),
|
|
2565
|
+
website: S.optional(S.String),
|
|
2566
|
+
devsite: S.optional(S.String),
|
|
2567
|
+
docsite: S.optional(S.String),
|
|
2568
|
+
icon: S.optional(S.String),
|
|
2569
|
+
backgroundColor: S.optional(S.String),
|
|
2570
|
+
accentColor: S.optional(S.String),
|
|
2571
|
+
supportedSubjectTypes: ConnectConnectorSupportedSubjectTypesList,
|
|
2572
|
+
appTokens: S.optional(ConnectConnectorAppTokens),
|
|
2573
|
+
userTokens: S.optional(ConnectConnectorUserTokens),
|
|
2574
|
+
supportsInstallation: S.Boolean,
|
|
2575
|
+
supportsRevocation: S.Boolean,
|
|
2576
|
+
supportsTriggers: S.Boolean,
|
|
2577
|
+
supportsIcon: S.Unknown,
|
|
2578
|
+
triggers: S.optional(ConnectTriggerConfiguration),
|
|
2579
|
+
events: S.optional(ConnectConnectorEventsList),
|
|
2580
|
+
triggerDestinations: S.optional(ConnectConnectorTriggerDestinationsList),
|
|
2581
|
+
}),
|
|
2582
|
+
).annotate({
|
|
2583
|
+
identifier: "ConnectConnector",
|
|
2584
|
+
}) as any as S.Schema<ConnectConnector>;
|
|
2585
|
+
|
|
2586
|
+
export interface GetConnectorProjectConnectionRequest {
|
|
2587
|
+
/** Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */
|
|
2588
|
+
connector: string;
|
|
2589
|
+
/** Vercel project ID. */
|
|
2590
|
+
projectId: string;
|
|
2591
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2592
|
+
teamId?: string;
|
|
2593
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2594
|
+
slug?: string;
|
|
2595
|
+
}
|
|
2596
|
+
export const GetConnectorProjectConnectionRequest = /*@__PURE__*/ S.suspend(
|
|
2597
|
+
() =>
|
|
2598
|
+
S.Struct({
|
|
2599
|
+
connector: S.String.pipe(T.Label()),
|
|
2600
|
+
projectId: S.String.pipe(T.Label()),
|
|
2601
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
2602
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
2603
|
+
}).pipe(
|
|
2604
|
+
T.Http({
|
|
2605
|
+
method: "GET",
|
|
2606
|
+
uri: "/v1/connect/connectors/{connector}/projects/{projectId}",
|
|
2607
|
+
code: 200,
|
|
2608
|
+
}),
|
|
2609
|
+
),
|
|
2610
|
+
).annotate({
|
|
2611
|
+
identifier: "GetConnectorProjectConnectionRequest",
|
|
2612
|
+
}) as any as S.Schema<GetConnectorProjectConnectionRequest>;
|
|
2613
|
+
|
|
2614
|
+
/** Custom environments available on the project. This list can include environments where the connector is not enabled. */
|
|
2615
|
+
export interface ConnectProjectConnectionProjectCustomEnvironmentsItem {
|
|
2616
|
+
/** Stable custom environment ID. */
|
|
2617
|
+
id: string;
|
|
2618
|
+
/** Current human-readable custom environment slug. */
|
|
2619
|
+
slug: string;
|
|
2620
|
+
}
|
|
2621
|
+
export const ConnectProjectConnectionProjectCustomEnvironmentsItem =
|
|
2622
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2623
|
+
S.Struct({
|
|
2624
|
+
id: S.String,
|
|
2625
|
+
slug: S.String,
|
|
2626
|
+
}),
|
|
2627
|
+
).annotate({
|
|
2628
|
+
identifier: "ConnectProjectConnectionProjectCustomEnvironmentsItem",
|
|
2629
|
+
}) as any as S.Schema<ConnectProjectConnectionProjectCustomEnvironmentsItem>;
|
|
2630
|
+
|
|
2631
|
+
/** Custom environments available on the project. This list can include environments where the connector is not enabled. */
|
|
2632
|
+
export type ConnectProjectConnectionProjectCustomEnvironmentsList =
|
|
2633
|
+
Array<ConnectProjectConnectionProjectCustomEnvironmentsItem>;
|
|
2634
|
+
export const ConnectProjectConnectionProjectCustomEnvironmentsList =
|
|
2635
|
+
/*@__PURE__*/ S.Array(
|
|
2636
|
+
ConnectProjectConnectionProjectCustomEnvironmentsItem,
|
|
2637
|
+
) as any as S.Schema<ConnectProjectConnectionProjectCustomEnvironmentsList>;
|
|
2638
|
+
|
|
2639
|
+
/** Vercel project connected to the connector. */
|
|
2640
|
+
export interface ConnectProjectConnectionProject {
|
|
2641
|
+
/** Same Vercel project ID as the connection's top-level `projectId`. */
|
|
2642
|
+
id: string;
|
|
2643
|
+
/** Current Vercel project name. */
|
|
2644
|
+
name: string;
|
|
2645
|
+
/** Custom environments available on the project. This list can include environments where the connector is not enabled. */
|
|
2646
|
+
customEnvironments?: ConnectProjectConnectionProjectCustomEnvironmentsList;
|
|
2647
|
+
}
|
|
2648
|
+
export const ConnectProjectConnectionProject = /*@__PURE__*/ S.suspend(() =>
|
|
2649
|
+
S.Struct({
|
|
2650
|
+
id: S.String,
|
|
2651
|
+
name: S.String,
|
|
2652
|
+
customEnvironments: S.optional(
|
|
2653
|
+
ConnectProjectConnectionProjectCustomEnvironmentsList,
|
|
2654
|
+
),
|
|
2655
|
+
}),
|
|
2656
|
+
).annotate({
|
|
2657
|
+
identifier: "ConnectProjectConnectionProject",
|
|
2658
|
+
}) as any as S.Schema<ConnectProjectConnectionProject>;
|
|
2659
|
+
|
|
2660
|
+
export type ConnectProjectConnectionEnabledEnvironmentsItemCase1 =
|
|
2661
|
+
| "development"
|
|
2662
|
+
| "preview"
|
|
2663
|
+
| "production";
|
|
2664
|
+
export const ConnectProjectConnectionEnabledEnvironmentsItemCase1 = S.String;
|
|
2665
|
+
|
|
2666
|
+
export type ConnectProjectConnectionEnabledEnvironmentsItem =
|
|
2667
|
+
| string
|
|
2668
|
+
| ConnectProjectConnectionEnabledEnvironmentsItemCase1;
|
|
2669
|
+
export const ConnectProjectConnectionEnabledEnvironmentsItem =
|
|
2670
|
+
S.Unknown as any as S.Schema<ConnectProjectConnectionEnabledEnvironmentsItem>;
|
|
2671
|
+
|
|
2672
|
+
/** Environments where the connector is enabled for the project. */
|
|
2673
|
+
export type ConnectProjectConnectionEnabledEnvironmentsList =
|
|
2674
|
+
Array<ConnectProjectConnectionEnabledEnvironmentsItem>;
|
|
2675
|
+
export const ConnectProjectConnectionEnabledEnvironmentsList =
|
|
2676
|
+
/*@__PURE__*/ S.Array(
|
|
2677
|
+
ConnectProjectConnectionEnabledEnvironmentsItem,
|
|
2678
|
+
) as any as S.Schema<ConnectProjectConnectionEnabledEnvironmentsList>;
|
|
2679
|
+
|
|
2680
|
+
/** A connection between a connector and a Vercel project, including the environments where the connector is enabled. */
|
|
2681
|
+
export interface ConnectProjectConnection {
|
|
2682
|
+
/** Stable `scl_` connector ID, even when the request used a UID. */
|
|
2683
|
+
connectorId: string;
|
|
2684
|
+
/** Vercel project connected to the connector. */
|
|
2685
|
+
project: ConnectProjectConnectionProject;
|
|
2686
|
+
/** Environments where the connector is enabled for the project. */
|
|
2687
|
+
enabledEnvironments: ConnectProjectConnectionEnabledEnvironmentsList;
|
|
2688
|
+
/** Time when the project connection was created, in epoch milliseconds. */
|
|
2689
|
+
createdAt: number;
|
|
2690
|
+
/** Time when the project connection was last updated, in epoch milliseconds. */
|
|
2691
|
+
updatedAt: number;
|
|
2692
|
+
}
|
|
2693
|
+
export const ConnectProjectConnection = /*@__PURE__*/ S.suspend(() =>
|
|
2694
|
+
S.Struct({
|
|
2695
|
+
connectorId: S.String,
|
|
2696
|
+
project: ConnectProjectConnectionProject,
|
|
2697
|
+
enabledEnvironments: ConnectProjectConnectionEnabledEnvironmentsList,
|
|
2698
|
+
createdAt: S.Number,
|
|
2699
|
+
updatedAt: S.Number,
|
|
2700
|
+
}),
|
|
2701
|
+
).annotate({
|
|
2702
|
+
identifier: "ConnectProjectConnection",
|
|
2703
|
+
}) as any as S.Schema<ConnectProjectConnection>;
|
|
2704
|
+
|
|
2705
|
+
export type GetConnectorTokenRequestSubjectCase0Type = "app";
|
|
2706
|
+
export const GetConnectorTokenRequestSubjectCase0Type = S.String;
|
|
2707
|
+
|
|
2708
|
+
export interface GetConnectorTokenRequestSubjectCase0 {
|
|
2709
|
+
type: GetConnectorTokenRequestSubjectCase0Type;
|
|
2710
|
+
}
|
|
2711
|
+
export const GetConnectorTokenRequestSubjectCase0 = /*@__PURE__*/ S.suspend(
|
|
2712
|
+
() =>
|
|
2713
|
+
S.Struct({
|
|
2714
|
+
type: GetConnectorTokenRequestSubjectCase0Type,
|
|
2715
|
+
}),
|
|
2716
|
+
).annotate({
|
|
2717
|
+
identifier: "GetConnectorTokenRequestSubjectCase0",
|
|
2718
|
+
}) as any as S.Schema<GetConnectorTokenRequestSubjectCase0>;
|
|
2719
|
+
|
|
2720
|
+
export type GetConnectorTokenRequestSubjectCase1Type = "user";
|
|
2721
|
+
export const GetConnectorTokenRequestSubjectCase1Type = S.String;
|
|
2722
|
+
|
|
2723
|
+
export interface GetConnectorTokenRequestSubjectCase1 {
|
|
2724
|
+
type: GetConnectorTokenRequestSubjectCase1Type;
|
|
2725
|
+
id?: string;
|
|
2726
|
+
issuer?: string;
|
|
2727
|
+
}
|
|
2728
|
+
export const GetConnectorTokenRequestSubjectCase1 = /*@__PURE__*/ S.suspend(
|
|
2729
|
+
() =>
|
|
2730
|
+
S.Struct({
|
|
2731
|
+
type: GetConnectorTokenRequestSubjectCase1Type,
|
|
2732
|
+
id: S.optional(S.String),
|
|
2733
|
+
issuer: S.optional(S.String),
|
|
2734
|
+
}),
|
|
2735
|
+
).annotate({
|
|
2736
|
+
identifier: "GetConnectorTokenRequestSubjectCase1",
|
|
2737
|
+
}) as any as S.Schema<GetConnectorTokenRequestSubjectCase1>;
|
|
2738
|
+
|
|
2739
|
+
export type GetConnectorTokenRequestSubjectCase2Type = "jwt-bearer";
|
|
2740
|
+
export const GetConnectorTokenRequestSubjectCase2Type = S.String;
|
|
2741
|
+
|
|
2742
|
+
export type GetConnectorTokenRequestSubjectCase2AdditionalClaimsMap = {
|
|
2743
|
+
[key: string]: unknown | undefined;
|
|
2744
|
+
};
|
|
2745
|
+
export const GetConnectorTokenRequestSubjectCase2AdditionalClaimsMap =
|
|
2746
|
+
/*@__PURE__*/ S.Record(
|
|
2747
|
+
S.String,
|
|
2748
|
+
S.Unknown,
|
|
2749
|
+
) as any as S.Schema<GetConnectorTokenRequestSubjectCase2AdditionalClaimsMap>;
|
|
2750
|
+
|
|
2751
|
+
export interface GetConnectorTokenRequestSubjectCase2 {
|
|
2752
|
+
type: GetConnectorTokenRequestSubjectCase2Type;
|
|
2753
|
+
sub?: string;
|
|
2754
|
+
iss?: string;
|
|
2755
|
+
aud?: string;
|
|
2756
|
+
additionalClaims?: GetConnectorTokenRequestSubjectCase2AdditionalClaimsMap;
|
|
2757
|
+
}
|
|
2758
|
+
export const GetConnectorTokenRequestSubjectCase2 = /*@__PURE__*/ S.suspend(
|
|
2759
|
+
() =>
|
|
2760
|
+
S.Struct({
|
|
2761
|
+
type: GetConnectorTokenRequestSubjectCase2Type,
|
|
2762
|
+
sub: S.optional(S.String),
|
|
2763
|
+
iss: S.optional(S.String),
|
|
2764
|
+
aud: S.optional(S.String),
|
|
2765
|
+
additionalClaims: S.optional(
|
|
2766
|
+
GetConnectorTokenRequestSubjectCase2AdditionalClaimsMap,
|
|
2767
|
+
),
|
|
2768
|
+
}),
|
|
2769
|
+
).annotate({
|
|
2770
|
+
identifier: "GetConnectorTokenRequestSubjectCase2",
|
|
2771
|
+
}) as any as S.Schema<GetConnectorTokenRequestSubjectCase2>;
|
|
2772
|
+
|
|
2773
|
+
export type GetConnectorTokenRequestSubjectCase3Type = "token";
|
|
2774
|
+
export const GetConnectorTokenRequestSubjectCase3Type = S.String;
|
|
2775
|
+
|
|
2776
|
+
export interface GetConnectorTokenRequestSubjectCase3 {
|
|
2777
|
+
type: GetConnectorTokenRequestSubjectCase3Type;
|
|
2778
|
+
token: string;
|
|
2779
|
+
}
|
|
2780
|
+
export const GetConnectorTokenRequestSubjectCase3 = /*@__PURE__*/ S.suspend(
|
|
2781
|
+
() =>
|
|
2782
|
+
S.Struct({
|
|
2783
|
+
type: GetConnectorTokenRequestSubjectCase3Type,
|
|
2784
|
+
token: S.String,
|
|
2785
|
+
}),
|
|
2786
|
+
).annotate({
|
|
2787
|
+
identifier: "GetConnectorTokenRequestSubjectCase3",
|
|
2788
|
+
}) as any as S.Schema<GetConnectorTokenRequestSubjectCase3>;
|
|
2789
|
+
|
|
2790
|
+
export type GetConnectorTokenRequestSubjectCase4 =
|
|
2791
|
+
CreateConnectorAuthorizationRequestRequestSubjectCase4;
|
|
2792
|
+
export const GetConnectorTokenRequestSubjectCase4 =
|
|
2793
|
+
CreateConnectorAuthorizationRequestRequestSubjectCase4;
|
|
2794
|
+
|
|
2795
|
+
export type GetConnectorTokenRequestSubject =
|
|
2796
|
+
| GetConnectorTokenRequestSubjectCase0
|
|
2797
|
+
| GetConnectorTokenRequestSubjectCase1
|
|
2798
|
+
| GetConnectorTokenRequestSubjectCase2
|
|
2799
|
+
| GetConnectorTokenRequestSubjectCase3
|
|
2800
|
+
| CreateConnectorAuthorizationRequestRequestSubjectCase4;
|
|
2801
|
+
export const GetConnectorTokenRequestSubject =
|
|
2802
|
+
S.Unknown as any as S.Schema<GetConnectorTokenRequestSubject>;
|
|
2803
|
+
|
|
2804
|
+
export type GetConnectorTokenRequestAudienceList = Array<string>;
|
|
2805
|
+
export const GetConnectorTokenRequestAudienceList = /*@__PURE__*/ S.Array(
|
|
2806
|
+
S.String,
|
|
2807
|
+
) as any as S.Schema<GetConnectorTokenRequestAudienceList>;
|
|
2808
|
+
|
|
2809
|
+
export type GetConnectorTokenRequestScopesList = Array<string>;
|
|
2810
|
+
export const GetConnectorTokenRequestScopesList = /*@__PURE__*/ S.Array(
|
|
2811
|
+
S.String,
|
|
2812
|
+
) as any as S.Schema<GetConnectorTokenRequestScopesList>;
|
|
2813
|
+
|
|
2814
|
+
export type GetConnectorTokenRequestResourcesList = Array<string>;
|
|
2815
|
+
export const GetConnectorTokenRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2816
|
+
S.String,
|
|
2817
|
+
) as any as S.Schema<GetConnectorTokenRequestResourcesList>;
|
|
2818
|
+
|
|
2819
|
+
export type GetConnectorTokenRequestAuthorizationDetailsItem =
|
|
2820
|
+
CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem;
|
|
2821
|
+
export const GetConnectorTokenRequestAuthorizationDetailsItem =
|
|
2822
|
+
CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem;
|
|
2823
|
+
|
|
2824
|
+
export type GetConnectorTokenRequestAuthorizationDetailsList =
|
|
2825
|
+
Array<CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem>;
|
|
2826
|
+
export const GetConnectorTokenRequestAuthorizationDetailsList =
|
|
2827
|
+
/*@__PURE__*/ S.Array(
|
|
2828
|
+
CreateConnectorAuthorizationRequestRequestAuthorizationDetailsItem,
|
|
2829
|
+
) as any as S.Schema<GetConnectorTokenRequestAuthorizationDetailsList>;
|
|
2830
|
+
|
|
2831
|
+
export interface GetConnectorTokenRequest {
|
|
2832
|
+
connector: string;
|
|
2833
|
+
subject?: GetConnectorTokenRequestSubject;
|
|
2834
|
+
installationId?: string;
|
|
2835
|
+
audience?: GetConnectorTokenRequestAudienceList;
|
|
2836
|
+
scopes?: GetConnectorTokenRequestScopesList;
|
|
2837
|
+
resources?: GetConnectorTokenRequestResourcesList;
|
|
2838
|
+
authorizationDetails?: GetConnectorTokenRequestAuthorizationDetailsList;
|
|
2839
|
+
validityBufferMs?: number;
|
|
2840
|
+
}
|
|
2841
|
+
export const GetConnectorTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2842
|
+
S.Struct({
|
|
2843
|
+
connector: S.String.pipe(T.Label()),
|
|
2844
|
+
subject: S.optional(GetConnectorTokenRequestSubject),
|
|
2845
|
+
installationId: S.optional(S.String),
|
|
2846
|
+
audience: S.optional(GetConnectorTokenRequestAudienceList),
|
|
2847
|
+
scopes: S.optional(GetConnectorTokenRequestScopesList),
|
|
2848
|
+
resources: S.optional(GetConnectorTokenRequestResourcesList),
|
|
2849
|
+
authorizationDetails: S.optional(
|
|
2850
|
+
GetConnectorTokenRequestAuthorizationDetailsList,
|
|
2851
|
+
),
|
|
2852
|
+
validityBufferMs: S.optional(S.Number),
|
|
2853
|
+
}).pipe(
|
|
2854
|
+
T.Http({ method: "POST", uri: "/v1/connect/token/{connector}", code: 200 }),
|
|
2855
|
+
),
|
|
2856
|
+
).annotate({
|
|
2857
|
+
identifier: "GetConnectorTokenRequest",
|
|
2858
|
+
}) as any as S.Schema<GetConnectorTokenRequest>;
|
|
2859
|
+
|
|
2860
|
+
export interface GetConnectorTokenResponseConnector {
|
|
2861
|
+
id: string;
|
|
2862
|
+
uid: string;
|
|
2863
|
+
type: string;
|
|
2864
|
+
}
|
|
2865
|
+
export const GetConnectorTokenResponseConnector = /*@__PURE__*/ S.suspend(() =>
|
|
2866
|
+
S.Struct({
|
|
2867
|
+
id: S.String,
|
|
2868
|
+
uid: S.String,
|
|
2869
|
+
type: S.String,
|
|
2870
|
+
}),
|
|
2871
|
+
).annotate({
|
|
2872
|
+
identifier: "GetConnectorTokenResponseConnector",
|
|
2873
|
+
}) as any as S.Schema<GetConnectorTokenResponseConnector>;
|
|
2874
|
+
|
|
2875
|
+
/** Claims extracted from the provider's tokens per the connector's `ForwardedClaims` allow-list. Currently sourced from the OIDC id_token only. */
|
|
2876
|
+
export type GetConnectorTokenResponseClaimsMap = {
|
|
2877
|
+
[key: string]: unknown | undefined;
|
|
2878
|
+
};
|
|
2879
|
+
export const GetConnectorTokenResponseClaimsMap = /*@__PURE__*/ S.Record(
|
|
2880
|
+
S.String,
|
|
2881
|
+
S.Unknown,
|
|
2882
|
+
) as any as S.Schema<GetConnectorTokenResponseClaimsMap>;
|
|
2883
|
+
|
|
2884
|
+
/** Driver-specific metadata (e.g., botUserId for Slack). */
|
|
2885
|
+
export type GetConnectorTokenResponseMetadataMap = {
|
|
2886
|
+
[key: string]: unknown | undefined;
|
|
2887
|
+
};
|
|
2888
|
+
export const GetConnectorTokenResponseMetadataMap = /*@__PURE__*/ S.Record(
|
|
2889
|
+
S.String,
|
|
2890
|
+
S.Unknown,
|
|
2891
|
+
) as any as S.Schema<GetConnectorTokenResponseMetadataMap>;
|
|
2892
|
+
|
|
2893
|
+
export interface GetConnectorTokenResponse {
|
|
2894
|
+
token: string;
|
|
2895
|
+
tokenId: string;
|
|
2896
|
+
expiresAt: number;
|
|
2897
|
+
connector: GetConnectorTokenResponseConnector;
|
|
2898
|
+
name?: string;
|
|
2899
|
+
installationId?: string;
|
|
2900
|
+
tenantId?: string;
|
|
2901
|
+
externalSubject?: string;
|
|
2902
|
+
/** Stable id correlating all tokens (including refreshes) back to the original authorization. */
|
|
2903
|
+
authorizationId?: string;
|
|
2904
|
+
/** Stable id that groups all tokens with the same parameters across refreshes. */
|
|
2905
|
+
tokenGroupId?: string;
|
|
2906
|
+
/** Claims extracted from the provider's tokens per the connector's `ForwardedClaims` allow-list. Currently sourced from the OIDC id_token only. */
|
|
2907
|
+
claims?: GetConnectorTokenResponseClaimsMap;
|
|
2908
|
+
/** Driver-specific metadata (e.g., botUserId for Slack). */
|
|
2909
|
+
metadata?: GetConnectorTokenResponseMetadataMap;
|
|
2910
|
+
}
|
|
2911
|
+
export const GetConnectorTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2912
|
+
S.Struct({
|
|
2913
|
+
token: S.String,
|
|
2914
|
+
tokenId: S.String,
|
|
2915
|
+
expiresAt: S.Number,
|
|
2916
|
+
connector: GetConnectorTokenResponseConnector,
|
|
2917
|
+
name: S.optional(S.String),
|
|
2918
|
+
installationId: S.optional(S.String),
|
|
2919
|
+
tenantId: S.optional(S.String),
|
|
2920
|
+
externalSubject: S.optional(S.String),
|
|
2921
|
+
authorizationId: S.optional(S.String),
|
|
2922
|
+
tokenGroupId: S.optional(S.String),
|
|
2923
|
+
claims: S.optional(GetConnectorTokenResponseClaimsMap),
|
|
2924
|
+
metadata: S.optional(GetConnectorTokenResponseMetadataMap),
|
|
2925
|
+
}),
|
|
2926
|
+
).annotate({
|
|
2927
|
+
identifier: "GetConnectorTokenResponse",
|
|
2928
|
+
}) as any as S.Schema<GetConnectorTokenResponse>;
|
|
2929
|
+
|
|
2930
|
+
export interface ListConnectorProjectConnectionsRequest {
|
|
2931
|
+
/** Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */
|
|
2932
|
+
connector: string;
|
|
2933
|
+
/** Maximum number of project connections to return. Defaults to 50. */
|
|
2934
|
+
limit?: number;
|
|
2935
|
+
/** Cursor from `pagination.next` on the previous response. */
|
|
2936
|
+
cursor?: string;
|
|
2937
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2938
|
+
teamId?: string;
|
|
2939
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
2940
|
+
slug?: string;
|
|
2941
|
+
}
|
|
2942
|
+
export const ListConnectorProjectConnectionsRequest = /*@__PURE__*/ S.suspend(
|
|
2943
|
+
() =>
|
|
2944
|
+
S.Struct({
|
|
2945
|
+
connector: S.String.pipe(T.Label()),
|
|
2946
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2947
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
2948
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
2949
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
2950
|
+
}).pipe(
|
|
2951
|
+
T.Http({
|
|
2952
|
+
method: "GET",
|
|
2953
|
+
uri: "/v2/connect/connectors/{connector}/projects",
|
|
2954
|
+
code: 200,
|
|
2955
|
+
}),
|
|
2956
|
+
),
|
|
2957
|
+
).annotate({
|
|
2958
|
+
identifier: "ListConnectorProjectConnectionsRequest",
|
|
2959
|
+
}) as any as S.Schema<ListConnectorProjectConnectionsRequest>;
|
|
2960
|
+
|
|
2961
|
+
/** Project connections in this page. */
|
|
2962
|
+
export type ConnectConnectorProjectConnectionListProjectsList =
|
|
2963
|
+
Array<ConnectProjectConnection>;
|
|
2964
|
+
export const ConnectConnectorProjectConnectionListProjectsList =
|
|
2965
|
+
/*@__PURE__*/ S.Array(
|
|
2966
|
+
ConnectProjectConnection,
|
|
2967
|
+
) as any as S.Schema<ConnectConnectorProjectConnectionListProjectsList>;
|
|
2968
|
+
|
|
2969
|
+
/** Cursor for the next page. */
|
|
2970
|
+
export interface ConnectPagination {
|
|
2971
|
+
/** Opaque value to pass as `cursor` on the next request. */
|
|
2972
|
+
next: string | null;
|
|
2973
|
+
}
|
|
2974
|
+
export const ConnectPagination = /*@__PURE__*/ S.suspend(() =>
|
|
2975
|
+
S.Struct({
|
|
2976
|
+
next: S.NullOr(S.String),
|
|
2977
|
+
}),
|
|
2978
|
+
).annotate({
|
|
2979
|
+
identifier: "ConnectPagination",
|
|
2980
|
+
}) as any as S.Schema<ConnectPagination>;
|
|
2981
|
+
|
|
2982
|
+
/** Page of projects connected to a connector. */
|
|
2983
|
+
export interface ConnectConnectorProjectConnectionList {
|
|
2984
|
+
/** Project connections in this page. */
|
|
2985
|
+
projects: ConnectConnectorProjectConnectionListProjectsList;
|
|
2986
|
+
/** Cursor for the next page. */
|
|
2987
|
+
pagination: ConnectPagination;
|
|
2988
|
+
}
|
|
2989
|
+
export const ConnectConnectorProjectConnectionList = /*@__PURE__*/ S.suspend(
|
|
2990
|
+
() =>
|
|
2991
|
+
S.Struct({
|
|
2992
|
+
projects: ConnectConnectorProjectConnectionListProjectsList,
|
|
2993
|
+
pagination: ConnectPagination,
|
|
2994
|
+
}),
|
|
2995
|
+
).annotate({
|
|
2996
|
+
identifier: "ConnectConnectorProjectConnectionList",
|
|
2997
|
+
}) as any as S.Schema<ConnectConnectorProjectConnectionList>;
|
|
2998
|
+
|
|
2999
|
+
/** Sort by name in ascending order, or by creation or update time in descending order. */
|
|
3000
|
+
export type ListConnectorsRequestSort = "name" | "createdAt" | "updatedAt";
|
|
3001
|
+
export const ListConnectorsRequestSort = S.String;
|
|
3002
|
+
|
|
3003
|
+
export interface ListConnectorsRequest {
|
|
3004
|
+
/** Maximum number of connectors to return. Defaults to 20. */
|
|
3005
|
+
limit?: number;
|
|
3006
|
+
/** Cursor from `pagination.next` on the previous response. */
|
|
3007
|
+
cursor?: string;
|
|
3008
|
+
/** Return only connectors connected to this project. */
|
|
3009
|
+
projectId?: string;
|
|
3010
|
+
/** Search connector names, UIDs, and services. */
|
|
3011
|
+
search?: string;
|
|
3012
|
+
/** Comma-separated connector types: `slack`, `discord`, `github`, `linear`, `linq`, `salesforce`, `sendblue`, `snowflake`, `snowflake-wif`, `microsoft-entra`, `api-key`, `photon`, `oauth`, or `custom`. */
|
|
3013
|
+
type?: string;
|
|
3014
|
+
/** Comma-separated provider or service identifiers. */
|
|
3015
|
+
service?: string;
|
|
3016
|
+
/** Sort by name in ascending order, or by creation or update time in descending order. */
|
|
3017
|
+
sort?: ListConnectorsRequestSort | (string & {});
|
|
3018
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
3019
|
+
teamId?: string;
|
|
3020
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
3021
|
+
slug?: string;
|
|
3022
|
+
}
|
|
3023
|
+
export const ListConnectorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3024
|
+
S.Struct({
|
|
3025
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3026
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
3027
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
3028
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
3029
|
+
type: S.optional(S.String.pipe(T.Query())),
|
|
3030
|
+
service: S.optional(S.String.pipe(T.Query())),
|
|
3031
|
+
sort: S.optional(ListConnectorsRequestSort.pipe(T.Query())),
|
|
3032
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
3033
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
3034
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/connect/connectors", code: 200 })),
|
|
3035
|
+
).annotate({
|
|
3036
|
+
identifier: "ListConnectorsRequest",
|
|
3037
|
+
}) as any as S.Schema<ListConnectorsRequest>;
|
|
3038
|
+
|
|
3039
|
+
/** Connectors in this page. */
|
|
3040
|
+
export type ConnectConnectorListConnectorsList = Array<ConnectConnector>;
|
|
3041
|
+
export const ConnectConnectorListConnectorsList = /*@__PURE__*/ S.Array(
|
|
3042
|
+
ConnectConnector,
|
|
3043
|
+
) as any as S.Schema<ConnectConnectorListConnectorsList>;
|
|
3044
|
+
|
|
3045
|
+
/** Page of connectors. */
|
|
3046
|
+
export interface ConnectConnectorList {
|
|
3047
|
+
/** Connectors in this page. */
|
|
3048
|
+
connectors: ConnectConnectorListConnectorsList;
|
|
3049
|
+
/** Cursor for the next page. */
|
|
3050
|
+
pagination: ConnectPagination;
|
|
3051
|
+
}
|
|
3052
|
+
export const ConnectConnectorList = /*@__PURE__*/ S.suspend(() =>
|
|
3053
|
+
S.Struct({
|
|
3054
|
+
connectors: ConnectConnectorListConnectorsList,
|
|
3055
|
+
pagination: ConnectPagination,
|
|
3056
|
+
}),
|
|
3057
|
+
).annotate({
|
|
3058
|
+
identifier: "ConnectConnectorList",
|
|
3059
|
+
}) as any as S.Schema<ConnectConnectorList>;
|
|
3060
|
+
|
|
3061
|
+
export interface ListProjectConnectorConnectionsRequest {
|
|
3062
|
+
/** Vercel project ID. */
|
|
3063
|
+
projectId: string;
|
|
3064
|
+
/** Maximum number of connector connections to return. Defaults to 50. */
|
|
3065
|
+
limit?: number;
|
|
3066
|
+
/** Cursor from `pagination.next` on the previous response. */
|
|
3067
|
+
cursor?: string;
|
|
3068
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
3069
|
+
teamId?: string;
|
|
3070
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
3071
|
+
slug?: string;
|
|
3072
|
+
}
|
|
3073
|
+
export const ListProjectConnectorConnectionsRequest = /*@__PURE__*/ S.suspend(
|
|
3074
|
+
() =>
|
|
3075
|
+
S.Struct({
|
|
3076
|
+
projectId: S.String.pipe(T.Label()),
|
|
3077
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3078
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
3079
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
3080
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
3081
|
+
}).pipe(
|
|
3082
|
+
T.Http({
|
|
3083
|
+
method: "GET",
|
|
3084
|
+
uri: "/v2/connect/projects/{projectId}/connectors",
|
|
3085
|
+
code: 200,
|
|
3086
|
+
}),
|
|
3087
|
+
),
|
|
3088
|
+
).annotate({
|
|
3089
|
+
identifier: "ListProjectConnectorConnectionsRequest",
|
|
3090
|
+
}) as any as S.Schema<ListProjectConnectorConnectionsRequest>;
|
|
3091
|
+
|
|
3092
|
+
/** Connector connections in this page. */
|
|
3093
|
+
export type ConnectProjectConnectorConnectionListConnectorsList =
|
|
3094
|
+
Array<ConnectProjectConnection>;
|
|
3095
|
+
export const ConnectProjectConnectorConnectionListConnectorsList =
|
|
3096
|
+
/*@__PURE__*/ S.Array(
|
|
3097
|
+
ConnectProjectConnection,
|
|
3098
|
+
) as any as S.Schema<ConnectProjectConnectorConnectionListConnectorsList>;
|
|
3099
|
+
|
|
3100
|
+
/** Page of connectors connected to a project. */
|
|
3101
|
+
export interface ConnectProjectConnectorConnectionList {
|
|
3102
|
+
/** Connector connections in this page. */
|
|
3103
|
+
connectors: ConnectProjectConnectorConnectionListConnectorsList;
|
|
3104
|
+
/** Cursor for the next page. */
|
|
3105
|
+
pagination: ConnectPagination;
|
|
3106
|
+
}
|
|
3107
|
+
export const ConnectProjectConnectorConnectionList = /*@__PURE__*/ S.suspend(
|
|
3108
|
+
() =>
|
|
3109
|
+
S.Struct({
|
|
3110
|
+
connectors: ConnectProjectConnectorConnectionListConnectorsList,
|
|
3111
|
+
pagination: ConnectPagination,
|
|
3112
|
+
}),
|
|
3113
|
+
).annotate({
|
|
3114
|
+
identifier: "ConnectProjectConnectorConnectionList",
|
|
3115
|
+
}) as any as S.Schema<ConnectProjectConnectorConnectionList>;
|
|
3116
|
+
|
|
3117
|
+
export interface ConnectTriggerDestinationInputCase0 {
|
|
3118
|
+
/** Project that receives matching trigger requests. */
|
|
3119
|
+
projectId: string;
|
|
3120
|
+
/** Route path on the linked project that receives forwarded trigger requests. */
|
|
3121
|
+
path?: string;
|
|
3122
|
+
}
|
|
3123
|
+
export const ConnectTriggerDestinationInputCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
3124
|
+
S.Struct({
|
|
3125
|
+
projectId: S.String,
|
|
3126
|
+
path: S.optional(S.String),
|
|
3127
|
+
}),
|
|
3128
|
+
).annotate({
|
|
3129
|
+
identifier: "ConnectTriggerDestinationInputCase0",
|
|
3130
|
+
}) as any as S.Schema<ConnectTriggerDestinationInputCase0>;
|
|
3131
|
+
|
|
3132
|
+
export interface ConnectTriggerDestinationInputCase1 {
|
|
3133
|
+
/** Project that receives matching trigger requests. */
|
|
3134
|
+
projectId: string;
|
|
3135
|
+
/** Git branch used to select a preview deployment. */
|
|
3136
|
+
branch: string;
|
|
3137
|
+
/** Route path on the linked project that receives forwarded trigger requests. */
|
|
3138
|
+
path?: string;
|
|
3139
|
+
}
|
|
3140
|
+
export const ConnectTriggerDestinationInputCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
3141
|
+
S.Struct({
|
|
3142
|
+
projectId: S.String,
|
|
3143
|
+
branch: S.String,
|
|
3144
|
+
path: S.optional(S.String),
|
|
3145
|
+
}),
|
|
3146
|
+
).annotate({
|
|
3147
|
+
identifier: "ConnectTriggerDestinationInputCase1",
|
|
3148
|
+
}) as any as S.Schema<ConnectTriggerDestinationInputCase1>;
|
|
3149
|
+
|
|
3150
|
+
export interface ConnectTriggerDestinationInputCase2 {
|
|
3151
|
+
/** Project that receives matching trigger requests. */
|
|
3152
|
+
projectId: string;
|
|
3153
|
+
/** Stable custom environment ID that belongs to the destination project. */
|
|
3154
|
+
customEnvironmentId: string;
|
|
3155
|
+
/** Route path on the linked project that receives forwarded trigger requests. */
|
|
3156
|
+
path?: string;
|
|
3157
|
+
}
|
|
3158
|
+
export const ConnectTriggerDestinationInputCase2 = /*@__PURE__*/ S.suspend(() =>
|
|
3159
|
+
S.Struct({
|
|
3160
|
+
projectId: S.String,
|
|
3161
|
+
customEnvironmentId: S.String,
|
|
3162
|
+
path: S.optional(S.String),
|
|
3163
|
+
}),
|
|
3164
|
+
).annotate({
|
|
3165
|
+
identifier: "ConnectTriggerDestinationInputCase2",
|
|
3166
|
+
}) as any as S.Schema<ConnectTriggerDestinationInputCase2>;
|
|
3167
|
+
|
|
3168
|
+
/** A destination in the complete replacement set. Each destination targets the default deployment, a branch, or a custom environment. */
|
|
3169
|
+
export type ConnectTriggerDestinationInput =
|
|
3170
|
+
| ConnectTriggerDestinationInputCase0
|
|
3171
|
+
| ConnectTriggerDestinationInputCase1
|
|
3172
|
+
| ConnectTriggerDestinationInputCase2;
|
|
3173
|
+
export const ConnectTriggerDestinationInput =
|
|
3174
|
+
S.Unknown as any as S.Schema<ConnectTriggerDestinationInput>;
|
|
3175
|
+
|
|
3176
|
+
/** Complete replacement set of trigger destinations. An empty array removes all destinations. Connector get and list responses expose the saved set as triggerDestinations. */
|
|
3177
|
+
export type ReplaceConnectorTriggerDestinationsRequestDestinationsList =
|
|
3178
|
+
Array<ConnectTriggerDestinationInput>;
|
|
3179
|
+
export const ReplaceConnectorTriggerDestinationsRequestDestinationsList =
|
|
3180
|
+
/*@__PURE__*/ S.Array(
|
|
3181
|
+
ConnectTriggerDestinationInput,
|
|
3182
|
+
) as any as S.Schema<ReplaceConnectorTriggerDestinationsRequestDestinationsList>;
|
|
3183
|
+
|
|
3184
|
+
export interface ReplaceConnectorTriggerDestinationsRequest {
|
|
3185
|
+
/** Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */
|
|
3186
|
+
connector: string;
|
|
3187
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
3188
|
+
teamId?: string;
|
|
3189
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
3190
|
+
slug?: string;
|
|
3191
|
+
/** Complete replacement set of trigger destinations. An empty array removes all destinations. Connector get and list responses expose the saved set as triggerDestinations. */
|
|
3192
|
+
destinations: ReplaceConnectorTriggerDestinationsRequestDestinationsList;
|
|
3193
|
+
}
|
|
3194
|
+
export const ReplaceConnectorTriggerDestinationsRequest =
|
|
3195
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3196
|
+
S.Struct({
|
|
3197
|
+
connector: S.String.pipe(T.Label()),
|
|
3198
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
3199
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
3200
|
+
destinations: ReplaceConnectorTriggerDestinationsRequestDestinationsList,
|
|
3201
|
+
}).pipe(
|
|
3202
|
+
T.Http({
|
|
3203
|
+
method: "PATCH",
|
|
3204
|
+
uri: "/v1/connect/connectors/{connector}/trigger-destinations",
|
|
3205
|
+
code: 200,
|
|
3206
|
+
}),
|
|
3207
|
+
),
|
|
3208
|
+
).annotate({
|
|
3209
|
+
identifier: "ReplaceConnectorTriggerDestinationsRequest",
|
|
3210
|
+
}) as any as S.Schema<ReplaceConnectorTriggerDestinationsRequest>;
|
|
3211
|
+
|
|
3212
|
+
/** Default trigger events for this connector. */
|
|
3213
|
+
export type UpdateConnectorRequestEventsList = Array<string>;
|
|
3214
|
+
export const UpdateConnectorRequestEventsList = /*@__PURE__*/ S.Array(
|
|
3215
|
+
S.String,
|
|
3216
|
+
) as any as S.Schema<UpdateConnectorRequestEventsList>;
|
|
3217
|
+
|
|
3218
|
+
/** Intended key use: signing or encryption. */
|
|
3219
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemUse =
|
|
3220
|
+
| "sig"
|
|
3221
|
+
| "enc";
|
|
3222
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemUse =
|
|
3223
|
+
S.String;
|
|
3224
|
+
|
|
3225
|
+
/** Operations permitted for this key. */
|
|
3226
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemKeyOpsList =
|
|
3227
|
+
Array<string>;
|
|
3228
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemKeyOpsList =
|
|
3229
|
+
/*@__PURE__*/ S.Array(
|
|
3230
|
+
S.String,
|
|
3231
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemKeyOpsList>;
|
|
3232
|
+
|
|
3233
|
+
export interface ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItem {
|
|
3234
|
+
/** JSON Web Key type. */
|
|
3235
|
+
kty: string;
|
|
3236
|
+
/** JSON Web Key identifier. */
|
|
3237
|
+
kid?: string;
|
|
3238
|
+
/** Intended key use: signing or encryption. */
|
|
3239
|
+
use?:
|
|
3240
|
+
| ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemUse
|
|
3241
|
+
| (string & {});
|
|
3242
|
+
/** Operations permitted for this key. */
|
|
3243
|
+
key_ops?: ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemKeyOpsList;
|
|
3244
|
+
/** Algorithm intended for this key. */
|
|
3245
|
+
alg?: string;
|
|
3246
|
+
}
|
|
3247
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItem =
|
|
3248
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3249
|
+
S.Struct({
|
|
3250
|
+
kty: S.String,
|
|
3251
|
+
kid: S.optional(S.String),
|
|
3252
|
+
use: S.optional(
|
|
3253
|
+
ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemUse,
|
|
3254
|
+
),
|
|
3255
|
+
key_ops: S.optional(
|
|
3256
|
+
ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItemKeyOpsList,
|
|
3257
|
+
),
|
|
3258
|
+
alg: S.optional(S.String),
|
|
3259
|
+
}),
|
|
3260
|
+
).annotate({
|
|
3261
|
+
identifier: "ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItem",
|
|
3262
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItem>;
|
|
3263
|
+
|
|
3264
|
+
/** JSON Web Keys published by the authorization server. */
|
|
3265
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigJwksKeysList =
|
|
3266
|
+
Array<ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItem>;
|
|
3267
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigJwksKeysList =
|
|
3268
|
+
/*@__PURE__*/ S.Array(
|
|
3269
|
+
ConnectConnectorUpdateDataCase0ServerConfigJwksKeysItem,
|
|
3270
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigJwksKeysList>;
|
|
3271
|
+
|
|
3272
|
+
/** Inline authorization server JSON Web Key Set. */
|
|
3273
|
+
export interface ConnectConnectorUpdateDataCase0ServerConfigJwks {
|
|
3274
|
+
/** JSON Web Keys published by the authorization server. */
|
|
3275
|
+
keys: ConnectConnectorUpdateDataCase0ServerConfigJwksKeysList;
|
|
3276
|
+
}
|
|
3277
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigJwks =
|
|
3278
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3279
|
+
S.Struct({
|
|
3280
|
+
keys: ConnectConnectorUpdateDataCase0ServerConfigJwksKeysList,
|
|
3281
|
+
}),
|
|
3282
|
+
).annotate({
|
|
3283
|
+
identifier: "ConnectConnectorUpdateDataCase0ServerConfigJwks",
|
|
3284
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigJwks>;
|
|
3285
|
+
|
|
3286
|
+
/** OAuth response types supported by the server. */
|
|
3287
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigResponseTypesSupportedList =
|
|
3288
|
+
Array<string>;
|
|
3289
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigResponseTypesSupportedList =
|
|
3290
|
+
/*@__PURE__*/ S.Array(
|
|
3291
|
+
S.String,
|
|
3292
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigResponseTypesSupportedList>;
|
|
3293
|
+
|
|
3294
|
+
/** Token endpoint client authentication methods supported by the server. */
|
|
3295
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList =
|
|
3296
|
+
Array<string>;
|
|
3297
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList =
|
|
3298
|
+
/*@__PURE__*/ S.Array(
|
|
3299
|
+
S.String,
|
|
3300
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList>;
|
|
3301
|
+
|
|
3302
|
+
/** Signing algorithms supported for token endpoint authentication. */
|
|
3303
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList =
|
|
3304
|
+
Array<string>;
|
|
3305
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList =
|
|
3306
|
+
/*@__PURE__*/ S.Array(
|
|
3307
|
+
S.String,
|
|
3308
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList>;
|
|
3309
|
+
|
|
3310
|
+
/** OAuth scopes supported by the server. */
|
|
3311
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigScopesSupportedList =
|
|
3312
|
+
Array<string>;
|
|
3313
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigScopesSupportedList =
|
|
3314
|
+
/*@__PURE__*/ S.Array(
|
|
3315
|
+
S.String,
|
|
3316
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigScopesSupportedList>;
|
|
3317
|
+
|
|
3318
|
+
/** OAuth grant types supported by the server. */
|
|
3319
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigGrantTypesSupportedList =
|
|
3320
|
+
Array<string>;
|
|
3321
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigGrantTypesSupportedList =
|
|
3322
|
+
/*@__PURE__*/ S.Array(
|
|
3323
|
+
S.String,
|
|
3324
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigGrantTypesSupportedList>;
|
|
3325
|
+
|
|
3326
|
+
/** OAuth response modes supported by the server. */
|
|
3327
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigResponseModesSupportedList =
|
|
3328
|
+
Array<string>;
|
|
3329
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigResponseModesSupportedList =
|
|
3330
|
+
/*@__PURE__*/ S.Array(
|
|
3331
|
+
S.String,
|
|
3332
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigResponseModesSupportedList>;
|
|
3333
|
+
|
|
3334
|
+
/** OpenID Connect subject identifier types supported by the server. */
|
|
3335
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigSubjectTypesSupportedList =
|
|
3336
|
+
Array<string>;
|
|
3337
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigSubjectTypesSupportedList =
|
|
3338
|
+
/*@__PURE__*/ S.Array(
|
|
3339
|
+
S.String,
|
|
3340
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigSubjectTypesSupportedList>;
|
|
3341
|
+
|
|
3342
|
+
/** Signing algorithms supported for ID tokens. */
|
|
3343
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList =
|
|
3344
|
+
Array<string>;
|
|
3345
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList =
|
|
3346
|
+
/*@__PURE__*/ S.Array(
|
|
3347
|
+
S.String,
|
|
3348
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList>;
|
|
3349
|
+
|
|
3350
|
+
/** Key management algorithms supported for encrypted ID tokens. */
|
|
3351
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList =
|
|
3352
|
+
Array<string>;
|
|
3353
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList =
|
|
3354
|
+
/*@__PURE__*/ S.Array(
|
|
3355
|
+
S.String,
|
|
3356
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList>;
|
|
3357
|
+
|
|
3358
|
+
/** Content encryption algorithms supported for encrypted ID tokens. */
|
|
3359
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList =
|
|
3360
|
+
Array<string>;
|
|
3361
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList =
|
|
3362
|
+
/*@__PURE__*/ S.Array(
|
|
3363
|
+
S.String,
|
|
3364
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList>;
|
|
3365
|
+
|
|
3366
|
+
/** OpenID Connect claim value types supported by the server. */
|
|
3367
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigClaimTypesSupportedList =
|
|
3368
|
+
Array<string>;
|
|
3369
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigClaimTypesSupportedList =
|
|
3370
|
+
/*@__PURE__*/ S.Array(
|
|
3371
|
+
S.String,
|
|
3372
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigClaimTypesSupportedList>;
|
|
3373
|
+
|
|
3374
|
+
/** Claims that the authorization server can return. */
|
|
3375
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigClaimsSupportedList =
|
|
3376
|
+
Array<string>;
|
|
3377
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigClaimsSupportedList =
|
|
3378
|
+
/*@__PURE__*/ S.Array(
|
|
3379
|
+
S.String,
|
|
3380
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigClaimsSupportedList>;
|
|
3381
|
+
|
|
3382
|
+
/** PKCE code challenge methods supported by the server. */
|
|
3383
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigCodeChallengeMethodsSupportedList =
|
|
3384
|
+
Array<string>;
|
|
3385
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigCodeChallengeMethodsSupportedList =
|
|
3386
|
+
/*@__PURE__*/ S.Array(
|
|
3387
|
+
S.String,
|
|
3388
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigCodeChallengeMethodsSupportedList>;
|
|
3389
|
+
|
|
3390
|
+
/** Authorization prompt values supported by the server. */
|
|
3391
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigPromptValuesSupportedList =
|
|
3392
|
+
Array<string>;
|
|
3393
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigPromptValuesSupportedList =
|
|
3394
|
+
/*@__PURE__*/ S.Array(
|
|
3395
|
+
S.String,
|
|
3396
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigPromptValuesSupportedList>;
|
|
3397
|
+
|
|
3398
|
+
/** OAuth authorization-detail types supported by the server. */
|
|
3399
|
+
export type ConnectConnectorUpdateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList =
|
|
3400
|
+
Array<string>;
|
|
3401
|
+
export const ConnectConnectorUpdateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList =
|
|
3402
|
+
/*@__PURE__*/ S.Array(
|
|
3403
|
+
S.String,
|
|
3404
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList>;
|
|
3405
|
+
|
|
3406
|
+
/** Authorization server metadata. Values override discovered metadata. Empty known string fields remove their stored overrides. */
|
|
3407
|
+
export interface ConnectConnectorUpdateDataCase0ServerConfig {
|
|
3408
|
+
/** Authorization server issuer URL. */
|
|
3409
|
+
issuer?: string;
|
|
3410
|
+
/** OAuth authorization endpoint URL. */
|
|
3411
|
+
authorization_endpoint?: string;
|
|
3412
|
+
/** OAuth token endpoint URL. */
|
|
3413
|
+
token_endpoint?: string;
|
|
3414
|
+
/** OpenID Connect UserInfo endpoint URL. */
|
|
3415
|
+
userinfo_endpoint?: string;
|
|
3416
|
+
/** URL of the authorization server JSON Web Key Set. */
|
|
3417
|
+
jwks_uri?: string;
|
|
3418
|
+
/** Inline authorization server JSON Web Key Set. */
|
|
3419
|
+
jwks?: ConnectConnectorUpdateDataCase0ServerConfigJwks;
|
|
3420
|
+
/** OAuth token revocation endpoint URL. */
|
|
3421
|
+
revocation_endpoint?: string;
|
|
3422
|
+
/** OAuth token introspection endpoint URL. */
|
|
3423
|
+
introspection_endpoint?: string;
|
|
3424
|
+
/** OpenID Connect session termination endpoint URL. */
|
|
3425
|
+
end_session_endpoint?: string;
|
|
3426
|
+
/** OAuth device authorization endpoint URL. */
|
|
3427
|
+
device_authorization_endpoint?: string;
|
|
3428
|
+
/** OAuth dynamic client registration endpoint URL. */
|
|
3429
|
+
registration_endpoint?: string;
|
|
3430
|
+
/** OAuth response types supported by the server. */
|
|
3431
|
+
response_types_supported?: ConnectConnectorUpdateDataCase0ServerConfigResponseTypesSupportedList;
|
|
3432
|
+
/** Token endpoint client authentication methods supported by the server. */
|
|
3433
|
+
token_endpoint_auth_methods_supported?: ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList;
|
|
3434
|
+
/** Signing algorithms supported for token endpoint authentication. */
|
|
3435
|
+
token_endpoint_auth_signing_alg_values_supported?: ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList;
|
|
3436
|
+
/** OAuth scopes supported by the server. */
|
|
3437
|
+
scopes_supported?: ConnectConnectorUpdateDataCase0ServerConfigScopesSupportedList;
|
|
3438
|
+
/** OAuth grant types supported by the server. */
|
|
3439
|
+
grant_types_supported?: ConnectConnectorUpdateDataCase0ServerConfigGrantTypesSupportedList;
|
|
3440
|
+
/** OAuth response modes supported by the server. */
|
|
3441
|
+
response_modes_supported?: ConnectConnectorUpdateDataCase0ServerConfigResponseModesSupportedList;
|
|
3442
|
+
/** OpenID Connect subject identifier types supported by the server. */
|
|
3443
|
+
subject_types_supported?: ConnectConnectorUpdateDataCase0ServerConfigSubjectTypesSupportedList;
|
|
3444
|
+
/** Signing algorithms supported for ID tokens. */
|
|
3445
|
+
id_token_signing_alg_values_supported?: ConnectConnectorUpdateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList;
|
|
3446
|
+
/** Key management algorithms supported for encrypted ID tokens. */
|
|
3447
|
+
id_token_encryption_alg_values_supported?: ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList;
|
|
3448
|
+
/** Content encryption algorithms supported for encrypted ID tokens. */
|
|
3449
|
+
id_token_encryption_enc_values_supported?: ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList;
|
|
3450
|
+
/** OpenID Connect claim value types supported by the server. */
|
|
3451
|
+
claim_types_supported?: ConnectConnectorUpdateDataCase0ServerConfigClaimTypesSupportedList;
|
|
3452
|
+
/** Claims that the authorization server can return. */
|
|
3453
|
+
claims_supported?: ConnectConnectorUpdateDataCase0ServerConfigClaimsSupportedList;
|
|
3454
|
+
/** PKCE code challenge methods supported by the server. */
|
|
3455
|
+
code_challenge_methods_supported?: ConnectConnectorUpdateDataCase0ServerConfigCodeChallengeMethodsSupportedList;
|
|
3456
|
+
/** Authorization prompt values supported by the server. */
|
|
3457
|
+
prompt_values_supported?: ConnectConnectorUpdateDataCase0ServerConfigPromptValuesSupportedList;
|
|
3458
|
+
/** Whether authorization requests can use the claims parameter. */
|
|
3459
|
+
claims_parameter_supported?: boolean;
|
|
3460
|
+
/** Whether authorization requests can use signed request objects. */
|
|
3461
|
+
request_parameter_supported?: boolean;
|
|
3462
|
+
/** Whether authorization requests can use request_uri. */
|
|
3463
|
+
request_uri_parameter_supported?: boolean;
|
|
3464
|
+
/** Whether request_uri values must be registered in advance. */
|
|
3465
|
+
require_request_uri_registration?: boolean;
|
|
3466
|
+
/** Authorization server documentation URL. */
|
|
3467
|
+
service_documentation?: string;
|
|
3468
|
+
/** Authorization server privacy policy URL. */
|
|
3469
|
+
op_policy_uri?: string;
|
|
3470
|
+
/** Authorization server terms of service URL. */
|
|
3471
|
+
op_tos_uri?: string;
|
|
3472
|
+
/** Authorization server logo URL. */
|
|
3473
|
+
logo_uri?: string;
|
|
3474
|
+
/** Whether the server supports OAuth client ID metadata documents. */
|
|
3475
|
+
client_id_metadata_document_supported?: boolean;
|
|
3476
|
+
/** OAuth authorization-detail types supported by the server. */
|
|
3477
|
+
authorization_details_types_supported?: ConnectConnectorUpdateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList;
|
|
3478
|
+
}
|
|
3479
|
+
export const ConnectConnectorUpdateDataCase0ServerConfig =
|
|
3480
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3481
|
+
S.Struct({
|
|
3482
|
+
issuer: S.optional(S.String),
|
|
3483
|
+
authorization_endpoint: S.optional(S.String),
|
|
3484
|
+
token_endpoint: S.optional(S.String),
|
|
3485
|
+
userinfo_endpoint: S.optional(S.String),
|
|
3486
|
+
jwks_uri: S.optional(S.String),
|
|
3487
|
+
jwks: S.optional(ConnectConnectorUpdateDataCase0ServerConfigJwks),
|
|
3488
|
+
revocation_endpoint: S.optional(S.String),
|
|
3489
|
+
introspection_endpoint: S.optional(S.String),
|
|
3490
|
+
end_session_endpoint: S.optional(S.String),
|
|
3491
|
+
device_authorization_endpoint: S.optional(S.String),
|
|
3492
|
+
registration_endpoint: S.optional(S.String),
|
|
3493
|
+
response_types_supported: S.optional(
|
|
3494
|
+
ConnectConnectorUpdateDataCase0ServerConfigResponseTypesSupportedList,
|
|
3495
|
+
),
|
|
3496
|
+
token_endpoint_auth_methods_supported: S.optional(
|
|
3497
|
+
ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthMethodsSupportedList,
|
|
3498
|
+
),
|
|
3499
|
+
token_endpoint_auth_signing_alg_values_supported: S.optional(
|
|
3500
|
+
ConnectConnectorUpdateDataCase0ServerConfigTokenEndpointAuthSigningAlgValuesSupportedList,
|
|
3501
|
+
),
|
|
3502
|
+
scopes_supported: S.optional(
|
|
3503
|
+
ConnectConnectorUpdateDataCase0ServerConfigScopesSupportedList,
|
|
3504
|
+
),
|
|
3505
|
+
grant_types_supported: S.optional(
|
|
3506
|
+
ConnectConnectorUpdateDataCase0ServerConfigGrantTypesSupportedList,
|
|
3507
|
+
),
|
|
3508
|
+
response_modes_supported: S.optional(
|
|
3509
|
+
ConnectConnectorUpdateDataCase0ServerConfigResponseModesSupportedList,
|
|
3510
|
+
),
|
|
3511
|
+
subject_types_supported: S.optional(
|
|
3512
|
+
ConnectConnectorUpdateDataCase0ServerConfigSubjectTypesSupportedList,
|
|
3513
|
+
),
|
|
3514
|
+
id_token_signing_alg_values_supported: S.optional(
|
|
3515
|
+
ConnectConnectorUpdateDataCase0ServerConfigIdTokenSigningAlgValuesSupportedList,
|
|
3516
|
+
),
|
|
3517
|
+
id_token_encryption_alg_values_supported: S.optional(
|
|
3518
|
+
ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionAlgValuesSupportedList,
|
|
3519
|
+
),
|
|
3520
|
+
id_token_encryption_enc_values_supported: S.optional(
|
|
3521
|
+
ConnectConnectorUpdateDataCase0ServerConfigIdTokenEncryptionEncValuesSupportedList,
|
|
3522
|
+
),
|
|
3523
|
+
claim_types_supported: S.optional(
|
|
3524
|
+
ConnectConnectorUpdateDataCase0ServerConfigClaimTypesSupportedList,
|
|
3525
|
+
),
|
|
3526
|
+
claims_supported: S.optional(
|
|
3527
|
+
ConnectConnectorUpdateDataCase0ServerConfigClaimsSupportedList,
|
|
3528
|
+
),
|
|
3529
|
+
code_challenge_methods_supported: S.optional(
|
|
3530
|
+
ConnectConnectorUpdateDataCase0ServerConfigCodeChallengeMethodsSupportedList,
|
|
3531
|
+
),
|
|
3532
|
+
prompt_values_supported: S.optional(
|
|
3533
|
+
ConnectConnectorUpdateDataCase0ServerConfigPromptValuesSupportedList,
|
|
3534
|
+
),
|
|
3535
|
+
claims_parameter_supported: S.optional(S.Boolean),
|
|
3536
|
+
request_parameter_supported: S.optional(S.Boolean),
|
|
3537
|
+
request_uri_parameter_supported: S.optional(S.Boolean),
|
|
3538
|
+
require_request_uri_registration: S.optional(S.Boolean),
|
|
3539
|
+
service_documentation: S.optional(S.String),
|
|
3540
|
+
op_policy_uri: S.optional(S.String),
|
|
3541
|
+
op_tos_uri: S.optional(S.String),
|
|
3542
|
+
logo_uri: S.optional(S.String),
|
|
3543
|
+
client_id_metadata_document_supported: S.optional(S.Boolean),
|
|
3544
|
+
authorization_details_types_supported: S.optional(
|
|
3545
|
+
ConnectConnectorUpdateDataCase0ServerConfigAuthorizationDetailsTypesSupportedList,
|
|
3546
|
+
),
|
|
3547
|
+
}),
|
|
3548
|
+
).annotate({
|
|
3549
|
+
identifier: "ConnectConnectorUpdateDataCase0ServerConfig",
|
|
3550
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0ServerConfig>;
|
|
3551
|
+
|
|
3552
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
3553
|
+
export type ConnectConnectorUpdateDataCase0UserAuthorizationScopesList =
|
|
3554
|
+
Array<string>;
|
|
3555
|
+
export const ConnectConnectorUpdateDataCase0UserAuthorizationScopesList =
|
|
3556
|
+
/*@__PURE__*/ S.Array(
|
|
3557
|
+
S.String,
|
|
3558
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0UserAuthorizationScopesList>;
|
|
3559
|
+
|
|
3560
|
+
/** User authorization grant settings. */
|
|
3561
|
+
export interface ConnectConnectorUpdateDataCase0UserAuthorization {
|
|
3562
|
+
/** Whether this OAuth grant is enabled. */
|
|
3563
|
+
enabled: boolean;
|
|
3564
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
3565
|
+
scopes?: ConnectConnectorUpdateDataCase0UserAuthorizationScopesList;
|
|
3566
|
+
}
|
|
3567
|
+
export const ConnectConnectorUpdateDataCase0UserAuthorization =
|
|
3568
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3569
|
+
S.Struct({
|
|
3570
|
+
enabled: S.Boolean,
|
|
3571
|
+
scopes: S.optional(
|
|
3572
|
+
ConnectConnectorUpdateDataCase0UserAuthorizationScopesList,
|
|
3573
|
+
),
|
|
3574
|
+
}),
|
|
3575
|
+
).annotate({
|
|
3576
|
+
identifier: "ConnectConnectorUpdateDataCase0UserAuthorization",
|
|
3577
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0UserAuthorization>;
|
|
3578
|
+
|
|
3579
|
+
/** Refresh token settings. */
|
|
3580
|
+
export type ConnectConnectorUpdateDataCase0RefreshTokens =
|
|
3581
|
+
ConnectConnectorCreateDataCase0RefreshTokens;
|
|
3582
|
+
export const ConnectConnectorUpdateDataCase0RefreshTokens =
|
|
3583
|
+
ConnectConnectorCreateDataCase0RefreshTokens;
|
|
3584
|
+
|
|
3585
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
3586
|
+
export type ConnectConnectorUpdateDataCase0ClientCredentialsScopesList =
|
|
3587
|
+
Array<string>;
|
|
3588
|
+
export const ConnectConnectorUpdateDataCase0ClientCredentialsScopesList =
|
|
3589
|
+
/*@__PURE__*/ S.Array(
|
|
3590
|
+
S.String,
|
|
3591
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ClientCredentialsScopesList>;
|
|
3592
|
+
|
|
3593
|
+
/** Client credentials grant settings. */
|
|
3594
|
+
export interface ConnectConnectorUpdateDataCase0ClientCredentials {
|
|
3595
|
+
/** Whether this OAuth grant is enabled. */
|
|
3596
|
+
enabled: boolean;
|
|
3597
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
3598
|
+
scopes?: ConnectConnectorUpdateDataCase0ClientCredentialsScopesList;
|
|
3599
|
+
}
|
|
3600
|
+
export const ConnectConnectorUpdateDataCase0ClientCredentials =
|
|
3601
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3602
|
+
S.Struct({
|
|
3603
|
+
enabled: S.Boolean,
|
|
3604
|
+
scopes: S.optional(
|
|
3605
|
+
ConnectConnectorUpdateDataCase0ClientCredentialsScopesList,
|
|
3606
|
+
),
|
|
3607
|
+
}),
|
|
3608
|
+
).annotate({
|
|
3609
|
+
identifier: "ConnectConnectorUpdateDataCase0ClientCredentials",
|
|
3610
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0ClientCredentials>;
|
|
3611
|
+
|
|
3612
|
+
/** ID token claim names that Connect can expose. */
|
|
3613
|
+
export type ConnectConnectorUpdateDataCase0ForwardedClaimsIdTokenList =
|
|
3614
|
+
Array<string>;
|
|
3615
|
+
export const ConnectConnectorUpdateDataCase0ForwardedClaimsIdTokenList =
|
|
3616
|
+
/*@__PURE__*/ S.Array(
|
|
3617
|
+
S.String,
|
|
3618
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ForwardedClaimsIdTokenList>;
|
|
3619
|
+
|
|
3620
|
+
/** Allow-list of extra claims to propagate, keyed by source (idToken). Only claims named here and present in that source are exposed. */
|
|
3621
|
+
export interface ConnectConnectorUpdateDataCase0ForwardedClaims {
|
|
3622
|
+
/** ID token claim names that Connect can expose. */
|
|
3623
|
+
idToken?: ConnectConnectorUpdateDataCase0ForwardedClaimsIdTokenList;
|
|
3624
|
+
}
|
|
3625
|
+
export const ConnectConnectorUpdateDataCase0ForwardedClaims =
|
|
3626
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3627
|
+
S.Struct({
|
|
3628
|
+
idToken: S.optional(
|
|
3629
|
+
ConnectConnectorUpdateDataCase0ForwardedClaimsIdTokenList,
|
|
3630
|
+
),
|
|
3631
|
+
}),
|
|
3632
|
+
).annotate({
|
|
3633
|
+
identifier: "ConnectConnectorUpdateDataCase0ForwardedClaims",
|
|
3634
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0ForwardedClaims>;
|
|
3635
|
+
|
|
3636
|
+
/** Extra query parameters added to authorization URLs. */
|
|
3637
|
+
export type ConnectConnectorUpdateDataCase0AuthorizationUrlParamsMap = {
|
|
3638
|
+
[key: string]: string | undefined;
|
|
3639
|
+
};
|
|
3640
|
+
export const ConnectConnectorUpdateDataCase0AuthorizationUrlParamsMap =
|
|
3641
|
+
/*@__PURE__*/ S.Record(
|
|
3642
|
+
S.String,
|
|
3643
|
+
S.String,
|
|
3644
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0AuthorizationUrlParamsMap>;
|
|
3645
|
+
|
|
3646
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
3647
|
+
export type ConnectConnectorUpdateDataCase0JwtBearerScopesList = Array<string>;
|
|
3648
|
+
export const ConnectConnectorUpdateDataCase0JwtBearerScopesList =
|
|
3649
|
+
/*@__PURE__*/ S.Array(
|
|
3650
|
+
S.String,
|
|
3651
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0JwtBearerScopesList>;
|
|
3652
|
+
|
|
3653
|
+
/** Additional claims included in generated JWT assertions. */
|
|
3654
|
+
export type ConnectConnectorUpdateDataCase0JwtBearerAdditionalClaimsMap = {
|
|
3655
|
+
[key: string]: unknown | undefined;
|
|
3656
|
+
};
|
|
3657
|
+
export const ConnectConnectorUpdateDataCase0JwtBearerAdditionalClaimsMap =
|
|
3658
|
+
/*@__PURE__*/ S.Record(
|
|
3659
|
+
S.String,
|
|
3660
|
+
S.Unknown,
|
|
3661
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0JwtBearerAdditionalClaimsMap>;
|
|
3662
|
+
|
|
3663
|
+
/** JWT bearer grant settings. */
|
|
3664
|
+
export interface ConnectConnectorUpdateDataCase0JwtBearer {
|
|
3665
|
+
/** Whether JWT bearer grants are enabled. */
|
|
3666
|
+
enabled?: boolean;
|
|
3667
|
+
/** Default scopes to request when token params specify scopes: [\"*\"]. */
|
|
3668
|
+
scopes?: ConnectConnectorUpdateDataCase0JwtBearerScopesList;
|
|
3669
|
+
/** Default JWT subject claim. */
|
|
3670
|
+
sub?: string;
|
|
3671
|
+
/** Default JWT issuer claim. */
|
|
3672
|
+
iss?: string;
|
|
3673
|
+
/** Default JWT audience claim. */
|
|
3674
|
+
aud?: string;
|
|
3675
|
+
/** Additional claims included in generated JWT assertions. */
|
|
3676
|
+
additionalClaims?: ConnectConnectorUpdateDataCase0JwtBearerAdditionalClaimsMap;
|
|
3677
|
+
/** JWT lifetime in seconds. */
|
|
3678
|
+
ttl?: number;
|
|
3679
|
+
/** Whether JWT bearer requests also use client credentials. */
|
|
3680
|
+
useClientCredentials?: boolean;
|
|
3681
|
+
}
|
|
3682
|
+
export const ConnectConnectorUpdateDataCase0JwtBearer = /*@__PURE__*/ S.suspend(
|
|
3683
|
+
() =>
|
|
3684
|
+
S.Struct({
|
|
3685
|
+
enabled: S.optional(S.Boolean),
|
|
3686
|
+
scopes: S.optional(ConnectConnectorUpdateDataCase0JwtBearerScopesList),
|
|
3687
|
+
sub: S.optional(S.String),
|
|
3688
|
+
iss: S.optional(S.String),
|
|
3689
|
+
aud: S.optional(S.String),
|
|
3690
|
+
additionalClaims: S.optional(
|
|
3691
|
+
ConnectConnectorUpdateDataCase0JwtBearerAdditionalClaimsMap,
|
|
3692
|
+
),
|
|
3693
|
+
ttl: S.optional(S.Number),
|
|
3694
|
+
useClientCredentials: S.optional(S.Boolean),
|
|
3695
|
+
}),
|
|
3696
|
+
).annotate({
|
|
3697
|
+
identifier: "ConnectConnectorUpdateDataCase0JwtBearer",
|
|
3698
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0JwtBearer>;
|
|
3699
|
+
|
|
3700
|
+
/** Additional claims included in the client assertion. */
|
|
3701
|
+
export type ConnectConnectorUpdateDataCase0ClientAssertionClaimsMap = {
|
|
3702
|
+
[key: string]: unknown | undefined;
|
|
3703
|
+
};
|
|
3704
|
+
export const ConnectConnectorUpdateDataCase0ClientAssertionClaimsMap =
|
|
3705
|
+
/*@__PURE__*/ S.Record(
|
|
3706
|
+
S.String,
|
|
3707
|
+
S.Unknown,
|
|
3708
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase0ClientAssertionClaimsMap>;
|
|
3709
|
+
|
|
3710
|
+
/** `private_key_jwt` client assertion settings. */
|
|
3711
|
+
export interface ConnectConnectorUpdateDataCase0ClientAssertion {
|
|
3712
|
+
/** OAuth client assertion type. Defaults to urn:ietf:params:oauth:client-assertion-type:jwt-bearer. An empty string clears the configured type. */
|
|
3713
|
+
type?: string;
|
|
3714
|
+
/** Client assertion lifetime in seconds. */
|
|
3715
|
+
ttl?: number;
|
|
3716
|
+
/** Additional claims included in the client assertion. */
|
|
3717
|
+
claims?: ConnectConnectorUpdateDataCase0ClientAssertionClaimsMap;
|
|
3718
|
+
}
|
|
3719
|
+
export const ConnectConnectorUpdateDataCase0ClientAssertion =
|
|
3720
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3721
|
+
S.Struct({
|
|
3722
|
+
type: S.optional(S.String),
|
|
3723
|
+
ttl: S.optional(S.Number),
|
|
3724
|
+
claims: S.optional(
|
|
3725
|
+
ConnectConnectorUpdateDataCase0ClientAssertionClaimsMap,
|
|
3726
|
+
),
|
|
3727
|
+
}),
|
|
3728
|
+
).annotate({
|
|
3729
|
+
identifier: "ConnectConnectorUpdateDataCase0ClientAssertion",
|
|
3730
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0ClientAssertion>;
|
|
3731
|
+
|
|
3732
|
+
export interface ConnectConnectorUpdateDataCase0 {
|
|
3733
|
+
/** Authorization server base URL used for discovery. */
|
|
3734
|
+
serverUrl?: string;
|
|
3735
|
+
/** Authorization server metadata. Values override discovered metadata. Empty known string fields remove their stored overrides. */
|
|
3736
|
+
serverConfig?: ConnectConnectorUpdateDataCase0ServerConfig;
|
|
3737
|
+
/** OAuth client ID. */
|
|
3738
|
+
clientId?: string;
|
|
3739
|
+
/** OAuth client name. */
|
|
3740
|
+
clientName?: string;
|
|
3741
|
+
/** OAuth client secret. */
|
|
3742
|
+
clientSecret?: string | Redacted.Redacted<string>;
|
|
3743
|
+
/** OAuth token endpoint authentication method. Common values are client_secret_post, client_secret_basic, none, and private_key_jwt. If omitted, Vercel selects a supported method from serverConfig and otherwise uses client_secret_post. */
|
|
3744
|
+
tokenEndpointAuthMethod?: string;
|
|
3745
|
+
/** OAuth authorization response type. Defaults to code. Other provider-supported values are accepted. An empty string clears the configured type. */
|
|
3746
|
+
responseType?: string;
|
|
3747
|
+
/** Whether user authorization must use PKCE. */
|
|
3748
|
+
pkceRequired?: boolean;
|
|
3749
|
+
/** PKCE code challenge method. Supported values are S256 and plain. Vercel prefers S256 when the provider supports it. An empty string clears the configured method. */
|
|
3750
|
+
codeChallengeMethod?: string;
|
|
3751
|
+
/** User authorization grant settings. */
|
|
3752
|
+
userAuthorization?: ConnectConnectorUpdateDataCase0UserAuthorization;
|
|
3753
|
+
/** Refresh token settings. */
|
|
3754
|
+
refreshTokens?: ConnectConnectorCreateDataCase0RefreshTokens;
|
|
3755
|
+
/** Client credentials grant settings. */
|
|
3756
|
+
clientCredentials?: ConnectConnectorUpdateDataCase0ClientCredentials;
|
|
3757
|
+
/** Allow-list of extra claims to propagate, keyed by source (idToken). Only claims named here and present in that source are exposed. */
|
|
3758
|
+
forwardedClaims?: ConnectConnectorUpdateDataCase0ForwardedClaims;
|
|
3759
|
+
/** Default audience used when a token request omits one. An empty string clears the default. */
|
|
3760
|
+
defaultAudience?: string;
|
|
3761
|
+
/** Default token lifetime in seconds to use when the token response omits expires_in. */
|
|
3762
|
+
defaultTokenExpiresIn?: number;
|
|
3763
|
+
/** Extra query parameters added to authorization URLs. */
|
|
3764
|
+
authorizationUrlParams?: ConnectConnectorUpdateDataCase0AuthorizationUrlParamsMap;
|
|
3765
|
+
/** JWT bearer grant settings. */
|
|
3766
|
+
jwtBearer?: ConnectConnectorUpdateDataCase0JwtBearer;
|
|
3767
|
+
/** `private_key_jwt` client assertion settings. */
|
|
3768
|
+
clientAssertion?: ConnectConnectorUpdateDataCase0ClientAssertion;
|
|
3769
|
+
}
|
|
3770
|
+
export const ConnectConnectorUpdateDataCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
3771
|
+
S.Struct({
|
|
3772
|
+
serverUrl: S.optional(S.String),
|
|
3773
|
+
serverConfig: S.optional(ConnectConnectorUpdateDataCase0ServerConfig),
|
|
3774
|
+
clientId: S.optional(S.String),
|
|
3775
|
+
clientName: S.optional(S.String),
|
|
3776
|
+
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
3777
|
+
tokenEndpointAuthMethod: S.optional(S.String),
|
|
3778
|
+
responseType: S.optional(S.String),
|
|
3779
|
+
pkceRequired: S.optional(S.Boolean),
|
|
3780
|
+
codeChallengeMethod: S.optional(S.String),
|
|
3781
|
+
userAuthorization: S.optional(
|
|
3782
|
+
ConnectConnectorUpdateDataCase0UserAuthorization,
|
|
3783
|
+
),
|
|
3784
|
+
refreshTokens: S.optional(ConnectConnectorCreateDataCase0RefreshTokens),
|
|
3785
|
+
clientCredentials: S.optional(
|
|
3786
|
+
ConnectConnectorUpdateDataCase0ClientCredentials,
|
|
3787
|
+
),
|
|
3788
|
+
forwardedClaims: S.optional(ConnectConnectorUpdateDataCase0ForwardedClaims),
|
|
3789
|
+
defaultAudience: S.optional(S.String),
|
|
3790
|
+
defaultTokenExpiresIn: S.optional(S.Number),
|
|
3791
|
+
authorizationUrlParams: S.optional(
|
|
3792
|
+
ConnectConnectorUpdateDataCase0AuthorizationUrlParamsMap,
|
|
3793
|
+
),
|
|
3794
|
+
jwtBearer: S.optional(ConnectConnectorUpdateDataCase0JwtBearer),
|
|
3795
|
+
clientAssertion: S.optional(ConnectConnectorUpdateDataCase0ClientAssertion),
|
|
3796
|
+
}),
|
|
3797
|
+
).annotate({
|
|
3798
|
+
identifier: "ConnectConnectorUpdateDataCase0",
|
|
3799
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase0>;
|
|
3800
|
+
|
|
3801
|
+
/** Stored API key value IDs to delete. */
|
|
3802
|
+
export type ConnectConnectorUpdateDataCase1ToDeleteList = Array<string>;
|
|
3803
|
+
export const ConnectConnectorUpdateDataCase1ToDeleteList =
|
|
3804
|
+
/*@__PURE__*/ S.Array(
|
|
3805
|
+
S.String,
|
|
3806
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase1ToDeleteList>;
|
|
3807
|
+
|
|
3808
|
+
export type ConnectConnectorUpdateDataCase1ToAddItem =
|
|
3809
|
+
ConnectConnectorCreateDataCase1ValuesItem;
|
|
3810
|
+
export const ConnectConnectorUpdateDataCase1ToAddItem =
|
|
3811
|
+
ConnectConnectorCreateDataCase1ValuesItem;
|
|
3812
|
+
|
|
3813
|
+
/** API key values to add. */
|
|
3814
|
+
export type ConnectConnectorUpdateDataCase1ToAddList =
|
|
3815
|
+
Array<ConnectConnectorCreateDataCase1ValuesItem>;
|
|
3816
|
+
export const ConnectConnectorUpdateDataCase1ToAddList = /*@__PURE__*/ S.Array(
|
|
3817
|
+
ConnectConnectorCreateDataCase1ValuesItem,
|
|
3818
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase1ToAddList>;
|
|
3819
|
+
|
|
3820
|
+
/** The timestamp when the API key value expires in milliseconds. */
|
|
3821
|
+
export type ConnectConnectorUpdateDataCase1ToUpdateItemExpiresAt =
|
|
3822
|
+
| number
|
|
3823
|
+
| string;
|
|
3824
|
+
export const ConnectConnectorUpdateDataCase1ToUpdateItemExpiresAt =
|
|
3825
|
+
S.Unknown as any as S.Schema<ConnectConnectorUpdateDataCase1ToUpdateItemExpiresAt>;
|
|
3826
|
+
|
|
3827
|
+
export interface ConnectConnectorUpdateDataCase1ToUpdateItem {
|
|
3828
|
+
/** Stored API key value ID. */
|
|
3829
|
+
id: string;
|
|
3830
|
+
/** Replacement API key value. Use null to keep the stored value. */
|
|
3831
|
+
value?: string;
|
|
3832
|
+
/** Replacement scope. Use null to remove the scope. */
|
|
3833
|
+
scope?: string;
|
|
3834
|
+
/** The timestamp when the API key value expires in milliseconds. */
|
|
3835
|
+
expiresAt?: ConnectConnectorUpdateDataCase1ToUpdateItemExpiresAt;
|
|
3836
|
+
}
|
|
3837
|
+
export const ConnectConnectorUpdateDataCase1ToUpdateItem =
|
|
3838
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3839
|
+
S.Struct({
|
|
3840
|
+
id: S.String,
|
|
3841
|
+
value: S.optional(S.String),
|
|
3842
|
+
scope: S.optional(S.String),
|
|
3843
|
+
expiresAt: S.optional(
|
|
3844
|
+
ConnectConnectorUpdateDataCase1ToUpdateItemExpiresAt,
|
|
3845
|
+
),
|
|
3846
|
+
}),
|
|
3847
|
+
).annotate({
|
|
3848
|
+
identifier: "ConnectConnectorUpdateDataCase1ToUpdateItem",
|
|
3849
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase1ToUpdateItem>;
|
|
3850
|
+
|
|
3851
|
+
/** Existing API key values to update. */
|
|
3852
|
+
export type ConnectConnectorUpdateDataCase1ToUpdateList =
|
|
3853
|
+
Array<ConnectConnectorUpdateDataCase1ToUpdateItem>;
|
|
3854
|
+
export const ConnectConnectorUpdateDataCase1ToUpdateList =
|
|
3855
|
+
/*@__PURE__*/ S.Array(
|
|
3856
|
+
ConnectConnectorUpdateDataCase1ToUpdateItem,
|
|
3857
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase1ToUpdateList>;
|
|
3858
|
+
|
|
3859
|
+
export interface ConnectConnectorUpdateDataCase1 {
|
|
3860
|
+
/** Stored API key value IDs to delete. */
|
|
3861
|
+
toDelete?: ConnectConnectorUpdateDataCase1ToDeleteList;
|
|
3862
|
+
/** API key values to add. */
|
|
3863
|
+
toAdd?: ConnectConnectorUpdateDataCase1ToAddList;
|
|
3864
|
+
/** Existing API key values to update. */
|
|
3865
|
+
toUpdate?: ConnectConnectorUpdateDataCase1ToUpdateList;
|
|
3866
|
+
}
|
|
3867
|
+
export const ConnectConnectorUpdateDataCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
3868
|
+
S.Struct({
|
|
3869
|
+
toDelete: S.optional(ConnectConnectorUpdateDataCase1ToDeleteList),
|
|
3870
|
+
toAdd: S.optional(ConnectConnectorUpdateDataCase1ToAddList),
|
|
3871
|
+
toUpdate: S.optional(ConnectConnectorUpdateDataCase1ToUpdateList),
|
|
3872
|
+
}),
|
|
3873
|
+
).annotate({
|
|
3874
|
+
identifier: "ConnectConnectorUpdateDataCase1",
|
|
3875
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase1>;
|
|
3876
|
+
|
|
3877
|
+
/** GitHub App owner type. */
|
|
3878
|
+
export type ConnectConnectorUpdateDataCase2OwnerType =
|
|
3879
|
+
| "user"
|
|
3880
|
+
| "organization"
|
|
3881
|
+
| "User"
|
|
3882
|
+
| "Organization";
|
|
3883
|
+
export const ConnectConnectorUpdateDataCase2OwnerType = S.String;
|
|
3884
|
+
|
|
3885
|
+
/** GitHub App owner. */
|
|
3886
|
+
export interface ConnectConnectorUpdateDataCase2Owner {
|
|
3887
|
+
/** GitHub App owner type. */
|
|
3888
|
+
type: ConnectConnectorUpdateDataCase2OwnerType | (string & {});
|
|
3889
|
+
/** GitHub App owner numeric ID. */
|
|
3890
|
+
id: number;
|
|
3891
|
+
/** GitHub App owner login. */
|
|
3892
|
+
slug: string;
|
|
3893
|
+
/** GitHub App owner display name. */
|
|
3894
|
+
name?: string;
|
|
3895
|
+
}
|
|
3896
|
+
export const ConnectConnectorUpdateDataCase2Owner = /*@__PURE__*/ S.suspend(
|
|
3897
|
+
() =>
|
|
3898
|
+
S.Struct({
|
|
3899
|
+
type: ConnectConnectorUpdateDataCase2OwnerType,
|
|
3900
|
+
id: S.Number,
|
|
3901
|
+
slug: S.String,
|
|
3902
|
+
name: S.optional(S.String),
|
|
3903
|
+
}),
|
|
3904
|
+
).annotate({
|
|
3905
|
+
identifier: "ConnectConnectorUpdateDataCase2Owner",
|
|
3906
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase2Owner>;
|
|
3907
|
+
|
|
3908
|
+
/** Additional provider metadata stored with the connector. */
|
|
3909
|
+
export type ConnectConnectorUpdateDataCase2ExtrasMap = {
|
|
3910
|
+
[key: string]: unknown | undefined;
|
|
3911
|
+
};
|
|
3912
|
+
export const ConnectConnectorUpdateDataCase2ExtrasMap = /*@__PURE__*/ S.Record(
|
|
3913
|
+
S.String,
|
|
3914
|
+
S.Unknown,
|
|
3915
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase2ExtrasMap>;
|
|
3916
|
+
|
|
3917
|
+
export interface ConnectConnectorUpdateDataCase2 {
|
|
3918
|
+
/** GitHub App numeric ID. */
|
|
3919
|
+
appId?: number;
|
|
3920
|
+
/** GitHub App slug. */
|
|
3921
|
+
appSlug?: string;
|
|
3922
|
+
/** GitHub App display name. */
|
|
3923
|
+
appName?: string;
|
|
3924
|
+
/** GitHub App OAuth client ID. */
|
|
3925
|
+
clientId?: string;
|
|
3926
|
+
/** GitHub App owner. */
|
|
3927
|
+
owner?: ConnectConnectorUpdateDataCase2Owner;
|
|
3928
|
+
/** GitHub App OAuth client secret. */
|
|
3929
|
+
clientSecret?: string | Redacted.Redacted<string>;
|
|
3930
|
+
/** GitHub App private key in PEM format. */
|
|
3931
|
+
privateKeyPem?: string;
|
|
3932
|
+
/** GitHub App webhook secret. */
|
|
3933
|
+
webhookSecret?: string;
|
|
3934
|
+
/** Additional provider metadata stored with the connector. */
|
|
3935
|
+
extras?: ConnectConnectorUpdateDataCase2ExtrasMap;
|
|
3936
|
+
}
|
|
3937
|
+
export const ConnectConnectorUpdateDataCase2 = /*@__PURE__*/ S.suspend(() =>
|
|
3938
|
+
S.Struct({
|
|
3939
|
+
appId: S.optional(S.Number),
|
|
3940
|
+
appSlug: S.optional(S.String),
|
|
3941
|
+
appName: S.optional(S.String),
|
|
3942
|
+
clientId: S.optional(S.String),
|
|
3943
|
+
owner: S.optional(ConnectConnectorUpdateDataCase2Owner),
|
|
3944
|
+
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
3945
|
+
privateKeyPem: S.optional(S.String),
|
|
3946
|
+
webhookSecret: S.optional(S.String),
|
|
3947
|
+
extras: S.optional(ConnectConnectorUpdateDataCase2ExtrasMap),
|
|
3948
|
+
}),
|
|
3949
|
+
).annotate({
|
|
3950
|
+
identifier: "ConnectConnectorUpdateDataCase2",
|
|
3951
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase2>;
|
|
3952
|
+
|
|
3953
|
+
/** OAuth scopes requested for Linear application tokens. */
|
|
3954
|
+
export type ConnectConnectorUpdateDataCase3AppScopesList = Array<string>;
|
|
3955
|
+
export const ConnectConnectorUpdateDataCase3AppScopesList =
|
|
3956
|
+
/*@__PURE__*/ S.Array(
|
|
3957
|
+
S.String,
|
|
3958
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase3AppScopesList>;
|
|
3959
|
+
|
|
3960
|
+
/** OAuth scopes requested for Linear user tokens. */
|
|
3961
|
+
export type ConnectConnectorUpdateDataCase3UserScopesList = Array<string>;
|
|
3962
|
+
export const ConnectConnectorUpdateDataCase3UserScopesList =
|
|
3963
|
+
/*@__PURE__*/ S.Array(
|
|
3964
|
+
S.String,
|
|
3965
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase3UserScopesList>;
|
|
3966
|
+
|
|
3967
|
+
/** Linear organization that owns the OAuth application. */
|
|
3968
|
+
export type ConnectConnectorUpdateDataCase3OwnerOrganization =
|
|
3969
|
+
ConnectConnectorCreateDataCase3OwnerOrganization;
|
|
3970
|
+
export const ConnectConnectorUpdateDataCase3OwnerOrganization =
|
|
3971
|
+
ConnectConnectorCreateDataCase3OwnerOrganization;
|
|
3972
|
+
|
|
3973
|
+
/** Registered redirect URIs for the Linear OAuth application. */
|
|
3974
|
+
export type ConnectConnectorUpdateDataCase3ApplicationRedirectUrisList =
|
|
3975
|
+
Array<string>;
|
|
3976
|
+
export const ConnectConnectorUpdateDataCase3ApplicationRedirectUrisList =
|
|
3977
|
+
/*@__PURE__*/ S.Array(
|
|
3978
|
+
S.String,
|
|
3979
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase3ApplicationRedirectUrisList>;
|
|
3980
|
+
|
|
3981
|
+
/** Linear resource types delivered to the webhook. */
|
|
3982
|
+
export type ConnectConnectorUpdateDataCase3ApplicationWebhookResourceTypesList =
|
|
3983
|
+
Array<string>;
|
|
3984
|
+
export const ConnectConnectorUpdateDataCase3ApplicationWebhookResourceTypesList =
|
|
3985
|
+
/*@__PURE__*/ S.Array(
|
|
3986
|
+
S.String,
|
|
3987
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase3ApplicationWebhookResourceTypesList>;
|
|
3988
|
+
|
|
3989
|
+
/** Linear OAuth application metadata. */
|
|
3990
|
+
export interface ConnectConnectorUpdateDataCase3Application {
|
|
3991
|
+
/** Linear OAuth application ID. */
|
|
3992
|
+
id: string;
|
|
3993
|
+
/** Linear OAuth client ID. */
|
|
3994
|
+
clientId: string;
|
|
3995
|
+
/** Linear OAuth application name. */
|
|
3996
|
+
name: string;
|
|
3997
|
+
/** Linear OAuth application description. */
|
|
3998
|
+
description?: string | null;
|
|
3999
|
+
/** Linear OAuth application developer name. */
|
|
4000
|
+
developer?: string | null;
|
|
4001
|
+
/** Linear OAuth application developer URL. */
|
|
4002
|
+
developerUrl?: string | null;
|
|
4003
|
+
/** Linear OAuth application image URL. */
|
|
4004
|
+
imageUrl?: string | null;
|
|
4005
|
+
/** Registered redirect URIs for the Linear OAuth application. */
|
|
4006
|
+
redirectUris?: ConnectConnectorUpdateDataCase3ApplicationRedirectUrisList;
|
|
4007
|
+
/** Linear OAuth application distribution mode. */
|
|
4008
|
+
distribution?: string | null;
|
|
4009
|
+
/** Linear resource types delivered to the webhook. */
|
|
4010
|
+
webhookResourceTypes?: ConnectConnectorUpdateDataCase3ApplicationWebhookResourceTypesList;
|
|
4011
|
+
/** Linear webhook URL. */
|
|
4012
|
+
webhookUrl?: string | null;
|
|
4013
|
+
/** Whether the Linear webhook is enabled. */
|
|
4014
|
+
webhookEnabled?: boolean;
|
|
4015
|
+
/** Linear OAuth application creation timestamp. */
|
|
4016
|
+
createdAt?: string;
|
|
4017
|
+
/** Linear OAuth application update timestamp. */
|
|
4018
|
+
updatedAt?: string;
|
|
4019
|
+
}
|
|
4020
|
+
export const ConnectConnectorUpdateDataCase3Application =
|
|
4021
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
4022
|
+
S.Struct({
|
|
4023
|
+
id: S.String,
|
|
4024
|
+
clientId: S.String,
|
|
4025
|
+
name: S.String,
|
|
4026
|
+
description: S.optional(S.NullOr(S.String)),
|
|
4027
|
+
developer: S.optional(S.NullOr(S.String)),
|
|
4028
|
+
developerUrl: S.optional(S.NullOr(S.String)),
|
|
4029
|
+
imageUrl: S.optional(S.NullOr(S.String)),
|
|
4030
|
+
redirectUris: S.optional(
|
|
4031
|
+
ConnectConnectorUpdateDataCase3ApplicationRedirectUrisList,
|
|
4032
|
+
),
|
|
4033
|
+
distribution: S.optional(S.NullOr(S.String)),
|
|
4034
|
+
webhookResourceTypes: S.optional(
|
|
4035
|
+
ConnectConnectorUpdateDataCase3ApplicationWebhookResourceTypesList,
|
|
4036
|
+
),
|
|
4037
|
+
webhookUrl: S.optional(S.NullOr(S.String)),
|
|
4038
|
+
webhookEnabled: S.optional(S.Boolean),
|
|
4039
|
+
createdAt: S.optional(S.String),
|
|
4040
|
+
updatedAt: S.optional(S.String),
|
|
4041
|
+
}),
|
|
4042
|
+
).annotate({
|
|
4043
|
+
identifier: "ConnectConnectorUpdateDataCase3Application",
|
|
4044
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase3Application>;
|
|
4045
|
+
|
|
4046
|
+
/** Additional provider metadata stored with the connector. */
|
|
4047
|
+
export type ConnectConnectorUpdateDataCase3ExtrasMap = {
|
|
4048
|
+
[key: string]: unknown | undefined;
|
|
4049
|
+
};
|
|
4050
|
+
export const ConnectConnectorUpdateDataCase3ExtrasMap = /*@__PURE__*/ S.Record(
|
|
4051
|
+
S.String,
|
|
4052
|
+
S.Unknown,
|
|
4053
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase3ExtrasMap>;
|
|
4054
|
+
|
|
4055
|
+
export interface ConnectConnectorUpdateDataCase3 {
|
|
4056
|
+
/** Linear application ID. */
|
|
4057
|
+
appId?: string;
|
|
4058
|
+
/** Linear application name. */
|
|
4059
|
+
appName?: string;
|
|
4060
|
+
/** Linear OAuth client ID. */
|
|
4061
|
+
clientId?: string;
|
|
4062
|
+
/** Linear OAuth client secret. */
|
|
4063
|
+
clientSecret?: string | Redacted.Redacted<string>;
|
|
4064
|
+
/** Linear webhook verification secret. */
|
|
4065
|
+
webhookSecret?: string;
|
|
4066
|
+
/** OAuth scopes requested for Linear application tokens. */
|
|
4067
|
+
appScopes?: ConnectConnectorUpdateDataCase3AppScopesList;
|
|
4068
|
+
/** OAuth scopes requested for Linear user tokens. */
|
|
4069
|
+
userScopes?: ConnectConnectorUpdateDataCase3UserScopesList;
|
|
4070
|
+
/** Linear organization that owns the OAuth application. */
|
|
4071
|
+
ownerOrganization?: ConnectConnectorCreateDataCase3OwnerOrganization;
|
|
4072
|
+
/** Linear OAuth application metadata. */
|
|
4073
|
+
application?: ConnectConnectorUpdateDataCase3Application;
|
|
4074
|
+
/** Additional provider metadata stored with the connector. */
|
|
4075
|
+
extras?: ConnectConnectorUpdateDataCase3ExtrasMap;
|
|
4076
|
+
}
|
|
4077
|
+
export const ConnectConnectorUpdateDataCase3 = /*@__PURE__*/ S.suspend(() =>
|
|
4078
|
+
S.Struct({
|
|
4079
|
+
appId: S.optional(S.String),
|
|
4080
|
+
appName: S.optional(S.String),
|
|
4081
|
+
clientId: S.optional(S.String),
|
|
4082
|
+
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4083
|
+
webhookSecret: S.optional(S.String),
|
|
4084
|
+
appScopes: S.optional(ConnectConnectorUpdateDataCase3AppScopesList),
|
|
4085
|
+
userScopes: S.optional(ConnectConnectorUpdateDataCase3UserScopesList),
|
|
4086
|
+
ownerOrganization: S.optional(
|
|
4087
|
+
ConnectConnectorCreateDataCase3OwnerOrganization,
|
|
4088
|
+
),
|
|
4089
|
+
application: S.optional(ConnectConnectorUpdateDataCase3Application),
|
|
4090
|
+
extras: S.optional(ConnectConnectorUpdateDataCase3ExtrasMap),
|
|
4091
|
+
}),
|
|
4092
|
+
).annotate({
|
|
4093
|
+
identifier: "ConnectConnectorUpdateDataCase3",
|
|
4094
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase3>;
|
|
4095
|
+
|
|
4096
|
+
export interface ConnectConnectorUpdateDataCase4 {
|
|
4097
|
+
/** Salesforce connected app consumer key. */
|
|
4098
|
+
consumerKey?: string;
|
|
4099
|
+
/** Salesforce connected app consumer secret. */
|
|
4100
|
+
consumerSecret?: string;
|
|
4101
|
+
/** Salesforce login host, such as login.salesforce.com. */
|
|
4102
|
+
loginHost?: string;
|
|
4103
|
+
}
|
|
4104
|
+
export const ConnectConnectorUpdateDataCase4 = /*@__PURE__*/ S.suspend(() =>
|
|
4105
|
+
S.Struct({
|
|
4106
|
+
consumerKey: S.optional(S.String),
|
|
4107
|
+
consumerSecret: S.optional(S.String),
|
|
4108
|
+
loginHost: S.optional(S.String),
|
|
4109
|
+
}),
|
|
4110
|
+
).annotate({
|
|
4111
|
+
identifier: "ConnectConnectorUpdateDataCase4",
|
|
4112
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase4>;
|
|
4113
|
+
|
|
4114
|
+
/** Slack workspace metadata. */
|
|
4115
|
+
export type ConnectConnectorUpdateDataCase5SlackTeam =
|
|
4116
|
+
ConnectConnectorCreateDataCase7SlackTeam;
|
|
4117
|
+
export const ConnectConnectorUpdateDataCase5SlackTeam =
|
|
4118
|
+
ConnectConnectorCreateDataCase7SlackTeam;
|
|
4119
|
+
|
|
4120
|
+
/** OAuth scopes requested for Slack bot tokens. */
|
|
4121
|
+
export type ConnectConnectorUpdateDataCase5BotScopesList = Array<string>;
|
|
4122
|
+
export const ConnectConnectorUpdateDataCase5BotScopesList =
|
|
4123
|
+
/*@__PURE__*/ S.Array(
|
|
4124
|
+
S.String,
|
|
4125
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase5BotScopesList>;
|
|
4126
|
+
|
|
4127
|
+
/** OAuth scopes requested for Slack user tokens. */
|
|
4128
|
+
export type ConnectConnectorUpdateDataCase5UserScopesList = Array<string>;
|
|
4129
|
+
export const ConnectConnectorUpdateDataCase5UserScopesList =
|
|
4130
|
+
/*@__PURE__*/ S.Array(
|
|
4131
|
+
S.String,
|
|
4132
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase5UserScopesList>;
|
|
4133
|
+
|
|
4134
|
+
export type ConnectConnectorUpdateDataCase5SlashCommandsItem =
|
|
4135
|
+
ConnectConnectorCreateDataCase7SlashCommandsItem;
|
|
4136
|
+
export const ConnectConnectorUpdateDataCase5SlashCommandsItem =
|
|
4137
|
+
ConnectConnectorCreateDataCase7SlashCommandsItem;
|
|
4138
|
+
|
|
4139
|
+
/** Slash commands configured for the managed Slack app. */
|
|
4140
|
+
export type ConnectConnectorUpdateDataCase5SlashCommandsList =
|
|
4141
|
+
Array<ConnectConnectorCreateDataCase7SlashCommandsItem>;
|
|
4142
|
+
export const ConnectConnectorUpdateDataCase5SlashCommandsList =
|
|
4143
|
+
/*@__PURE__*/ S.Array(
|
|
4144
|
+
ConnectConnectorCreateDataCase7SlashCommandsItem,
|
|
4145
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase5SlashCommandsList>;
|
|
4146
|
+
|
|
4147
|
+
/** Where Slack exposes the shortcut. */
|
|
4148
|
+
export type ConnectConnectorUpdateDataCase5ShortcutsItemType =
|
|
4149
|
+
| "global"
|
|
4150
|
+
| "message";
|
|
4151
|
+
export const ConnectConnectorUpdateDataCase5ShortcutsItemType = S.String;
|
|
4152
|
+
|
|
4153
|
+
export interface ConnectConnectorUpdateDataCase5ShortcutsItem {
|
|
4154
|
+
/** Where Slack exposes the shortcut. */
|
|
4155
|
+
type: ConnectConnectorUpdateDataCase5ShortcutsItemType | (string & {});
|
|
4156
|
+
/** Shortcut display name. */
|
|
4157
|
+
name: string;
|
|
4158
|
+
/** Identifier included in the shortcut callback. */
|
|
4159
|
+
callbackId: string;
|
|
4160
|
+
/** Description shown for the shortcut in Slack. */
|
|
4161
|
+
description: string;
|
|
4162
|
+
}
|
|
4163
|
+
export const ConnectConnectorUpdateDataCase5ShortcutsItem =
|
|
4164
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
4165
|
+
S.Struct({
|
|
4166
|
+
type: ConnectConnectorUpdateDataCase5ShortcutsItemType,
|
|
4167
|
+
name: S.String,
|
|
4168
|
+
callbackId: S.String,
|
|
4169
|
+
description: S.String,
|
|
4170
|
+
}),
|
|
4171
|
+
).annotate({
|
|
4172
|
+
identifier: "ConnectConnectorUpdateDataCase5ShortcutsItem",
|
|
4173
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase5ShortcutsItem>;
|
|
4174
|
+
|
|
4175
|
+
/** Global and message shortcuts configured for the Slack app. */
|
|
4176
|
+
export type ConnectConnectorUpdateDataCase5ShortcutsList =
|
|
4177
|
+
Array<ConnectConnectorUpdateDataCase5ShortcutsItem>;
|
|
4178
|
+
export const ConnectConnectorUpdateDataCase5ShortcutsList =
|
|
4179
|
+
/*@__PURE__*/ S.Array(
|
|
4180
|
+
ConnectConnectorUpdateDataCase5ShortcutsItem,
|
|
4181
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase5ShortcutsList>;
|
|
4182
|
+
|
|
4183
|
+
/** Additional provider metadata stored with the connector. */
|
|
4184
|
+
export type ConnectConnectorUpdateDataCase5ExtrasMap = {
|
|
4185
|
+
[key: string]: unknown | undefined;
|
|
4186
|
+
};
|
|
4187
|
+
export const ConnectConnectorUpdateDataCase5ExtrasMap = /*@__PURE__*/ S.Record(
|
|
4188
|
+
S.String,
|
|
4189
|
+
S.Unknown,
|
|
4190
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase5ExtrasMap>;
|
|
4191
|
+
|
|
4192
|
+
export interface ConnectConnectorUpdateDataCase5 {
|
|
4193
|
+
/** Slack app ID. */
|
|
4194
|
+
appId?: string;
|
|
4195
|
+
/** Slack app display name. */
|
|
4196
|
+
appName?: string;
|
|
4197
|
+
/** Slack app OAuth client ID. */
|
|
4198
|
+
clientId?: string;
|
|
4199
|
+
/** Slack app OAuth client secret. */
|
|
4200
|
+
clientSecret?: string | Redacted.Redacted<string>;
|
|
4201
|
+
/** Slack workspace metadata. */
|
|
4202
|
+
slackTeam?: ConnectConnectorCreateDataCase7SlackTeam;
|
|
4203
|
+
/** Slack request signing secret. */
|
|
4204
|
+
signingSecret?: string;
|
|
4205
|
+
/** Legacy Slack webhook verification token. */
|
|
4206
|
+
verificationToken?: string;
|
|
4207
|
+
/** OAuth scopes requested for Slack bot tokens. */
|
|
4208
|
+
botScopes?: ConnectConnectorUpdateDataCase5BotScopesList;
|
|
4209
|
+
/** OAuth scopes requested for Slack user tokens. */
|
|
4210
|
+
userScopes?: ConnectConnectorUpdateDataCase5UserScopesList;
|
|
4211
|
+
/** Slash commands configured for the managed Slack app. */
|
|
4212
|
+
slashCommands?: ConnectConnectorUpdateDataCase5SlashCommandsList;
|
|
4213
|
+
/** Global and message shortcuts configured for the Slack app. */
|
|
4214
|
+
shortcuts?: ConnectConnectorUpdateDataCase5ShortcutsList;
|
|
4215
|
+
/** Additional provider metadata stored with the connector. */
|
|
4216
|
+
extras?: ConnectConnectorUpdateDataCase5ExtrasMap;
|
|
4217
|
+
}
|
|
4218
|
+
export const ConnectConnectorUpdateDataCase5 = /*@__PURE__*/ S.suspend(() =>
|
|
4219
|
+
S.Struct({
|
|
4220
|
+
appId: S.optional(S.String),
|
|
4221
|
+
appName: S.optional(S.String),
|
|
4222
|
+
clientId: S.optional(S.String),
|
|
4223
|
+
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4224
|
+
slackTeam: S.optional(ConnectConnectorCreateDataCase7SlackTeam),
|
|
4225
|
+
signingSecret: S.optional(S.String),
|
|
4226
|
+
verificationToken: S.optional(S.String),
|
|
4227
|
+
botScopes: S.optional(ConnectConnectorUpdateDataCase5BotScopesList),
|
|
4228
|
+
userScopes: S.optional(ConnectConnectorUpdateDataCase5UserScopesList),
|
|
4229
|
+
slashCommands: S.optional(ConnectConnectorUpdateDataCase5SlashCommandsList),
|
|
4230
|
+
shortcuts: S.optional(ConnectConnectorUpdateDataCase5ShortcutsList),
|
|
4231
|
+
extras: S.optional(ConnectConnectorUpdateDataCase5ExtrasMap),
|
|
4232
|
+
}),
|
|
4233
|
+
).annotate({
|
|
4234
|
+
identifier: "ConnectConnectorUpdateDataCase5",
|
|
4235
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase5>;
|
|
4236
|
+
|
|
4237
|
+
export interface ConnectConnectorUpdateDataCase6 {
|
|
4238
|
+
/** Snowflake account identifier. */
|
|
4239
|
+
accountIdentifier?: string;
|
|
4240
|
+
/** Default Snowflake role for created sessions. */
|
|
4241
|
+
defaultSessionRole?: string;
|
|
4242
|
+
}
|
|
4243
|
+
export const ConnectConnectorUpdateDataCase6 = /*@__PURE__*/ S.suspend(() =>
|
|
4244
|
+
S.Struct({
|
|
4245
|
+
accountIdentifier: S.optional(S.String),
|
|
4246
|
+
defaultSessionRole: S.optional(S.String),
|
|
4247
|
+
}),
|
|
4248
|
+
).annotate({
|
|
4249
|
+
identifier: "ConnectConnectorUpdateDataCase6",
|
|
4250
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase6>;
|
|
4251
|
+
|
|
4252
|
+
export interface ConnectConnectorUpdateDataCase7 {
|
|
4253
|
+
/** Snowflake account identifier. */
|
|
4254
|
+
accountIdentifier?: string;
|
|
4255
|
+
}
|
|
4256
|
+
export const ConnectConnectorUpdateDataCase7 = /*@__PURE__*/ S.suspend(() =>
|
|
4257
|
+
S.Struct({
|
|
4258
|
+
accountIdentifier: S.optional(S.String),
|
|
4259
|
+
}),
|
|
4260
|
+
).annotate({
|
|
4261
|
+
identifier: "ConnectConnectorUpdateDataCase7",
|
|
4262
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase7>;
|
|
4263
|
+
|
|
4264
|
+
export type ConnectConnectorUpdateDataCase8PhoneNumbersList = Array<string>;
|
|
4265
|
+
export const ConnectConnectorUpdateDataCase8PhoneNumbersList =
|
|
4266
|
+
/*@__PURE__*/ S.Array(
|
|
4267
|
+
S.String,
|
|
4268
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase8PhoneNumbersList>;
|
|
4269
|
+
|
|
4270
|
+
export interface ConnectConnectorUpdateDataCase8 {
|
|
4271
|
+
/** Linq partner API token for the shared line. */
|
|
4272
|
+
apiToken?: string | Redacted.Redacted<string>;
|
|
4273
|
+
phoneNumbers?: ConnectConnectorUpdateDataCase8PhoneNumbersList;
|
|
4274
|
+
}
|
|
4275
|
+
export const ConnectConnectorUpdateDataCase8 = /*@__PURE__*/ S.suspend(() =>
|
|
4276
|
+
S.Struct({
|
|
4277
|
+
apiToken: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4278
|
+
phoneNumbers: S.optional(ConnectConnectorUpdateDataCase8PhoneNumbersList),
|
|
4279
|
+
}),
|
|
4280
|
+
).annotate({
|
|
4281
|
+
identifier: "ConnectConnectorUpdateDataCase8",
|
|
4282
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase8>;
|
|
4283
|
+
|
|
4284
|
+
/** E.164 Sendblue lines this connector sends and receives on. Used as the connector's display name, and the only lines its webhooks are registered for; an empty array clears them, which also removes the webhook subscription. */
|
|
4285
|
+
export type ConnectConnectorUpdateDataCase9PhoneNumbersList = Array<string>;
|
|
4286
|
+
export const ConnectConnectorUpdateDataCase9PhoneNumbersList =
|
|
4287
|
+
/*@__PURE__*/ S.Array(
|
|
4288
|
+
S.String,
|
|
4289
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase9PhoneNumbersList>;
|
|
4290
|
+
|
|
4291
|
+
export interface ConnectConnectorUpdateDataCase9 {
|
|
4292
|
+
/** Sendblue API key id (`sb-api-key-id`). */
|
|
4293
|
+
apiKeyId?: string;
|
|
4294
|
+
/** Sendblue API secret key (`sb-api-secret-key`). */
|
|
4295
|
+
apiSecretKey?: string | Redacted.Redacted<string>;
|
|
4296
|
+
/** E.164 Sendblue lines this connector sends and receives on. Used as the connector's display name, and the only lines its webhooks are registered for; an empty array clears them, which also removes the webhook subscription. */
|
|
4297
|
+
phoneNumbers?: ConnectConnectorUpdateDataCase9PhoneNumbersList;
|
|
4298
|
+
}
|
|
4299
|
+
export const ConnectConnectorUpdateDataCase9 = /*@__PURE__*/ S.suspend(() =>
|
|
4300
|
+
S.Struct({
|
|
4301
|
+
apiKeyId: S.optional(S.String),
|
|
4302
|
+
apiSecretKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4303
|
+
phoneNumbers: S.optional(ConnectConnectorUpdateDataCase9PhoneNumbersList),
|
|
4304
|
+
}),
|
|
4305
|
+
).annotate({
|
|
4306
|
+
identifier: "ConnectConnectorUpdateDataCase9",
|
|
4307
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase9>;
|
|
4308
|
+
|
|
4309
|
+
export interface ConnectConnectorUpdateDataCase10 {
|
|
4310
|
+
/** Photon project secret. */
|
|
4311
|
+
projectSecret?: string;
|
|
4312
|
+
/** Photon webhook verification secret. */
|
|
4313
|
+
webhookSecret?: string;
|
|
4314
|
+
/** Whether Connect should recreate the Photon webhook. */
|
|
4315
|
+
repairWebhook?: boolean;
|
|
4316
|
+
}
|
|
4317
|
+
export const ConnectConnectorUpdateDataCase10 = /*@__PURE__*/ S.suspend(() =>
|
|
4318
|
+
S.Struct({
|
|
4319
|
+
projectSecret: S.optional(S.String),
|
|
4320
|
+
webhookSecret: S.optional(S.String),
|
|
4321
|
+
repairWebhook: S.optional(S.Boolean),
|
|
4322
|
+
}),
|
|
4323
|
+
).annotate({
|
|
4324
|
+
identifier: "ConnectConnectorUpdateDataCase10",
|
|
4325
|
+
}) as any as S.Schema<ConnectConnectorUpdateDataCase10>;
|
|
4326
|
+
|
|
4327
|
+
export type ConnectConnectorUpdateDataCase11Map = {
|
|
4328
|
+
[key: string]: unknown | undefined;
|
|
4329
|
+
};
|
|
4330
|
+
export const ConnectConnectorUpdateDataCase11Map = /*@__PURE__*/ S.Record(
|
|
4331
|
+
S.String,
|
|
4332
|
+
S.Unknown,
|
|
4333
|
+
) as any as S.Schema<ConnectConnectorUpdateDataCase11Map>;
|
|
4334
|
+
|
|
4335
|
+
/** Provider configuration fields for the connector type. */
|
|
4336
|
+
export type ConnectConnectorUpdateData =
|
|
4337
|
+
| ConnectConnectorUpdateDataCase0
|
|
4338
|
+
| ConnectConnectorUpdateDataCase1
|
|
4339
|
+
| ConnectConnectorUpdateDataCase2
|
|
4340
|
+
| ConnectConnectorUpdateDataCase3
|
|
4341
|
+
| ConnectConnectorUpdateDataCase4
|
|
4342
|
+
| ConnectConnectorUpdateDataCase5
|
|
4343
|
+
| ConnectConnectorUpdateDataCase6
|
|
4344
|
+
| ConnectConnectorUpdateDataCase7
|
|
4345
|
+
| ConnectConnectorUpdateDataCase8
|
|
4346
|
+
| ConnectConnectorUpdateDataCase9
|
|
4347
|
+
| ConnectConnectorUpdateDataCase10
|
|
4348
|
+
| ConnectConnectorUpdateDataCase11Map;
|
|
4349
|
+
export const ConnectConnectorUpdateData =
|
|
4350
|
+
S.Unknown as any as S.Schema<ConnectConnectorUpdateData>;
|
|
4351
|
+
|
|
4352
|
+
export interface UpdateConnectorRequest {
|
|
4353
|
+
/** Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */
|
|
4354
|
+
connector: string;
|
|
4355
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
4356
|
+
teamId?: string;
|
|
4357
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
4358
|
+
slug?: string;
|
|
4359
|
+
/** Whether the triggers are enabled for this connector. */
|
|
4360
|
+
triggers?: boolean;
|
|
4361
|
+
/** Default trigger events for this connector. */
|
|
4362
|
+
events?: UpdateConnectorRequestEventsList;
|
|
4363
|
+
/** Provider configuration fields to update. */
|
|
4364
|
+
data?: ConnectConnectorUpdateData;
|
|
4365
|
+
/** SHA-1 digest of a PNG or JPEG icon that is at least 640 by 640 pixels. This field does not accept a URL or image bytes. First compute the digest and upload the raw image with [POST /v2/files](https://vercel.com/docs/rest-api/deployments/upload-deployment-files). Send `Content-Length` and the same 40-character digest in `x-vercel-digest`. Then set `icon` to that digest. ```js import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; const VERCEL_TOKEN = process.env.VERCEL_TOKEN; const connectorId = 'scl_...'; const bytes = await readFile('icon.png'); const digest = createHash('sha1').update(bytes).digest('hex'); await fetch('https://api.vercel.com/v2/files', { method: 'POST', headers: { Authorization: `Bearer ${VERCEL_TOKEN}`, 'Content-Type': 'application/octet-stream', 'Content-Length': String(bytes.length), 'x-vercel-digest': digest, }, body: bytes, }); await fetch(`https://api.vercel.com/v2/connect/connectors/${connectorId}`, { method: 'PATCH', headers: { Authorization: `Bearer ${VERCEL_TOKEN}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ icon: digest }), }); ``` */
|
|
4366
|
+
icon?: string;
|
|
4367
|
+
backgroundColor?: string;
|
|
4368
|
+
accentColor?: string;
|
|
4369
|
+
/** Full team-scoped UID, such as `slack/my-bot`. It cannot contain whitespace, `%`, `#`, control characters, or Vercel-owned namespaces. Changing it breaks callers that use the old UID. The stable connector ID does not change. */
|
|
4370
|
+
uid?: string;
|
|
4371
|
+
/** Display name for the connector. It is trimmed and cannot be empty or contain control characters. */
|
|
4372
|
+
name?: string;
|
|
4373
|
+
}
|
|
4374
|
+
export const UpdateConnectorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
4375
|
+
S.Struct({
|
|
4376
|
+
connector: S.String.pipe(T.Label()),
|
|
4377
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
4378
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
4379
|
+
triggers: S.optional(S.Boolean),
|
|
4380
|
+
events: S.optional(UpdateConnectorRequestEventsList),
|
|
4381
|
+
data: S.optional(ConnectConnectorUpdateData),
|
|
4382
|
+
icon: S.optional(S.String),
|
|
4383
|
+
backgroundColor: S.optional(S.String),
|
|
4384
|
+
accentColor: S.optional(S.String),
|
|
4385
|
+
uid: S.optional(S.String),
|
|
4386
|
+
name: S.optional(S.String),
|
|
4387
|
+
}).pipe(
|
|
4388
|
+
T.Http({
|
|
4389
|
+
method: "PATCH",
|
|
4390
|
+
uri: "/v2/connect/connectors/{connector}",
|
|
4391
|
+
code: 200,
|
|
4392
|
+
}),
|
|
4393
|
+
),
|
|
4394
|
+
).annotate({
|
|
4395
|
+
identifier: "UpdateConnectorRequest",
|
|
4396
|
+
}) as any as S.Schema<UpdateConnectorRequest>;
|
|
4397
|
+
|
|
4398
|
+
/** The affected authorization scope. user means each affected user must authorize again. */
|
|
4399
|
+
export type ConnectReconsentScope = "user";
|
|
4400
|
+
export const ConnectReconsentScope = S.String;
|
|
4401
|
+
|
|
4402
|
+
/** Existing authorizations no longer cover the connector's configured scopes, so they must be re-authorized. */
|
|
4403
|
+
export interface ConnectReconsent {
|
|
4404
|
+
/** The affected authorization scope. user means each affected user must authorize again. */
|
|
4405
|
+
scope: ConnectReconsentScope;
|
|
4406
|
+
}
|
|
4407
|
+
export const ConnectReconsent = /*@__PURE__*/ S.suspend(() =>
|
|
4408
|
+
S.Struct({
|
|
4409
|
+
scope: ConnectReconsentScope,
|
|
4410
|
+
}),
|
|
4411
|
+
).annotate({
|
|
4412
|
+
identifier: "ConnectReconsent",
|
|
4413
|
+
}) as any as S.Schema<ConnectReconsent>;
|
|
4414
|
+
|
|
4415
|
+
/** done means the external service was updated. required means the Vercel update was saved, but provider-side configuration still needs attention. */
|
|
4416
|
+
export type ConnectServiceSyncStatus = "done" | "required";
|
|
4417
|
+
export const ConnectServiceSyncStatus = S.String;
|
|
4418
|
+
|
|
4419
|
+
/** Connector fields that caused the synchronization error. */
|
|
4420
|
+
export type ConnectServiceSyncErrorFieldsList = Array<string>;
|
|
4421
|
+
export const ConnectServiceSyncErrorFieldsList = /*@__PURE__*/ S.Array(
|
|
4422
|
+
S.String,
|
|
4423
|
+
) as any as S.Schema<ConnectServiceSyncErrorFieldsList>;
|
|
4424
|
+
|
|
4425
|
+
/** Provider-specific error details that are safe to expose. */
|
|
4426
|
+
export type ConnectServiceSyncErrorVendorMap = {
|
|
4427
|
+
[key: string]: unknown | undefined;
|
|
4428
|
+
};
|
|
4429
|
+
export const ConnectServiceSyncErrorVendorMap = /*@__PURE__*/ S.Record(
|
|
4430
|
+
S.String,
|
|
4431
|
+
S.Unknown,
|
|
4432
|
+
) as any as S.Schema<ConnectServiceSyncErrorVendorMap>;
|
|
4433
|
+
|
|
4434
|
+
/** Provider synchronization errors, when synchronization is required. */
|
|
4435
|
+
export interface ConnectServiceSyncError {
|
|
4436
|
+
/** Human-readable provider synchronization error. */
|
|
4437
|
+
message: string;
|
|
4438
|
+
/** Connector fields that caused the synchronization error. */
|
|
4439
|
+
fields?: ConnectServiceSyncErrorFieldsList;
|
|
4440
|
+
/** Provider-specific error details that are safe to expose. */
|
|
4441
|
+
vendor?: ConnectServiceSyncErrorVendorMap;
|
|
4442
|
+
}
|
|
4443
|
+
export const ConnectServiceSyncError = /*@__PURE__*/ S.suspend(() =>
|
|
4444
|
+
S.Struct({
|
|
4445
|
+
message: S.String,
|
|
4446
|
+
fields: S.optional(ConnectServiceSyncErrorFieldsList),
|
|
4447
|
+
vendor: S.optional(ConnectServiceSyncErrorVendorMap),
|
|
4448
|
+
}),
|
|
4449
|
+
).annotate({
|
|
4450
|
+
identifier: "ConnectServiceSyncError",
|
|
4451
|
+
}) as any as S.Schema<ConnectServiceSyncError>;
|
|
4452
|
+
|
|
4453
|
+
/** Provider synchronization errors. Present when serviceSync.status is required. */
|
|
4454
|
+
export type ConnectServiceSyncErrorsList = Array<ConnectServiceSyncError>;
|
|
4455
|
+
export const ConnectServiceSyncErrorsList = /*@__PURE__*/ S.Array(
|
|
4456
|
+
ConnectServiceSyncError,
|
|
4457
|
+
) as any as S.Schema<ConnectServiceSyncErrorsList>;
|
|
4458
|
+
|
|
4459
|
+
/** Provider-side configuration synchronization result. */
|
|
4460
|
+
export interface ConnectServiceSync {
|
|
4461
|
+
/** done means the external service was updated. required means the Vercel update was saved, but provider-side configuration still needs attention. */
|
|
4462
|
+
status: ConnectServiceSyncStatus;
|
|
4463
|
+
/** Provider synchronization errors. Present when serviceSync.status is required. */
|
|
4464
|
+
errors?: ConnectServiceSyncErrorsList;
|
|
4465
|
+
}
|
|
4466
|
+
export const ConnectServiceSync = /*@__PURE__*/ S.suspend(() =>
|
|
4467
|
+
S.Struct({
|
|
4468
|
+
status: ConnectServiceSyncStatus,
|
|
4469
|
+
errors: S.optional(ConnectServiceSyncErrorsList),
|
|
4470
|
+
}),
|
|
4471
|
+
).annotate({
|
|
4472
|
+
identifier: "ConnectServiceSync",
|
|
4473
|
+
}) as any as S.Schema<ConnectServiceSync>;
|
|
4474
|
+
|
|
4475
|
+
/** Updated connector and any required provider follow-up actions. */
|
|
4476
|
+
export interface ConnectConnectorUpdateResult {
|
|
4477
|
+
/** Updated connector. */
|
|
4478
|
+
connector: ConnectConnector;
|
|
4479
|
+
/** When true, prompt a team owner or administrator to reinstall the connector before relying on the change. */
|
|
4480
|
+
reinstallNeeded?: boolean;
|
|
4481
|
+
/** Present when affected users must authorize the connector's new permissions. */
|
|
4482
|
+
reconsentNeeded?: ConnectReconsent;
|
|
4483
|
+
/** Result of synchronizing the change with the external service. */
|
|
4484
|
+
serviceSync?: ConnectServiceSync;
|
|
4485
|
+
}
|
|
4486
|
+
export const ConnectConnectorUpdateResult = /*@__PURE__*/ S.suspend(() =>
|
|
4487
|
+
S.Struct({
|
|
4488
|
+
connector: ConnectConnector,
|
|
4489
|
+
reinstallNeeded: S.optional(S.Boolean),
|
|
4490
|
+
reconsentNeeded: S.optional(ConnectReconsent),
|
|
4491
|
+
serviceSync: S.optional(ConnectServiceSync),
|
|
4492
|
+
}),
|
|
4493
|
+
).annotate({
|
|
4494
|
+
identifier: "ConnectConnectorUpdateResult",
|
|
4495
|
+
}) as any as S.Schema<ConnectConnectorUpdateResult>;
|
|
4496
|
+
|
|
4497
|
+
export type UpsertConnectorProjectConnectionRequestEnvironmentsItemCase0 =
|
|
4498
|
+
| "development"
|
|
4499
|
+
| "preview"
|
|
4500
|
+
| "production";
|
|
4501
|
+
export const UpsertConnectorProjectConnectionRequestEnvironmentsItemCase0 =
|
|
4502
|
+
S.String;
|
|
4503
|
+
|
|
4504
|
+
/** A built-in environment name or the stable env_* ID of a custom environment. */
|
|
4505
|
+
export type UpsertConnectorProjectConnectionRequestEnvironmentsItem =
|
|
4506
|
+
| UpsertConnectorProjectConnectionRequestEnvironmentsItemCase0
|
|
4507
|
+
| string;
|
|
4508
|
+
export const UpsertConnectorProjectConnectionRequestEnvironmentsItem =
|
|
4509
|
+
S.Unknown as any as S.Schema<UpsertConnectorProjectConnectionRequestEnvironmentsItem>;
|
|
4510
|
+
|
|
4511
|
+
/** One or more built-in environment names or stable custom environment IDs that belong to the project. Duplicate values are accepted and removed. */
|
|
4512
|
+
export type UpsertConnectorProjectConnectionRequestEnvironmentsList =
|
|
4513
|
+
Array<UpsertConnectorProjectConnectionRequestEnvironmentsItem>;
|
|
4514
|
+
export const UpsertConnectorProjectConnectionRequestEnvironmentsList =
|
|
4515
|
+
/*@__PURE__*/ S.Array(
|
|
4516
|
+
UpsertConnectorProjectConnectionRequestEnvironmentsItem,
|
|
4517
|
+
) as any as S.Schema<UpsertConnectorProjectConnectionRequestEnvironmentsList>;
|
|
4518
|
+
|
|
4519
|
+
export interface UpsertConnectorProjectConnectionRequest {
|
|
4520
|
+
/** Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */
|
|
4521
|
+
connector: string;
|
|
4522
|
+
/** Vercel project ID. */
|
|
4523
|
+
projectId: string;
|
|
4524
|
+
/** The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
4525
|
+
teamId?: string;
|
|
4526
|
+
/** The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */
|
|
4527
|
+
slug?: string;
|
|
4528
|
+
/** One or more built-in environment names or stable custom environment IDs that belong to the project. Duplicate values are accepted and removed. */
|
|
4529
|
+
environments: UpsertConnectorProjectConnectionRequestEnvironmentsList;
|
|
4530
|
+
}
|
|
4531
|
+
export const UpsertConnectorProjectConnectionRequest = /*@__PURE__*/ S.suspend(
|
|
4532
|
+
() =>
|
|
4533
|
+
S.Struct({
|
|
4534
|
+
connector: S.String.pipe(T.Label()),
|
|
4535
|
+
projectId: S.String.pipe(T.Label()),
|
|
4536
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
4537
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
4538
|
+
environments: UpsertConnectorProjectConnectionRequestEnvironmentsList,
|
|
4539
|
+
}).pipe(
|
|
4540
|
+
T.Http({
|
|
4541
|
+
method: "POST",
|
|
4542
|
+
uri: "/v1/connect/connectors/{connector}/projects/{projectId}",
|
|
4543
|
+
code: 200,
|
|
4544
|
+
}),
|
|
4545
|
+
),
|
|
4546
|
+
).annotate({
|
|
4547
|
+
identifier: "UpsertConnectorProjectConnectionRequest",
|
|
4548
|
+
}) as any as S.Schema<UpsertConnectorProjectConnectionRequest>;
|
|
4549
|
+
|
|
4550
|
+
export type CreateConnectorError =
|
|
4551
|
+
| BadRequest
|
|
4552
|
+
| Forbidden
|
|
4553
|
+
| NotFound
|
|
4554
|
+
| Conflict
|
|
4555
|
+
| UnprocessableEntity
|
|
4556
|
+
| VercelOpError;
|
|
4557
|
+
/** Create a connector Create a connector and optionally link it to a project. Use `type` with complete provider data, or use `service` with `connectionMethod` so Connect can supply the type, endpoints, templates, and defaults. */
|
|
4558
|
+
export const createConnector: API.OperationMethod<
|
|
4559
|
+
CreateConnectorRequest,
|
|
4560
|
+
ConnectConnectorCreateResult,
|
|
4561
|
+
CreateConnectorError,
|
|
4562
|
+
VercelOpContext
|
|
4563
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4564
|
+
input: CreateConnectorRequest,
|
|
4565
|
+
output: ConnectConnectorCreateResult,
|
|
4566
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
4567
|
+
protocol: VercelProtocol,
|
|
4568
|
+
retry: Retry.Retry,
|
|
4569
|
+
}));
|
|
4570
|
+
|
|
4571
|
+
export type CreateConnectorAuthorizationRequestError =
|
|
4572
|
+
| BadRequest
|
|
4573
|
+
| Forbidden
|
|
4574
|
+
| NotFound
|
|
4575
|
+
| VercelOpError;
|
|
4576
|
+
/** Create a Connect authorization request Create an authorization request for a connector and return the URL and verifier details needed to complete the flow. */
|
|
4577
|
+
export const createConnectorAuthorizationRequest: API.OperationMethod<
|
|
4578
|
+
CreateConnectorAuthorizationRequestRequest,
|
|
4579
|
+
CreateConnectorAuthorizationRequestResponse,
|
|
4580
|
+
CreateConnectorAuthorizationRequestError,
|
|
4581
|
+
VercelOpContext
|
|
4582
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4583
|
+
input: CreateConnectorAuthorizationRequestRequest,
|
|
4584
|
+
output: CreateConnectorAuthorizationRequestResponse,
|
|
4585
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
4586
|
+
protocol: VercelProtocol,
|
|
4587
|
+
retry: Retry.Retry,
|
|
4588
|
+
}));
|
|
4589
|
+
|
|
4590
|
+
export type DeleteConnectorError =
|
|
4591
|
+
| BadRequest
|
|
4592
|
+
| Forbidden
|
|
4593
|
+
| NotFound
|
|
4594
|
+
| Conflict
|
|
4595
|
+
| UnprocessableEntity
|
|
4596
|
+
| VercelOpError;
|
|
4597
|
+
/** Delete a connector Delete a connector, its project connections, and its installation records. */
|
|
4598
|
+
export const deleteConnector: API.OperationMethod<
|
|
4599
|
+
DeleteConnectorRequest,
|
|
4600
|
+
DeleteConnectorResponse,
|
|
4601
|
+
DeleteConnectorError,
|
|
4602
|
+
VercelOpContext
|
|
4603
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4604
|
+
input: DeleteConnectorRequest,
|
|
4605
|
+
output: DeleteConnectorResponse,
|
|
4606
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
4607
|
+
protocol: VercelProtocol,
|
|
4608
|
+
retry: Retry.Retry,
|
|
4609
|
+
}));
|
|
4610
|
+
|
|
4611
|
+
export type DeleteConnectorProjectConnectionError =
|
|
4612
|
+
| BadRequest
|
|
4613
|
+
| Forbidden
|
|
4614
|
+
| NotFound
|
|
4615
|
+
| VercelOpError;
|
|
4616
|
+
/** Disconnect a connector from a project Disconnect a connector from a project. */
|
|
4617
|
+
export const deleteConnectorProjectConnection: API.OperationMethod<
|
|
4618
|
+
DeleteConnectorProjectConnectionRequest,
|
|
4619
|
+
DeleteConnectorProjectConnectionResponse,
|
|
4620
|
+
DeleteConnectorProjectConnectionError,
|
|
4621
|
+
VercelOpContext
|
|
4622
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4623
|
+
input: DeleteConnectorProjectConnectionRequest,
|
|
4624
|
+
output: DeleteConnectorProjectConnectionResponse,
|
|
4625
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
4626
|
+
protocol: VercelProtocol,
|
|
4627
|
+
retry: Retry.Retry,
|
|
4628
|
+
}));
|
|
4629
|
+
|
|
4630
|
+
export type GetConnectorError =
|
|
4631
|
+
| BadRequest
|
|
4632
|
+
| Forbidden
|
|
4633
|
+
| NotFound
|
|
4634
|
+
| UnprocessableEntity
|
|
4635
|
+
| VercelOpError;
|
|
4636
|
+
/** Get a connector Get the connector by ID. Accepts a dashboard/team requester or a deployment's project OIDC token; project requesters may only read connectors linked to their project and environment. */
|
|
4637
|
+
export const getConnector: API.OperationMethod<
|
|
4638
|
+
GetConnectorRequest,
|
|
4639
|
+
ConnectConnector,
|
|
4640
|
+
GetConnectorError,
|
|
4641
|
+
VercelOpContext
|
|
4642
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4643
|
+
input: GetConnectorRequest,
|
|
4644
|
+
output: ConnectConnector,
|
|
4645
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
4646
|
+
protocol: VercelProtocol,
|
|
4647
|
+
retry: Retry.Retry,
|
|
4648
|
+
}));
|
|
4649
|
+
|
|
4650
|
+
export type GetConnectorProjectConnectionError =
|
|
4651
|
+
| BadRequest
|
|
4652
|
+
| Forbidden
|
|
4653
|
+
| NotFound
|
|
4654
|
+
| VercelOpError;
|
|
4655
|
+
/** Get a connector project connection Get the configuration that connects a connector to a project. */
|
|
4656
|
+
export const getConnectorProjectConnection: API.OperationMethod<
|
|
4657
|
+
GetConnectorProjectConnectionRequest,
|
|
4658
|
+
ConnectProjectConnection,
|
|
4659
|
+
GetConnectorProjectConnectionError,
|
|
4660
|
+
VercelOpContext
|
|
4661
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4662
|
+
input: GetConnectorProjectConnectionRequest,
|
|
4663
|
+
output: ConnectProjectConnection,
|
|
4664
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
4665
|
+
protocol: VercelProtocol,
|
|
4666
|
+
retry: Retry.Retry,
|
|
4667
|
+
}));
|
|
4668
|
+
|
|
4669
|
+
export type GetConnectorTokenError =
|
|
4670
|
+
| BadRequest
|
|
4671
|
+
| Forbidden
|
|
4672
|
+
| NotFound
|
|
4673
|
+
| UnprocessableEntity
|
|
4674
|
+
| VercelOpError;
|
|
4675
|
+
/** Get a Connect token Get an access token for a connector identified by the path parameter and scoped to the requester. */
|
|
4676
|
+
export const getConnectorToken: API.OperationMethod<
|
|
4677
|
+
GetConnectorTokenRequest,
|
|
4678
|
+
GetConnectorTokenResponse,
|
|
4679
|
+
GetConnectorTokenError,
|
|
4680
|
+
VercelOpContext
|
|
4681
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4682
|
+
input: GetConnectorTokenRequest,
|
|
4683
|
+
output: GetConnectorTokenResponse,
|
|
4684
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
4685
|
+
protocol: VercelProtocol,
|
|
4686
|
+
retry: Retry.Retry,
|
|
4687
|
+
}));
|
|
4688
|
+
|
|
4689
|
+
export type ListConnectorProjectConnectionsError =
|
|
4690
|
+
| BadRequest
|
|
4691
|
+
| Forbidden
|
|
4692
|
+
| NotFound
|
|
4693
|
+
| UnprocessableEntity
|
|
4694
|
+
| VercelOpError;
|
|
4695
|
+
/** List projects for a connector List the projects connected to a connector and the environments where each connection is available. */
|
|
4696
|
+
export const listConnectorProjectConnections: API.OperationMethod<
|
|
4697
|
+
ListConnectorProjectConnectionsRequest,
|
|
4698
|
+
ConnectConnectorProjectConnectionList,
|
|
4699
|
+
ListConnectorProjectConnectionsError,
|
|
4700
|
+
VercelOpContext
|
|
4701
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4702
|
+
input: ListConnectorProjectConnectionsRequest,
|
|
4703
|
+
output: ConnectConnectorProjectConnectionList,
|
|
4704
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
4705
|
+
protocol: VercelProtocol,
|
|
4706
|
+
retry: Retry.Retry,
|
|
4707
|
+
}));
|
|
4708
|
+
|
|
4709
|
+
export type ListConnectorsError =
|
|
4710
|
+
| BadRequest
|
|
4711
|
+
| Forbidden
|
|
4712
|
+
| UnprocessableEntity
|
|
4713
|
+
| VercelOpError;
|
|
4714
|
+
/** List connectors List connectors that belong to a team. */
|
|
4715
|
+
export const listConnectors: API.OperationMethod<
|
|
4716
|
+
ListConnectorsRequest,
|
|
4717
|
+
ConnectConnectorList,
|
|
4718
|
+
ListConnectorsError,
|
|
4719
|
+
VercelOpContext
|
|
4720
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4721
|
+
input: ListConnectorsRequest,
|
|
4722
|
+
output: ConnectConnectorList,
|
|
4723
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity],
|
|
4724
|
+
protocol: VercelProtocol,
|
|
4725
|
+
retry: Retry.Retry,
|
|
4726
|
+
}));
|
|
4727
|
+
|
|
4728
|
+
export type ListProjectConnectorConnectionsError =
|
|
4729
|
+
| BadRequest
|
|
4730
|
+
| Forbidden
|
|
4731
|
+
| NotFound
|
|
4732
|
+
| VercelOpError;
|
|
4733
|
+
/** List connectors for a project List the connectors connected to a project and the environments where each connection is available. */
|
|
4734
|
+
export const listProjectConnectorConnections: API.OperationMethod<
|
|
4735
|
+
ListProjectConnectorConnectionsRequest,
|
|
4736
|
+
ConnectProjectConnectorConnectionList,
|
|
4737
|
+
ListProjectConnectorConnectionsError,
|
|
4738
|
+
VercelOpContext
|
|
4739
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4740
|
+
input: ListProjectConnectorConnectionsRequest,
|
|
4741
|
+
output: ConnectProjectConnectorConnectionList,
|
|
4742
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
4743
|
+
protocol: VercelProtocol,
|
|
4744
|
+
retry: Retry.Retry,
|
|
4745
|
+
}));
|
|
4746
|
+
|
|
4747
|
+
export type ReplaceConnectorTriggerDestinationsError =
|
|
4748
|
+
| BadRequest
|
|
4749
|
+
| Forbidden
|
|
4750
|
+
| NotFound
|
|
4751
|
+
| UnprocessableEntity
|
|
4752
|
+
| VercelOpError;
|
|
4753
|
+
/** Update connector trigger destinations Replace the full set of destinations that receive trigger requests for a connector. */
|
|
4754
|
+
export const replaceConnectorTriggerDestinations: API.OperationMethod<
|
|
4755
|
+
ReplaceConnectorTriggerDestinationsRequest,
|
|
4756
|
+
ConnectConnector,
|
|
4757
|
+
ReplaceConnectorTriggerDestinationsError,
|
|
4758
|
+
VercelOpContext
|
|
4759
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4760
|
+
input: ReplaceConnectorTriggerDestinationsRequest,
|
|
4761
|
+
output: ConnectConnector,
|
|
4762
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
4763
|
+
protocol: VercelProtocol,
|
|
4764
|
+
retry: Retry.Retry,
|
|
4765
|
+
}));
|
|
4766
|
+
|
|
4767
|
+
export type UpdateConnectorError =
|
|
4768
|
+
| BadRequest
|
|
4769
|
+
| Forbidden
|
|
4770
|
+
| NotFound
|
|
4771
|
+
| Conflict
|
|
4772
|
+
| UnprocessableEntity
|
|
4773
|
+
| VercelOpError;
|
|
4774
|
+
/** Update a connector Update a connector and return the connector with any service-side update signals that the caller must handle. */
|
|
4775
|
+
export const updateConnector: API.OperationMethod<
|
|
4776
|
+
UpdateConnectorRequest,
|
|
4777
|
+
ConnectConnectorUpdateResult,
|
|
4778
|
+
UpdateConnectorError,
|
|
4779
|
+
VercelOpContext
|
|
4780
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4781
|
+
input: UpdateConnectorRequest,
|
|
4782
|
+
output: ConnectConnectorUpdateResult,
|
|
4783
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
4784
|
+
protocol: VercelProtocol,
|
|
4785
|
+
retry: Retry.Retry,
|
|
4786
|
+
}));
|
|
4787
|
+
|
|
4788
|
+
export type UpsertConnectorProjectConnectionError =
|
|
4789
|
+
| BadRequest
|
|
4790
|
+
| Forbidden
|
|
4791
|
+
| NotFound
|
|
4792
|
+
| VercelOpError;
|
|
4793
|
+
/** Create or update a connector project connection Connect a connector to a project, or replace the environments on an existing project connection. */
|
|
4794
|
+
export const upsertConnectorProjectConnection: API.OperationMethod<
|
|
4795
|
+
UpsertConnectorProjectConnectionRequest,
|
|
4796
|
+
ConnectProjectConnection,
|
|
4797
|
+
UpsertConnectorProjectConnectionError,
|
|
4798
|
+
VercelOpContext
|
|
4799
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4800
|
+
input: UpsertConnectorProjectConnectionRequest,
|
|
4801
|
+
output: ConnectProjectConnection,
|
|
4802
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
4803
|
+
protocol: VercelProtocol,
|
|
4804
|
+
retry: Retry.Retry,
|
|
4805
|
+
}));
|