@distilled.cloud/supabase 0.9.0 → 0.10.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/index.d.ts +3 -0
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +3 -0
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/v1ApplyAMigration.d.ts +1 -1
- package/lib/operations/v1ApplyAMigration.js +1 -1
- package/lib/operations/v1CreateRestorePoint.d.ts +1 -0
- package/lib/operations/v1CreateRestorePoint.d.ts.map +1 -1
- package/lib/operations/v1CreateRestorePoint.js +1 -0
- package/lib/operations/v1CreateRestorePoint.js.map +1 -1
- package/lib/operations/v1DeleteABranch.d.ts +1 -1
- package/lib/operations/v1DeleteABranch.js +1 -1
- package/lib/operations/v1DiffABranch.d.ts +1 -1
- package/lib/operations/v1DiffABranch.js +1 -1
- package/lib/operations/v1GetABranchConfig.d.ts +1 -1
- package/lib/operations/v1GetABranchConfig.js +1 -1
- package/lib/operations/v1GetAMigration.d.ts +1 -1
- package/lib/operations/v1GetAMigration.js +1 -1
- package/lib/operations/v1GetAuthServiceConfig.d.ts +4 -0
- package/lib/operations/v1GetAuthServiceConfig.d.ts.map +1 -1
- package/lib/operations/v1GetAuthServiceConfig.js +4 -0
- package/lib/operations/v1GetAuthServiceConfig.js.map +1 -1
- package/lib/operations/v1GetDatabaseOpenapi.d.ts +18 -0
- package/lib/operations/v1GetDatabaseOpenapi.d.ts.map +1 -0
- package/lib/operations/v1GetDatabaseOpenapi.js +26 -0
- package/lib/operations/v1GetDatabaseOpenapi.js.map +1 -0
- package/lib/operations/v1GetOrganizationEntitlements.d.ts +26 -0
- package/lib/operations/v1GetOrganizationEntitlements.d.ts.map +1 -0
- package/lib/operations/v1GetOrganizationEntitlements.js +92 -0
- package/lib/operations/v1GetOrganizationEntitlements.js.map +1 -0
- package/lib/operations/v1GetProfile.d.ts +14 -0
- package/lib/operations/v1GetProfile.d.ts.map +1 -0
- package/lib/operations/v1GetProfile.js +20 -0
- package/lib/operations/v1GetProfile.js.map +1 -0
- package/lib/operations/v1GetRestorePoint.d.ts +1 -0
- package/lib/operations/v1GetRestorePoint.d.ts.map +1 -1
- package/lib/operations/v1GetRestorePoint.js +1 -0
- package/lib/operations/v1GetRestorePoint.js.map +1 -1
- package/lib/operations/v1ListMigrationHistory.d.ts +1 -1
- package/lib/operations/v1ListMigrationHistory.js +1 -1
- package/lib/operations/v1MergeABranch.d.ts +1 -1
- package/lib/operations/v1MergeABranch.js +1 -1
- package/lib/operations/v1PatchAMigration.d.ts +1 -1
- package/lib/operations/v1PatchAMigration.js +1 -1
- package/lib/operations/v1PushABranch.d.ts +1 -1
- package/lib/operations/v1PushABranch.js +1 -1
- package/lib/operations/v1ResetABranch.d.ts +1 -1
- package/lib/operations/v1ResetABranch.js +1 -1
- package/lib/operations/v1RestoreABranch.d.ts +1 -1
- package/lib/operations/v1RestoreABranch.js +1 -1
- package/lib/operations/v1RollbackMigrations.d.ts +1 -1
- package/lib/operations/v1RollbackMigrations.js +1 -1
- package/lib/operations/v1UpdateABranchConfig.d.ts +1 -1
- package/lib/operations/v1UpdateABranchConfig.js +1 -1
- package/lib/operations/v1UpdateAuthServiceConfig.d.ts +8 -0
- package/lib/operations/v1UpdateAuthServiceConfig.d.ts.map +1 -1
- package/lib/operations/v1UpdateAuthServiceConfig.js +8 -0
- package/lib/operations/v1UpdateAuthServiceConfig.js.map +1 -1
- package/lib/operations/v1UpsertAMigration.d.ts +1 -1
- package/lib/operations/v1UpsertAMigration.js +1 -1
- package/package.json +4 -4
- package/src/operations/index.ts +3 -0
- package/src/operations/v1ApplyAMigration.ts +1 -1
- package/src/operations/v1CreateRestorePoint.ts +1 -0
- package/src/operations/v1DeleteABranch.ts +1 -1
- package/src/operations/v1DiffABranch.ts +1 -1
- package/src/operations/v1GetABranchConfig.ts +1 -1
- package/src/operations/v1GetAMigration.ts +1 -1
- package/src/operations/v1GetAuthServiceConfig.ts +4 -0
- package/src/operations/v1GetDatabaseOpenapi.ts +34 -0
- package/src/operations/v1GetOrganizationEntitlements.ts +102 -0
- package/src/operations/v1GetProfile.ts +26 -0
- package/src/operations/v1GetRestorePoint.ts +1 -0
- package/src/operations/v1ListMigrationHistory.ts +1 -1
- package/src/operations/v1MergeABranch.ts +1 -1
- package/src/operations/v1PatchAMigration.ts +1 -1
- package/src/operations/v1PushABranch.ts +1 -1
- package/src/operations/v1ResetABranch.ts +1 -1
- package/src/operations/v1RestoreABranch.ts +1 -1
- package/src/operations/v1RollbackMigrations.ts +1 -1
- package/src/operations/v1UpdateABranchConfig.ts +1 -1
- package/src/operations/v1UpdateAuthServiceConfig.ts +8 -0
- package/src/operations/v1UpsertAMigration.ts +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const V1GetProfileInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{},
|
|
8
|
+
).pipe(T.Http({ method: "GET", path: "/v1/profile" }));
|
|
9
|
+
export type V1GetProfileInput = typeof V1GetProfileInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const V1GetProfileOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
gotrue_id: Schema.String,
|
|
14
|
+
primary_email: Schema.String,
|
|
15
|
+
username: Schema.String,
|
|
16
|
+
});
|
|
17
|
+
export type V1GetProfileOutput = typeof V1GetProfileOutput.Type;
|
|
18
|
+
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Gets the user's profile
|
|
22
|
+
*/
|
|
23
|
+
export const v1GetProfile = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: V1GetProfileInput,
|
|
25
|
+
outputSchema: V1GetProfileOutput,
|
|
26
|
+
}));
|
|
@@ -21,6 +21,7 @@ export const V1GetRestorePointOutput =
|
|
|
21
21
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
22
|
name: Schema.String,
|
|
23
23
|
status: Schema.Literals(["AVAILABLE", "PENDING", "REMOVED", "FAILED"]),
|
|
24
|
+
completed_on: Schema.NullOr(Schema.String),
|
|
24
25
|
});
|
|
25
26
|
export type V1GetRestorePointOutput = typeof V1GetRestorePointOutput.Type;
|
|
26
27
|
|
|
@@ -24,7 +24,7 @@ export type V1MergeABranchOutput = typeof V1MergeABranchOutput.Type;
|
|
|
24
24
|
*
|
|
25
25
|
* Merges the specified database branch
|
|
26
26
|
*
|
|
27
|
-
* @param branch_id_or_ref - Branch ID
|
|
27
|
+
* @param branch_id_or_ref - Branch ref or deprecated branch ID
|
|
28
28
|
*/
|
|
29
29
|
export const v1MergeABranch = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
30
|
inputSchema: V1MergeABranchInput,
|
|
@@ -24,7 +24,7 @@ export type V1PatchAMigrationOutput = typeof V1PatchAMigrationOutput.Type;
|
|
|
24
24
|
|
|
25
25
|
// The operation
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Patch an existing entry in migration history
|
|
28
28
|
*
|
|
29
29
|
* Only available to selected partner OAuth apps
|
|
30
30
|
*
|
|
@@ -24,7 +24,7 @@ export type V1PushABranchOutput = typeof V1PushABranchOutput.Type;
|
|
|
24
24
|
*
|
|
25
25
|
* Pushes the specified database branch
|
|
26
26
|
*
|
|
27
|
-
* @param branch_id_or_ref - Branch ID
|
|
27
|
+
* @param branch_id_or_ref - Branch ref or deprecated branch ID
|
|
28
28
|
*/
|
|
29
29
|
export const v1PushABranch = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
30
|
inputSchema: V1PushABranchInput,
|
|
@@ -24,7 +24,7 @@ export type V1ResetABranchOutput = typeof V1ResetABranchOutput.Type;
|
|
|
24
24
|
*
|
|
25
25
|
* Resets the specified database branch
|
|
26
26
|
*
|
|
27
|
-
* @param branch_id_or_ref - Branch ID
|
|
27
|
+
* @param branch_id_or_ref - Branch ref or deprecated branch ID
|
|
28
28
|
*/
|
|
29
29
|
export const v1ResetABranch = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
30
|
inputSchema: V1ResetABranchInput,
|
|
@@ -24,7 +24,7 @@ export type V1RestoreABranchOutput = typeof V1RestoreABranchOutput.Type;
|
|
|
24
24
|
*
|
|
25
25
|
* Cancels scheduled deletion and restores the branch to active state
|
|
26
26
|
*
|
|
27
|
-
* @param branch_id_or_ref - Branch ID
|
|
27
|
+
* @param branch_id_or_ref - Branch ref or deprecated branch ID
|
|
28
28
|
*/
|
|
29
29
|
export const v1RestoreABranch = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
30
|
inputSchema: V1RestoreABranchInput,
|
|
@@ -22,7 +22,7 @@ export type V1RollbackMigrationsOutput = typeof V1RollbackMigrationsOutput.Type;
|
|
|
22
22
|
|
|
23
23
|
// The operation
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Rollback database migrations and remove them from history table
|
|
26
26
|
*
|
|
27
27
|
* Only available to selected partner OAuth apps
|
|
28
28
|
*
|
|
@@ -80,7 +80,7 @@ export type V1UpdateABranchConfigOutput =
|
|
|
80
80
|
*
|
|
81
81
|
* Updates the configuration of the specified database branch
|
|
82
82
|
*
|
|
83
|
-
* @param branch_id_or_ref - Branch ID
|
|
83
|
+
* @param branch_id_or_ref - Branch ref or deprecated branch ID
|
|
84
84
|
*/
|
|
85
85
|
export const v1UpdateABranchConfig = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
86
86
|
() => ({
|
|
@@ -408,6 +408,10 @@ export const V1UpdateAuthServiceConfigInput =
|
|
|
408
408
|
mfa_web_authn_verify_enabled: Schema.optional(
|
|
409
409
|
Schema.NullOr(Schema.Boolean),
|
|
410
410
|
),
|
|
411
|
+
passkey_enabled: Schema.optional(Schema.Boolean),
|
|
412
|
+
webauthn_rp_display_name: Schema.optional(Schema.NullOr(Schema.String)),
|
|
413
|
+
webauthn_rp_id: Schema.optional(Schema.NullOr(Schema.String)),
|
|
414
|
+
webauthn_rp_origins: Schema.optional(Schema.NullOr(Schema.String)),
|
|
411
415
|
mfa_phone_enroll_enabled: Schema.optional(Schema.NullOr(Schema.Boolean)),
|
|
412
416
|
mfa_phone_verify_enabled: Schema.optional(Schema.NullOr(Schema.Boolean)),
|
|
413
417
|
mfa_phone_max_frequency: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
@@ -625,6 +629,10 @@ export const V1UpdateAuthServiceConfigOutput =
|
|
|
625
629
|
mfa_phone_verify_enabled: Schema.NullOr(Schema.Boolean),
|
|
626
630
|
mfa_web_authn_enroll_enabled: Schema.NullOr(Schema.Boolean),
|
|
627
631
|
mfa_web_authn_verify_enabled: Schema.NullOr(Schema.Boolean),
|
|
632
|
+
passkey_enabled: Schema.Boolean,
|
|
633
|
+
webauthn_rp_display_name: Schema.NullOr(Schema.String),
|
|
634
|
+
webauthn_rp_id: Schema.NullOr(Schema.String),
|
|
635
|
+
webauthn_rp_origins: Schema.NullOr(Schema.String),
|
|
628
636
|
mfa_phone_otp_length: Schema.Number,
|
|
629
637
|
mfa_phone_template: Schema.NullOr(Schema.String),
|
|
630
638
|
mfa_phone_max_frequency: Schema.NullOr(Schema.Number),
|
|
@@ -20,7 +20,7 @@ export type V1UpsertAMigrationOutput = typeof V1UpsertAMigrationOutput.Type;
|
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Upsert a database migration without applying
|
|
24
24
|
*
|
|
25
25
|
* Only available to selected partner OAuth apps
|
|
26
26
|
*
|