@distilled.cloud/supabase 0.3.0-alpha → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/operations/v1CreateLoginRole.d.ts +1 -1
- package/lib/operations/v1CreateLoginRole.d.ts.map +1 -1
- package/lib/operations/v1CreateLoginRole.js +2 -1
- package/lib/operations/v1CreateLoginRole.js.map +1 -1
- package/lib/operations/v1CreateProjectApiKey.d.ts +1 -1
- package/lib/operations/v1CreateProjectApiKey.d.ts.map +1 -1
- package/lib/operations/v1CreateProjectApiKey.js +2 -1
- package/lib/operations/v1CreateProjectApiKey.js.map +1 -1
- package/lib/operations/v1DeleteProjectApiKey.d.ts +1 -1
- package/lib/operations/v1DeleteProjectApiKey.d.ts.map +1 -1
- package/lib/operations/v1DeleteProjectApiKey.js +2 -1
- package/lib/operations/v1DeleteProjectApiKey.js.map +1 -1
- package/lib/operations/v1DeployAFunction.d.ts +8 -0
- package/lib/operations/v1DeployAFunction.d.ts.map +1 -1
- package/lib/operations/v1DeployAFunction.js +13 -1
- package/lib/operations/v1DeployAFunction.js.map +1 -1
- package/lib/operations/v1ExchangeOauthToken.d.ts +13 -3
- package/lib/operations/v1ExchangeOauthToken.d.ts.map +1 -1
- package/lib/operations/v1ExchangeOauthToken.js +18 -3
- package/lib/operations/v1ExchangeOauthToken.js.map +1 -1
- package/lib/operations/v1GetABranchConfig.d.ts +1 -1
- package/lib/operations/v1GetABranchConfig.d.ts.map +1 -1
- package/lib/operations/v1GetABranchConfig.js +2 -1
- package/lib/operations/v1GetABranchConfig.js.map +1 -1
- package/lib/operations/v1GetAuthServiceConfig.d.ts +28 -28
- package/lib/operations/v1GetAuthServiceConfig.d.ts.map +1 -1
- package/lib/operations/v1GetAuthServiceConfig.js +29 -28
- package/lib/operations/v1GetAuthServiceConfig.js.map +1 -1
- package/lib/operations/v1GetPoolerConfig.d.ts +2 -2
- package/lib/operations/v1GetPoolerConfig.d.ts.map +1 -1
- package/lib/operations/v1GetPoolerConfig.js +3 -2
- package/lib/operations/v1GetPoolerConfig.js.map +1 -1
- package/lib/operations/v1GetPostgrestServiceConfig.d.ts +1 -1
- package/lib/operations/v1GetPostgrestServiceConfig.d.ts.map +1 -1
- package/lib/operations/v1GetPostgrestServiceConfig.js +2 -1
- package/lib/operations/v1GetPostgrestServiceConfig.js.map +1 -1
- package/lib/operations/v1GetProjectApiKey.d.ts +1 -1
- package/lib/operations/v1GetProjectApiKey.d.ts.map +1 -1
- package/lib/operations/v1GetProjectApiKey.js +2 -1
- package/lib/operations/v1GetProjectApiKey.js.map +1 -1
- package/lib/operations/v1GetProjectApiKeys.d.ts +1 -1
- package/lib/operations/v1GetProjectApiKeys.d.ts.map +1 -1
- package/lib/operations/v1GetProjectApiKeys.js +2 -1
- package/lib/operations/v1GetProjectApiKeys.js.map +1 -1
- package/lib/operations/v1GetProjectPgbouncerConfig.d.ts +1 -1
- package/lib/operations/v1GetProjectPgbouncerConfig.d.ts.map +1 -1
- package/lib/operations/v1GetProjectPgbouncerConfig.js +2 -1
- package/lib/operations/v1GetProjectPgbouncerConfig.js.map +1 -1
- package/lib/operations/v1RevokeToken.d.ts +2 -2
- package/lib/operations/v1RevokeToken.d.ts.map +1 -1
- package/lib/operations/v1RevokeToken.js +3 -2
- package/lib/operations/v1RevokeToken.js.map +1 -1
- package/lib/operations/v1UpdateAuthServiceConfig.d.ts +56 -56
- package/lib/operations/v1UpdateAuthServiceConfig.d.ts.map +1 -1
- package/lib/operations/v1UpdateAuthServiceConfig.js +57 -56
- package/lib/operations/v1UpdateAuthServiceConfig.js.map +1 -1
- package/lib/operations/v1UpdateDatabasePassword.d.ts +1 -1
- package/lib/operations/v1UpdateDatabasePassword.d.ts.map +1 -1
- package/lib/operations/v1UpdateDatabasePassword.js +2 -1
- package/lib/operations/v1UpdateDatabasePassword.js.map +1 -1
- package/lib/operations/v1UpdateProjectApiKey.d.ts +1 -1
- package/lib/operations/v1UpdateProjectApiKey.d.ts.map +1 -1
- package/lib/operations/v1UpdateProjectApiKey.js +2 -1
- package/lib/operations/v1UpdateProjectApiKey.js.map +1 -1
- package/package.json +3 -3
- package/src/operations/v1CreateLoginRole.ts +2 -1
- package/src/operations/v1CreateProjectApiKey.ts +2 -1
- package/src/operations/v1DeleteProjectApiKey.ts +2 -1
- package/src/operations/v1DeployAFunction.ts +15 -1
- package/src/operations/v1ExchangeOauthToken.ts +21 -4
- package/src/operations/v1GetABranchConfig.ts +2 -1
- package/src/operations/v1GetAuthServiceConfig.ts +30 -30
- package/src/operations/v1GetPoolerConfig.ts +3 -2
- package/src/operations/v1GetPostgrestServiceConfig.ts +2 -1
- package/src/operations/v1GetProjectApiKey.ts +2 -1
- package/src/operations/v1GetProjectApiKeys.ts +2 -1
- package/src/operations/v1GetProjectPgbouncerConfig.ts +2 -1
- package/src/operations/v1RevokeToken.ts +3 -2
- package/src/operations/v1UpdateAuthServiceConfig.ts +58 -60
- package/src/operations/v1UpdateDatabasePassword.ts +2 -1
- package/src/operations/v1UpdateProjectApiKey.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/supabase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"check": "tsgo && oxlint src && oxfmt --check src",
|
|
69
69
|
"test": "bunx vitest run test",
|
|
70
70
|
"publish:npm": "bun run build && bun publish --access public",
|
|
71
|
-
"generate": "bun run scripts/generate.ts && oxfmt --write src &&
|
|
71
|
+
"generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
|
|
72
72
|
"specs:fetch": "git submodule update --force --init --recursive specs/distilled-spec-supabase && git -C specs/distilled-spec-supabase checkout -- .",
|
|
73
73
|
"specs:update": "git -C specs/distilled-spec-supabase fetch && git -C specs/distilled-spec-supabase checkout main && git -C specs/distilled-spec-supabase pull"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "0.
|
|
76
|
+
"@distilled.cloud/core": "0.5.0",
|
|
77
77
|
"effect": "4.0.0-beta.30"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1CreateLoginRoleInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
@@ -15,7 +16,7 @@ export type V1CreateLoginRoleInput = typeof V1CreateLoginRoleInput.Type;
|
|
|
15
16
|
export const V1CreateLoginRoleOutput =
|
|
16
17
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
18
|
role: Schema.String,
|
|
18
|
-
password:
|
|
19
|
+
password: SensitiveString,
|
|
19
20
|
ttl_seconds: Schema.Number,
|
|
20
21
|
});
|
|
21
22
|
export type V1CreateLoginRoleOutput = typeof V1CreateLoginRoleOutput.Type;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveNullableString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1CreateProjectApiKeyInput =
|
|
@@ -19,7 +20,7 @@ export type V1CreateProjectApiKeyInput = typeof V1CreateProjectApiKeyInput.Type;
|
|
|
19
20
|
// Output Schema
|
|
20
21
|
export const V1CreateProjectApiKeyOutput =
|
|
21
22
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
-
api_key: Schema.optional(
|
|
23
|
+
api_key: Schema.optional(SensitiveNullableString),
|
|
23
24
|
id: Schema.optional(Schema.NullOr(Schema.String)),
|
|
24
25
|
type: Schema.optional(
|
|
25
26
|
Schema.NullOr(Schema.Literals(["legacy", "publishable", "secret"])),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveNullableString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1DeleteProjectApiKeyInput =
|
|
@@ -18,7 +19,7 @@ export type V1DeleteProjectApiKeyInput = typeof V1DeleteProjectApiKeyInput.Type;
|
|
|
18
19
|
// Output Schema
|
|
19
20
|
export const V1DeleteProjectApiKeyOutput =
|
|
20
21
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
-
api_key: Schema.optional(
|
|
22
|
+
api_key: Schema.optional(SensitiveNullableString),
|
|
22
23
|
id: Schema.optional(Schema.NullOr(Schema.String)),
|
|
23
24
|
type: Schema.optional(
|
|
24
25
|
Schema.NullOr(Schema.Literals(["legacy", "publishable", "secret"])),
|
|
@@ -8,8 +8,22 @@ export const V1DeployAFunctionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
8
8
|
ref: Schema.String.pipe(T.PathParam()),
|
|
9
9
|
slug: Schema.optional(Schema.String),
|
|
10
10
|
bundleOnly: Schema.optional(Schema.Boolean),
|
|
11
|
+
file: Schema.optional(Schema.Array(Schema.String)),
|
|
12
|
+
metadata: Schema.Struct({
|
|
13
|
+
entrypoint_path: Schema.String,
|
|
14
|
+
import_map_path: Schema.optional(Schema.String),
|
|
15
|
+
static_patterns: Schema.optional(Schema.Array(Schema.String)),
|
|
16
|
+
verify_jwt: Schema.optional(Schema.Boolean),
|
|
17
|
+
name: Schema.optional(Schema.String),
|
|
18
|
+
}),
|
|
11
19
|
},
|
|
12
|
-
).pipe(
|
|
20
|
+
).pipe(
|
|
21
|
+
T.Http({
|
|
22
|
+
method: "POST",
|
|
23
|
+
path: "/v1/projects/{ref}/functions/deploy",
|
|
24
|
+
contentType: "multipart",
|
|
25
|
+
}),
|
|
26
|
+
);
|
|
13
27
|
export type V1DeployAFunctionInput = typeof V1DeployAFunctionInput.Type;
|
|
14
28
|
|
|
15
29
|
// Output Schema
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1ExchangeOauthTokenInput =
|
|
7
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
-
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
grant_type: Schema.optional(
|
|
10
|
+
Schema.Literals(["authorization_code", "refresh_token"]),
|
|
11
|
+
),
|
|
12
|
+
client_id: Schema.optional(Schema.String),
|
|
13
|
+
client_secret: Schema.optional(SensitiveString),
|
|
14
|
+
code: Schema.optional(Schema.String),
|
|
15
|
+
code_verifier: Schema.optional(Schema.String),
|
|
16
|
+
redirect_uri: Schema.optional(Schema.String),
|
|
17
|
+
refresh_token: Schema.optional(SensitiveString),
|
|
18
|
+
resource: Schema.optional(Schema.String),
|
|
19
|
+
scope: Schema.optional(Schema.String),
|
|
20
|
+
}).pipe(
|
|
21
|
+
T.Http({
|
|
22
|
+
method: "POST",
|
|
23
|
+
path: "/v1/oauth/token",
|
|
24
|
+
contentType: "form-urlencoded",
|
|
25
|
+
}),
|
|
9
26
|
);
|
|
10
27
|
export type V1ExchangeOauthTokenInput = typeof V1ExchangeOauthTokenInput.Type;
|
|
11
28
|
|
|
12
29
|
// Output Schema
|
|
13
30
|
export const V1ExchangeOauthTokenOutput =
|
|
14
31
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
-
access_token:
|
|
16
|
-
refresh_token:
|
|
32
|
+
access_token: SensitiveString,
|
|
33
|
+
refresh_token: SensitiveString,
|
|
17
34
|
expires_in: Schema.Number,
|
|
18
35
|
token_type: Schema.Literals(["Bearer"]),
|
|
19
36
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1GetABranchConfigInput =
|
|
@@ -37,7 +38,7 @@ export const V1GetABranchConfigOutput =
|
|
|
37
38
|
db_port: Schema.Number,
|
|
38
39
|
db_user: Schema.optional(Schema.String),
|
|
39
40
|
db_pass: Schema.optional(Schema.String),
|
|
40
|
-
jwt_secret: Schema.optional(
|
|
41
|
+
jwt_secret: Schema.optional(SensitiveString),
|
|
41
42
|
});
|
|
42
43
|
export type V1GetABranchConfigOutput = typeof V1GetABranchConfigOutput.Type;
|
|
43
44
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveNullableString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1GetAuthServiceConfigInput =
|
|
@@ -24,96 +25,96 @@ export const V1GetAuthServiceConfigOutput =
|
|
|
24
25
|
external_apple_client_id: Schema.NullOr(Schema.String),
|
|
25
26
|
external_apple_email_optional: Schema.NullOr(Schema.Boolean),
|
|
26
27
|
external_apple_enabled: Schema.NullOr(Schema.Boolean),
|
|
27
|
-
external_apple_secret:
|
|
28
|
+
external_apple_secret: SensitiveNullableString,
|
|
28
29
|
external_azure_client_id: Schema.NullOr(Schema.String),
|
|
29
30
|
external_azure_email_optional: Schema.NullOr(Schema.Boolean),
|
|
30
31
|
external_azure_enabled: Schema.NullOr(Schema.Boolean),
|
|
31
|
-
external_azure_secret:
|
|
32
|
+
external_azure_secret: SensitiveNullableString,
|
|
32
33
|
external_azure_url: Schema.NullOr(Schema.String),
|
|
33
34
|
external_bitbucket_client_id: Schema.NullOr(Schema.String),
|
|
34
35
|
external_bitbucket_email_optional: Schema.NullOr(Schema.Boolean),
|
|
35
36
|
external_bitbucket_enabled: Schema.NullOr(Schema.Boolean),
|
|
36
|
-
external_bitbucket_secret:
|
|
37
|
+
external_bitbucket_secret: SensitiveNullableString,
|
|
37
38
|
external_discord_client_id: Schema.NullOr(Schema.String),
|
|
38
39
|
external_discord_email_optional: Schema.NullOr(Schema.Boolean),
|
|
39
40
|
external_discord_enabled: Schema.NullOr(Schema.Boolean),
|
|
40
|
-
external_discord_secret:
|
|
41
|
+
external_discord_secret: SensitiveNullableString,
|
|
41
42
|
external_email_enabled: Schema.NullOr(Schema.Boolean),
|
|
42
43
|
external_facebook_client_id: Schema.NullOr(Schema.String),
|
|
43
44
|
external_facebook_email_optional: Schema.NullOr(Schema.Boolean),
|
|
44
45
|
external_facebook_enabled: Schema.NullOr(Schema.Boolean),
|
|
45
|
-
external_facebook_secret:
|
|
46
|
+
external_facebook_secret: SensitiveNullableString,
|
|
46
47
|
external_figma_client_id: Schema.NullOr(Schema.String),
|
|
47
48
|
external_figma_email_optional: Schema.NullOr(Schema.Boolean),
|
|
48
49
|
external_figma_enabled: Schema.NullOr(Schema.Boolean),
|
|
49
|
-
external_figma_secret:
|
|
50
|
+
external_figma_secret: SensitiveNullableString,
|
|
50
51
|
external_github_client_id: Schema.NullOr(Schema.String),
|
|
51
52
|
external_github_email_optional: Schema.NullOr(Schema.Boolean),
|
|
52
53
|
external_github_enabled: Schema.NullOr(Schema.Boolean),
|
|
53
|
-
external_github_secret:
|
|
54
|
+
external_github_secret: SensitiveNullableString,
|
|
54
55
|
external_gitlab_client_id: Schema.NullOr(Schema.String),
|
|
55
56
|
external_gitlab_email_optional: Schema.NullOr(Schema.Boolean),
|
|
56
57
|
external_gitlab_enabled: Schema.NullOr(Schema.Boolean),
|
|
57
|
-
external_gitlab_secret:
|
|
58
|
+
external_gitlab_secret: SensitiveNullableString,
|
|
58
59
|
external_gitlab_url: Schema.NullOr(Schema.String),
|
|
59
60
|
external_google_additional_client_ids: Schema.NullOr(Schema.String),
|
|
60
61
|
external_google_client_id: Schema.NullOr(Schema.String),
|
|
61
62
|
external_google_email_optional: Schema.NullOr(Schema.Boolean),
|
|
62
63
|
external_google_enabled: Schema.NullOr(Schema.Boolean),
|
|
63
|
-
external_google_secret:
|
|
64
|
+
external_google_secret: SensitiveNullableString,
|
|
64
65
|
external_google_skip_nonce_check: Schema.NullOr(Schema.Boolean),
|
|
65
66
|
external_kakao_client_id: Schema.NullOr(Schema.String),
|
|
66
67
|
external_kakao_email_optional: Schema.NullOr(Schema.Boolean),
|
|
67
68
|
external_kakao_enabled: Schema.NullOr(Schema.Boolean),
|
|
68
|
-
external_kakao_secret:
|
|
69
|
+
external_kakao_secret: SensitiveNullableString,
|
|
69
70
|
external_keycloak_client_id: Schema.NullOr(Schema.String),
|
|
70
71
|
external_keycloak_email_optional: Schema.NullOr(Schema.Boolean),
|
|
71
72
|
external_keycloak_enabled: Schema.NullOr(Schema.Boolean),
|
|
72
|
-
external_keycloak_secret:
|
|
73
|
+
external_keycloak_secret: SensitiveNullableString,
|
|
73
74
|
external_keycloak_url: Schema.NullOr(Schema.String),
|
|
74
75
|
external_linkedin_oidc_client_id: Schema.NullOr(Schema.String),
|
|
75
76
|
external_linkedin_oidc_email_optional: Schema.NullOr(Schema.Boolean),
|
|
76
77
|
external_linkedin_oidc_enabled: Schema.NullOr(Schema.Boolean),
|
|
77
|
-
external_linkedin_oidc_secret:
|
|
78
|
+
external_linkedin_oidc_secret: SensitiveNullableString,
|
|
78
79
|
external_slack_oidc_client_id: Schema.NullOr(Schema.String),
|
|
79
80
|
external_slack_oidc_email_optional: Schema.NullOr(Schema.Boolean),
|
|
80
81
|
external_slack_oidc_enabled: Schema.NullOr(Schema.Boolean),
|
|
81
|
-
external_slack_oidc_secret:
|
|
82
|
+
external_slack_oidc_secret: SensitiveNullableString,
|
|
82
83
|
external_notion_client_id: Schema.NullOr(Schema.String),
|
|
83
84
|
external_notion_email_optional: Schema.NullOr(Schema.Boolean),
|
|
84
85
|
external_notion_enabled: Schema.NullOr(Schema.Boolean),
|
|
85
|
-
external_notion_secret:
|
|
86
|
+
external_notion_secret: SensitiveNullableString,
|
|
86
87
|
external_phone_enabled: Schema.NullOr(Schema.Boolean),
|
|
87
88
|
external_slack_client_id: Schema.NullOr(Schema.String),
|
|
88
89
|
external_slack_email_optional: Schema.NullOr(Schema.Boolean),
|
|
89
90
|
external_slack_enabled: Schema.NullOr(Schema.Boolean),
|
|
90
|
-
external_slack_secret:
|
|
91
|
+
external_slack_secret: SensitiveNullableString,
|
|
91
92
|
external_spotify_client_id: Schema.NullOr(Schema.String),
|
|
92
93
|
external_spotify_email_optional: Schema.NullOr(Schema.Boolean),
|
|
93
94
|
external_spotify_enabled: Schema.NullOr(Schema.Boolean),
|
|
94
|
-
external_spotify_secret:
|
|
95
|
+
external_spotify_secret: SensitiveNullableString,
|
|
95
96
|
external_twitch_client_id: Schema.NullOr(Schema.String),
|
|
96
97
|
external_twitch_email_optional: Schema.NullOr(Schema.Boolean),
|
|
97
98
|
external_twitch_enabled: Schema.NullOr(Schema.Boolean),
|
|
98
|
-
external_twitch_secret:
|
|
99
|
+
external_twitch_secret: SensitiveNullableString,
|
|
99
100
|
external_twitter_client_id: Schema.NullOr(Schema.String),
|
|
100
101
|
external_twitter_email_optional: Schema.NullOr(Schema.Boolean),
|
|
101
102
|
external_twitter_enabled: Schema.NullOr(Schema.Boolean),
|
|
102
|
-
external_twitter_secret:
|
|
103
|
+
external_twitter_secret: SensitiveNullableString,
|
|
103
104
|
external_x_client_id: Schema.NullOr(Schema.String),
|
|
104
105
|
external_x_email_optional: Schema.NullOr(Schema.Boolean),
|
|
105
106
|
external_x_enabled: Schema.NullOr(Schema.Boolean),
|
|
106
|
-
external_x_secret:
|
|
107
|
+
external_x_secret: SensitiveNullableString,
|
|
107
108
|
external_workos_client_id: Schema.NullOr(Schema.String),
|
|
108
109
|
external_workos_enabled: Schema.NullOr(Schema.Boolean),
|
|
109
|
-
external_workos_secret:
|
|
110
|
+
external_workos_secret: SensitiveNullableString,
|
|
110
111
|
external_workos_url: Schema.NullOr(Schema.String),
|
|
111
112
|
external_web3_solana_enabled: Schema.NullOr(Schema.Boolean),
|
|
112
113
|
external_web3_ethereum_enabled: Schema.NullOr(Schema.Boolean),
|
|
113
114
|
external_zoom_client_id: Schema.NullOr(Schema.String),
|
|
114
115
|
external_zoom_email_optional: Schema.NullOr(Schema.Boolean),
|
|
115
116
|
external_zoom_enabled: Schema.NullOr(Schema.Boolean),
|
|
116
|
-
external_zoom_secret:
|
|
117
|
+
external_zoom_secret: SensitiveNullableString,
|
|
117
118
|
hook_custom_access_token_enabled: Schema.NullOr(Schema.Boolean),
|
|
118
119
|
hook_custom_access_token_uri: Schema.NullOr(Schema.String),
|
|
119
120
|
hook_custom_access_token_secrets: Schema.NullOr(Schema.String),
|
|
@@ -121,8 +122,8 @@ export const V1GetAuthServiceConfigOutput =
|
|
|
121
122
|
hook_mfa_verification_attempt_uri: Schema.NullOr(Schema.String),
|
|
122
123
|
hook_mfa_verification_attempt_secrets: Schema.NullOr(Schema.String),
|
|
123
124
|
hook_password_verification_attempt_enabled: Schema.NullOr(Schema.Boolean),
|
|
124
|
-
hook_password_verification_attempt_uri:
|
|
125
|
-
hook_password_verification_attempt_secrets:
|
|
125
|
+
hook_password_verification_attempt_uri: SensitiveNullableString,
|
|
126
|
+
hook_password_verification_attempt_secrets: SensitiveNullableString,
|
|
126
127
|
hook_send_sms_enabled: Schema.NullOr(Schema.Boolean),
|
|
127
128
|
hook_send_sms_uri: Schema.NullOr(Schema.String),
|
|
128
129
|
hook_send_sms_secrets: Schema.NullOr(Schema.String),
|
|
@@ -147,7 +148,7 @@ export const V1GetAuthServiceConfigOutput =
|
|
|
147
148
|
mailer_subjects_magic_link: Schema.NullOr(Schema.String),
|
|
148
149
|
mailer_subjects_reauthentication: Schema.NullOr(Schema.String),
|
|
149
150
|
mailer_subjects_recovery: Schema.NullOr(Schema.String),
|
|
150
|
-
mailer_subjects_password_changed_notification:
|
|
151
|
+
mailer_subjects_password_changed_notification: SensitiveNullableString,
|
|
151
152
|
mailer_subjects_email_changed_notification: Schema.NullOr(Schema.String),
|
|
152
153
|
mailer_subjects_phone_changed_notification: Schema.NullOr(Schema.String),
|
|
153
154
|
mailer_subjects_mfa_factor_enrolled_notification: Schema.NullOr(
|
|
@@ -166,9 +167,8 @@ export const V1GetAuthServiceConfigOutput =
|
|
|
166
167
|
mailer_templates_magic_link_content: Schema.NullOr(Schema.String),
|
|
167
168
|
mailer_templates_reauthentication_content: Schema.NullOr(Schema.String),
|
|
168
169
|
mailer_templates_recovery_content: Schema.NullOr(Schema.String),
|
|
169
|
-
mailer_templates_password_changed_notification_content:
|
|
170
|
-
|
|
171
|
-
),
|
|
170
|
+
mailer_templates_password_changed_notification_content:
|
|
171
|
+
SensitiveNullableString,
|
|
172
172
|
mailer_templates_email_changed_notification_content: Schema.NullOr(
|
|
173
173
|
Schema.String,
|
|
174
174
|
),
|
|
@@ -214,7 +214,7 @@ export const V1GetAuthServiceConfigOutput =
|
|
|
214
214
|
mfa_phone_max_frequency: Schema.NullOr(Schema.Number),
|
|
215
215
|
nimbus_oauth_client_id: Schema.NullOr(Schema.String),
|
|
216
216
|
nimbus_oauth_email_optional: Schema.NullOr(Schema.Boolean),
|
|
217
|
-
nimbus_oauth_client_secret:
|
|
217
|
+
nimbus_oauth_client_secret: SensitiveNullableString,
|
|
218
218
|
password_hibp_enabled: Schema.NullOr(Schema.Boolean),
|
|
219
219
|
password_min_length: Schema.NullOr(Schema.Number),
|
|
220
220
|
password_required_characters: Schema.NullOr(
|
|
@@ -241,7 +241,7 @@ export const V1GetAuthServiceConfigOutput =
|
|
|
241
241
|
security_captcha_provider: Schema.NullOr(
|
|
242
242
|
Schema.Literals(["turnstile", "hcaptcha"]),
|
|
243
243
|
),
|
|
244
|
-
security_captcha_secret:
|
|
244
|
+
security_captcha_secret: SensitiveNullableString,
|
|
245
245
|
security_manual_linking_enabled: Schema.NullOr(Schema.Boolean),
|
|
246
246
|
security_refresh_token_reuse_interval: Schema.NullOr(Schema.Number),
|
|
247
247
|
security_update_password_require_reauthentication: Schema.NullOr(
|
|
@@ -280,7 +280,7 @@ export const V1GetAuthServiceConfigOutput =
|
|
|
280
280
|
sms_twilio_verify_auth_token: Schema.NullOr(Schema.String),
|
|
281
281
|
sms_twilio_verify_message_service_sid: Schema.NullOr(Schema.String),
|
|
282
282
|
sms_vonage_api_key: Schema.NullOr(Schema.String),
|
|
283
|
-
sms_vonage_api_secret:
|
|
283
|
+
sms_vonage_api_secret: SensitiveNullableString,
|
|
284
284
|
sms_vonage_from: Schema.NullOr(Schema.String),
|
|
285
285
|
smtp_admin_email: Schema.NullOr(Schema.String),
|
|
286
286
|
smtp_host: Schema.NullOr(Schema.String),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1GetPoolerConfigInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
@@ -22,8 +23,8 @@ export const V1GetPoolerConfigOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
22
23
|
db_host: Schema.String,
|
|
23
24
|
db_port: Schema.Number,
|
|
24
25
|
db_name: Schema.String,
|
|
25
|
-
connection_string:
|
|
26
|
-
connectionString:
|
|
26
|
+
connection_string: SensitiveString,
|
|
27
|
+
connectionString: SensitiveString,
|
|
27
28
|
default_pool_size: Schema.NullOr(Schema.Number),
|
|
28
29
|
max_client_conn: Schema.NullOr(Schema.Number),
|
|
29
30
|
pool_mode: Schema.Literals(["transaction", "session"]),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1GetPostgrestServiceConfigInput =
|
|
@@ -17,7 +18,7 @@ export const V1GetPostgrestServiceConfigOutput =
|
|
|
17
18
|
max_rows: Schema.Number,
|
|
18
19
|
db_extra_search_path: Schema.String,
|
|
19
20
|
db_pool: Schema.NullOr(Schema.Number),
|
|
20
|
-
jwt_secret: Schema.optional(
|
|
21
|
+
jwt_secret: Schema.optional(SensitiveString),
|
|
21
22
|
});
|
|
22
23
|
export type V1GetPostgrestServiceConfigOutput =
|
|
23
24
|
typeof V1GetPostgrestServiceConfigOutput.Type;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveNullableString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1GetProjectApiKeyInput =
|
|
@@ -14,7 +15,7 @@ export type V1GetProjectApiKeyInput = typeof V1GetProjectApiKeyInput.Type;
|
|
|
14
15
|
// Output Schema
|
|
15
16
|
export const V1GetProjectApiKeyOutput =
|
|
16
17
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
-
api_key: Schema.optional(
|
|
18
|
+
api_key: Schema.optional(SensitiveNullableString),
|
|
18
19
|
id: Schema.optional(Schema.NullOr(Schema.String)),
|
|
19
20
|
type: Schema.optional(
|
|
20
21
|
Schema.NullOr(Schema.Literals(["legacy", "publishable", "secret"])),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveNullableString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1GetProjectApiKeysInput =
|
|
@@ -14,7 +15,7 @@ export type V1GetProjectApiKeysInput = typeof V1GetProjectApiKeysInput.Type;
|
|
|
14
15
|
export const V1GetProjectApiKeysOutput =
|
|
15
16
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
16
17
|
Schema.Struct({
|
|
17
|
-
api_key: Schema.optional(
|
|
18
|
+
api_key: Schema.optional(SensitiveNullableString),
|
|
18
19
|
id: Schema.optional(Schema.NullOr(Schema.String)),
|
|
19
20
|
type: Schema.optional(
|
|
20
21
|
Schema.NullOr(Schema.Literals(["legacy", "publishable", "secret"])),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1GetProjectPgbouncerConfigInput =
|
|
@@ -24,7 +25,7 @@ export const V1GetProjectPgbouncerConfigOutput =
|
|
|
24
25
|
pool_mode: Schema.optional(
|
|
25
26
|
Schema.Literals(["transaction", "session", "statement"]),
|
|
26
27
|
),
|
|
27
|
-
connection_string: Schema.optional(
|
|
28
|
+
connection_string: Schema.optional(SensitiveString),
|
|
28
29
|
server_idle_timeout: Schema.optional(Schema.Number),
|
|
29
30
|
server_lifetime: Schema.optional(Schema.Number),
|
|
30
31
|
query_wait_timeout: Schema.optional(Schema.Number),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
4
5
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const V1RevokeTokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
8
|
client_id: Schema.String,
|
|
8
|
-
client_secret:
|
|
9
|
-
refresh_token:
|
|
9
|
+
client_secret: SensitiveString,
|
|
10
|
+
refresh_token: SensitiveString,
|
|
10
11
|
}).pipe(T.Http({ method: "POST", path: "/v1/oauth/revoke" }));
|
|
11
12
|
export type V1RevokeTokenInput = typeof V1RevokeTokenInput.Type;
|
|
12
13
|
|