@distilled.cloud/neon 0.17.0 → 0.18.1
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/deleteOrganizationSpendingLimit.d.ts +21 -0
- package/lib/operations/deleteOrganizationSpendingLimit.d.ts.map +1 -0
- package/lib/operations/deleteOrganizationSpendingLimit.js +31 -0
- package/lib/operations/deleteOrganizationSpendingLimit.js.map +1 -0
- package/lib/operations/getNeonAuthPhoneNumberPlugin.d.ts +30 -0
- package/lib/operations/getNeonAuthPhoneNumberPlugin.d.ts.map +1 -0
- package/lib/operations/getNeonAuthPhoneNumberPlugin.js +35 -0
- package/lib/operations/getNeonAuthPhoneNumberPlugin.js.map +1 -0
- package/lib/operations/getOrganizationSpendingLimit.d.ts +25 -0
- package/lib/operations/getOrganizationSpendingLimit.d.ts.map +1 -0
- package/lib/operations/getOrganizationSpendingLimit.js +33 -0
- package/lib/operations/getOrganizationSpendingLimit.js.map +1 -0
- package/lib/operations/recoverProjectBranch.d.ts +188 -0
- package/lib/operations/recoverProjectBranch.d.ts.map +1 -0
- package/lib/operations/recoverProjectBranch.js +113 -0
- package/lib/operations/recoverProjectBranch.js.map +1 -0
- package/lib/operations/setOrganizationSpendingLimit.d.ts +28 -0
- package/lib/operations/setOrganizationSpendingLimit.d.ts.map +1 -0
- package/lib/operations/setOrganizationSpendingLimit.js +35 -0
- package/lib/operations/setOrganizationSpendingLimit.js.map +1 -0
- package/lib/operations/updateNeonAuthConfig.d.ts +28 -0
- package/lib/operations/updateNeonAuthConfig.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthConfig.js +33 -0
- package/lib/operations/updateNeonAuthConfig.js.map +1 -0
- package/lib/operations/updateNeonAuthMagicLinkPlugin.d.ts +36 -0
- package/lib/operations/updateNeonAuthMagicLinkPlugin.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthMagicLinkPlugin.js +38 -0
- package/lib/operations/updateNeonAuthMagicLinkPlugin.js.map +1 -0
- package/lib/operations/updateNeonAuthPhoneNumberPlugin.d.ts +38 -0
- package/lib/operations/updateNeonAuthPhoneNumberPlugin.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthPhoneNumberPlugin.js +40 -0
- package/lib/operations/updateNeonAuthPhoneNumberPlugin.js.map +1 -0
- package/package.json +2 -2
- package/src/operations/deleteOrganizationSpendingLimit.ts +39 -0
- package/src/operations/getNeonAuthPhoneNumberPlugin.ts +43 -0
- package/src/operations/getOrganizationSpendingLimit.ts +41 -0
- package/src/operations/recoverProjectBranch.ts +141 -0
- package/src/operations/setOrganizationSpendingLimit.ts +43 -0
- package/src/operations/updateNeonAuthConfig.ts +41 -0
- package/src/operations/updateNeonAuthMagicLinkPlugin.ts +46 -0
- package/src/operations/updateNeonAuthPhoneNumberPlugin.ts +48 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const DeleteOrganizationSpendingLimitInput: Schema.Struct<{
|
|
3
|
+
readonly org_id: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type DeleteOrganizationSpendingLimitInput = typeof DeleteOrganizationSpendingLimitInput.Type;
|
|
6
|
+
export declare const DeleteOrganizationSpendingLimitOutput: Schema.Struct<{}>;
|
|
7
|
+
export type DeleteOrganizationSpendingLimitOutput = typeof DeleteOrganizationSpendingLimitOutput.Type;
|
|
8
|
+
/**
|
|
9
|
+
* Clear the organization's monthly spending limit
|
|
10
|
+
*
|
|
11
|
+
* Removes a previously configured spending limit for a V3 paid
|
|
12
|
+
* organization. Idempotent — deleting an already-unset limit still
|
|
13
|
+
* succeeds. Available to organization admins on Launch and Scale plans
|
|
14
|
+
* only.
|
|
15
|
+
*
|
|
16
|
+
* @param org_id - The Neon organization ID
|
|
17
|
+
*/
|
|
18
|
+
export declare const deleteOrganizationSpendingLimit: import("@distilled.cloud/core/client").OperationMethod<{
|
|
19
|
+
readonly org_id: string;
|
|
20
|
+
}, {}, never, import("../credentials.ts").Credentials>;
|
|
21
|
+
//# sourceMappingURL=deleteOrganizationSpendingLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteOrganizationSpendingLimit.d.ts","sourceRoot":"","sources":["../../src/operations/deleteOrganizationSpendingLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,oCAAoC;;EAQ9C,CAAC;AACJ,MAAM,MAAM,oCAAoC,GAC9C,OAAO,oCAAoC,CAAC,IAAI,CAAC;AAGnD,eAAO,MAAM,qCAAqC,mBACH,CAAC;AAChD,MAAM,MAAM,qCAAqC,GAC/C,OAAO,qCAAqC,CAAC,IAAI,CAAC;AAGpD;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B;;sDAIvC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const DeleteOrganizationSpendingLimitInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
org_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "DELETE",
|
|
10
|
+
path: "/organizations/{org_id}/billing/spending_limit",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const DeleteOrganizationSpendingLimitOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Clear the organization's monthly spending limit
|
|
18
|
+
*
|
|
19
|
+
* Removes a previously configured spending limit for a V3 paid
|
|
20
|
+
* organization. Idempotent — deleting an already-unset limit still
|
|
21
|
+
* succeeds. Available to organization admins on Launch and Scale plans
|
|
22
|
+
* only.
|
|
23
|
+
*
|
|
24
|
+
* @param org_id - The Neon organization ID
|
|
25
|
+
*/
|
|
26
|
+
export const deleteOrganizationSpendingLimit =
|
|
27
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: DeleteOrganizationSpendingLimitInput,
|
|
29
|
+
outputSchema: DeleteOrganizationSpendingLimitOutput,
|
|
30
|
+
}));
|
|
31
|
+
//# sourceMappingURL=deleteOrganizationSpendingLimit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteOrganizationSpendingLimit.js","sourceRoot":"","sources":["../../src/operations/deleteOrganizationSpendingLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,oCAAoC;AAC/C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC1C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,gDAAgD;CACvD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC;AAChD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAIhD,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,oCAAoC;IACjD,YAAY,EAAE,qCAAqC;CACpD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetNeonAuthPhoneNumberPluginInput: Schema.Struct<{
|
|
3
|
+
readonly project_id: Schema.String;
|
|
4
|
+
readonly branch_id: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetNeonAuthPhoneNumberPluginInput = typeof GetNeonAuthPhoneNumberPluginInput.Type;
|
|
7
|
+
export declare const GetNeonAuthPhoneNumberPluginOutput: Schema.Struct<{
|
|
8
|
+
readonly enabled: Schema.Boolean;
|
|
9
|
+
readonly otp_expires_in: Schema.optional<Schema.Number>;
|
|
10
|
+
readonly allowed_attempts: Schema.optional<Schema.Number>;
|
|
11
|
+
}>;
|
|
12
|
+
export type GetNeonAuthPhoneNumberPluginOutput = typeof GetNeonAuthPhoneNumberPluginOutput.Type;
|
|
13
|
+
/**
|
|
14
|
+
* Get phone number plugin configuration
|
|
15
|
+
*
|
|
16
|
+
* Returns the phone number plugin configuration for Neon Auth.
|
|
17
|
+
* The phone number plugin enables phone-based OTP authentication.
|
|
18
|
+
*
|
|
19
|
+
* @param project_id - The Neon project ID
|
|
20
|
+
* @param branch_id - The Neon branch ID
|
|
21
|
+
*/
|
|
22
|
+
export declare const getNeonAuthPhoneNumberPlugin: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
|
+
readonly branch_id: string;
|
|
24
|
+
readonly project_id: string;
|
|
25
|
+
}, {
|
|
26
|
+
readonly allowed_attempts?: number | undefined;
|
|
27
|
+
readonly enabled: boolean;
|
|
28
|
+
readonly otp_expires_in?: number | undefined;
|
|
29
|
+
}, never, import("../credentials.ts").Credentials>;
|
|
30
|
+
//# sourceMappingURL=getNeonAuthPhoneNumberPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNeonAuthPhoneNumberPlugin.d.ts","sourceRoot":"","sources":["../../src/operations/getNeonAuthPhoneNumberPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iCAAiC;;;EAS3C,CAAC;AACJ,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD,eAAO,MAAM,kCAAkC;;;;EAK3C,CAAC;AACL,MAAM,MAAM,kCAAkC,GAC5C,OAAO,kCAAkC,CAAC,IAAI,CAAC;AAGjD;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B;;;;;;;kDAIpC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetNeonAuthPhoneNumberPluginInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "GET",
|
|
11
|
+
path: "/projects/{project_id}/branches/{branch_id}/auth/plugins/phone_number",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const GetNeonAuthPhoneNumberPluginOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
enabled: Schema.Boolean,
|
|
17
|
+
otp_expires_in: Schema.optional(Schema.Number),
|
|
18
|
+
allowed_attempts: Schema.optional(Schema.Number),
|
|
19
|
+
});
|
|
20
|
+
// The operation
|
|
21
|
+
/**
|
|
22
|
+
* Get phone number plugin configuration
|
|
23
|
+
*
|
|
24
|
+
* Returns the phone number plugin configuration for Neon Auth.
|
|
25
|
+
* The phone number plugin enables phone-based OTP authentication.
|
|
26
|
+
*
|
|
27
|
+
* @param project_id - The Neon project ID
|
|
28
|
+
* @param branch_id - The Neon branch ID
|
|
29
|
+
*/
|
|
30
|
+
export const getNeonAuthPhoneNumberPlugin =
|
|
31
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: GetNeonAuthPhoneNumberPluginInput,
|
|
33
|
+
outputSchema: GetNeonAuthPhoneNumberPluginOutput,
|
|
34
|
+
}));
|
|
35
|
+
//# sourceMappingURL=getNeonAuthPhoneNumberPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNeonAuthPhoneNumberPlugin.js","sourceRoot":"","sources":["../../src/operations/getNeonAuthPhoneNumberPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,uEAAuE;CAC9E,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC;AAC7C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,OAAO;IACvB,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACjD,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,iCAAiC;IAC9C,YAAY,EAAE,kCAAkC;CACjD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetOrganizationSpendingLimitInput: Schema.Struct<{
|
|
3
|
+
readonly org_id: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetOrganizationSpendingLimitInput = typeof GetOrganizationSpendingLimitInput.Type;
|
|
6
|
+
export declare const GetOrganizationSpendingLimitOutput: Schema.Struct<{
|
|
7
|
+
readonly spending_limit_cents: Schema.NullOr<Schema.Number>;
|
|
8
|
+
}>;
|
|
9
|
+
export type GetOrganizationSpendingLimitOutput = typeof GetOrganizationSpendingLimitOutput.Type;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve the organization's monthly spending limit
|
|
12
|
+
*
|
|
13
|
+
* Returns the configured spending limit for a V3 paid organization.
|
|
14
|
+
* `spending_limit_cents: null` indicates that no limit is currently
|
|
15
|
+
* set. Available to organization members with read access on Launch
|
|
16
|
+
* and Scale plans only.
|
|
17
|
+
*
|
|
18
|
+
* @param org_id - The Neon organization ID
|
|
19
|
+
*/
|
|
20
|
+
export declare const getOrganizationSpendingLimit: import("@distilled.cloud/core/client").OperationMethod<{
|
|
21
|
+
readonly org_id: string;
|
|
22
|
+
}, {
|
|
23
|
+
readonly spending_limit_cents: number | null;
|
|
24
|
+
}, never, import("../credentials.ts").Credentials>;
|
|
25
|
+
//# sourceMappingURL=getOrganizationSpendingLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationSpendingLimit.d.ts","sourceRoot":"","sources":["../../src/operations/getOrganizationSpendingLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iCAAiC;;EAQ3C,CAAC;AACJ,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD,eAAO,MAAM,kCAAkC;;EAG3C,CAAC;AACL,MAAM,MAAM,kCAAkC,GAC5C,OAAO,kCAAkC,CAAC,IAAI,CAAC;AAGjD;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B;;;;kDAIpC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetOrganizationSpendingLimitInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
org_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/organizations/{org_id}/billing/spending_limit",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetOrganizationSpendingLimitOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
spending_limit_cents: Schema.NullOr(Schema.Number),
|
|
16
|
+
});
|
|
17
|
+
// The operation
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve the organization's monthly spending limit
|
|
20
|
+
*
|
|
21
|
+
* Returns the configured spending limit for a V3 paid organization.
|
|
22
|
+
* `spending_limit_cents: null` indicates that no limit is currently
|
|
23
|
+
* set. Available to organization members with read access on Launch
|
|
24
|
+
* and Scale plans only.
|
|
25
|
+
*
|
|
26
|
+
* @param org_id - The Neon organization ID
|
|
27
|
+
*/
|
|
28
|
+
export const getOrganizationSpendingLimit =
|
|
29
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
|
+
inputSchema: GetOrganizationSpendingLimitInput,
|
|
31
|
+
outputSchema: GetOrganizationSpendingLimitOutput,
|
|
32
|
+
}));
|
|
33
|
+
//# sourceMappingURL=getOrganizationSpendingLimit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationSpendingLimit.js","sourceRoot":"","sources":["../../src/operations/getOrganizationSpendingLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC1C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,gDAAgD;CACvD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC;AAC7C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;CACnD,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,iCAAiC;IAC9C,YAAY,EAAE,kCAAkC;CACjD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const RecoverProjectBranchInput: Schema.Struct<{
|
|
3
|
+
readonly project_id: Schema.String;
|
|
4
|
+
readonly branch_id: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type RecoverProjectBranchInput = typeof RecoverProjectBranchInput.Type;
|
|
7
|
+
export declare const RecoverProjectBranchOutput: Schema.Struct<{
|
|
8
|
+
readonly branch: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.String;
|
|
10
|
+
readonly project_id: Schema.String;
|
|
11
|
+
readonly parent_id: Schema.optional<Schema.String>;
|
|
12
|
+
readonly parent_lsn: Schema.optional<Schema.String>;
|
|
13
|
+
readonly parent_timestamp: Schema.optional<Schema.String>;
|
|
14
|
+
readonly name: Schema.String;
|
|
15
|
+
readonly current_state: Schema.String;
|
|
16
|
+
readonly pending_state: Schema.optional<Schema.String>;
|
|
17
|
+
readonly state_changed_at: Schema.String;
|
|
18
|
+
readonly logical_size: Schema.optional<Schema.Number>;
|
|
19
|
+
readonly creation_source: Schema.String;
|
|
20
|
+
readonly primary: Schema.optional<Schema.Boolean>;
|
|
21
|
+
readonly default: Schema.Boolean;
|
|
22
|
+
readonly protected: Schema.Boolean;
|
|
23
|
+
readonly cpu_used_sec: Schema.Number;
|
|
24
|
+
readonly compute_time_seconds: Schema.Number;
|
|
25
|
+
readonly active_time_seconds: Schema.Number;
|
|
26
|
+
readonly written_data_bytes: Schema.Number;
|
|
27
|
+
readonly data_transfer_bytes: Schema.Number;
|
|
28
|
+
readonly created_at: Schema.String;
|
|
29
|
+
readonly updated_at: Schema.String;
|
|
30
|
+
readonly ttl_interval_seconds: Schema.optional<Schema.Number>;
|
|
31
|
+
readonly expires_at: Schema.optional<Schema.String>;
|
|
32
|
+
readonly last_reset_at: Schema.optional<Schema.String>;
|
|
33
|
+
readonly created_by: Schema.optional<Schema.Struct<{
|
|
34
|
+
readonly name: Schema.optional<Schema.String>;
|
|
35
|
+
readonly image: Schema.optional<Schema.String>;
|
|
36
|
+
}>>;
|
|
37
|
+
readonly init_source: Schema.optional<Schema.String>;
|
|
38
|
+
readonly restore_status: Schema.optional<Schema.String>;
|
|
39
|
+
readonly restored_from: Schema.optional<Schema.String>;
|
|
40
|
+
readonly restored_as: Schema.optional<Schema.String>;
|
|
41
|
+
readonly restricted_actions: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
42
|
+
readonly name: Schema.String;
|
|
43
|
+
readonly reason: Schema.String;
|
|
44
|
+
}>>>;
|
|
45
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
46
|
+
readonly deleted_at: Schema.String;
|
|
47
|
+
readonly recoverable_until: Schema.String;
|
|
48
|
+
readonly deletion_method: Schema.Literals<readonly ["user", "ttl"]>;
|
|
49
|
+
}>>;
|
|
50
|
+
}>;
|
|
51
|
+
readonly endpoints: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
52
|
+
readonly host: Schema.String;
|
|
53
|
+
readonly id: Schema.String;
|
|
54
|
+
readonly name: Schema.optional<Schema.String>;
|
|
55
|
+
readonly project_id: Schema.String;
|
|
56
|
+
readonly branch_id: Schema.String;
|
|
57
|
+
readonly autoscaling_limit_min_cu: Schema.Number;
|
|
58
|
+
readonly autoscaling_limit_max_cu: Schema.Number;
|
|
59
|
+
readonly region_id: Schema.String;
|
|
60
|
+
readonly type: Schema.Literals<readonly ["read_only", "read_write"]>;
|
|
61
|
+
readonly current_state: Schema.Literals<readonly ["init", "active", "idle"]>;
|
|
62
|
+
readonly pending_state: Schema.optional<Schema.Literals<readonly ["init", "active", "idle"]>>;
|
|
63
|
+
readonly settings: Schema.Struct<{
|
|
64
|
+
readonly pg_settings: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
65
|
+
readonly pgbouncer_settings: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
66
|
+
readonly preload_libraries: Schema.optional<Schema.Struct<{
|
|
67
|
+
readonly use_defaults: Schema.optional<Schema.Boolean>;
|
|
68
|
+
readonly enabled_libraries: Schema.optional<Schema.$Array<Schema.String>>;
|
|
69
|
+
}>>;
|
|
70
|
+
}>;
|
|
71
|
+
readonly pooler_enabled: Schema.Boolean;
|
|
72
|
+
readonly pooler_mode: Schema.Literals<readonly ["transaction"]>;
|
|
73
|
+
readonly disabled: Schema.Boolean;
|
|
74
|
+
readonly passwordless_access: Schema.Boolean;
|
|
75
|
+
readonly last_active: Schema.optional<Schema.String>;
|
|
76
|
+
readonly creation_source: Schema.String;
|
|
77
|
+
readonly created_at: Schema.String;
|
|
78
|
+
readonly updated_at: Schema.String;
|
|
79
|
+
readonly started_at: Schema.optional<Schema.String>;
|
|
80
|
+
readonly suspended_at: Schema.optional<Schema.String>;
|
|
81
|
+
readonly proxy_host: Schema.String;
|
|
82
|
+
readonly suspend_timeout_seconds: Schema.Number;
|
|
83
|
+
readonly provisioner: Schema.String;
|
|
84
|
+
readonly compute_release_version: Schema.optional<Schema.String>;
|
|
85
|
+
}>>>;
|
|
86
|
+
}>;
|
|
87
|
+
export type RecoverProjectBranchOutput = typeof RecoverProjectBranchOutput.Type;
|
|
88
|
+
/**
|
|
89
|
+
* Recover a deleted branch
|
|
90
|
+
*
|
|
91
|
+
* Recovers a deleted branch during the deletion grace period (7 days).
|
|
92
|
+
* The branch must have been soft deleted and not yet permanently deleted.
|
|
93
|
+
* Recovery restores the branch and its endpoints to an idle state.
|
|
94
|
+
* Connection strings remain valid after recovery.
|
|
95
|
+
* TTL branches become non-TTL branches after recovery.
|
|
96
|
+
* This endpoint is in preview and not available to all users.
|
|
97
|
+
*
|
|
98
|
+
* @param project_id - The Neon project ID
|
|
99
|
+
* @param branch_id - The branch ID
|
|
100
|
+
*/
|
|
101
|
+
export declare const recoverProjectBranch: import("@distilled.cloud/core/client").OperationMethod<{
|
|
102
|
+
readonly branch_id: string;
|
|
103
|
+
readonly project_id: string;
|
|
104
|
+
}, {
|
|
105
|
+
readonly branch: {
|
|
106
|
+
readonly active_time_seconds: number;
|
|
107
|
+
readonly compute_time_seconds: number;
|
|
108
|
+
readonly cpu_used_sec: number;
|
|
109
|
+
readonly created_at: string;
|
|
110
|
+
readonly created_by?: {
|
|
111
|
+
readonly image?: string | undefined;
|
|
112
|
+
readonly name?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
readonly creation_source: string;
|
|
115
|
+
readonly current_state: string;
|
|
116
|
+
readonly data_transfer_bytes: number;
|
|
117
|
+
readonly default: boolean;
|
|
118
|
+
readonly expires_at?: string | undefined;
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly init_source?: string | undefined;
|
|
121
|
+
readonly last_reset_at?: string | undefined;
|
|
122
|
+
readonly logical_size?: number | undefined;
|
|
123
|
+
readonly name: string;
|
|
124
|
+
readonly parent_id?: string | undefined;
|
|
125
|
+
readonly parent_lsn?: string | undefined;
|
|
126
|
+
readonly parent_timestamp?: string | undefined;
|
|
127
|
+
readonly pending_state?: string | undefined;
|
|
128
|
+
readonly primary?: boolean | undefined;
|
|
129
|
+
readonly project_id: string;
|
|
130
|
+
readonly protected: boolean;
|
|
131
|
+
readonly recovery?: {
|
|
132
|
+
readonly deleted_at: string;
|
|
133
|
+
readonly deletion_method: "ttl" | "user";
|
|
134
|
+
readonly recoverable_until: string;
|
|
135
|
+
} | undefined;
|
|
136
|
+
readonly restore_status?: string | undefined;
|
|
137
|
+
readonly restored_as?: string | undefined;
|
|
138
|
+
readonly restored_from?: string | undefined;
|
|
139
|
+
readonly restricted_actions?: readonly {
|
|
140
|
+
readonly name: string;
|
|
141
|
+
readonly reason: string;
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
readonly state_changed_at: string;
|
|
144
|
+
readonly ttl_interval_seconds?: number | undefined;
|
|
145
|
+
readonly updated_at: string;
|
|
146
|
+
readonly written_data_bytes: number;
|
|
147
|
+
};
|
|
148
|
+
readonly endpoints?: readonly {
|
|
149
|
+
readonly autoscaling_limit_max_cu: number;
|
|
150
|
+
readonly autoscaling_limit_min_cu: number;
|
|
151
|
+
readonly branch_id: string;
|
|
152
|
+
readonly compute_release_version?: string | undefined;
|
|
153
|
+
readonly created_at: string;
|
|
154
|
+
readonly creation_source: string;
|
|
155
|
+
readonly current_state: "active" | "idle" | "init";
|
|
156
|
+
readonly disabled: boolean;
|
|
157
|
+
readonly host: string;
|
|
158
|
+
readonly id: string;
|
|
159
|
+
readonly last_active?: string | undefined;
|
|
160
|
+
readonly name?: string | undefined;
|
|
161
|
+
readonly passwordless_access: boolean;
|
|
162
|
+
readonly pending_state?: "active" | "idle" | "init" | undefined;
|
|
163
|
+
readonly pooler_enabled: boolean;
|
|
164
|
+
readonly pooler_mode: "transaction";
|
|
165
|
+
readonly project_id: string;
|
|
166
|
+
readonly provisioner: string;
|
|
167
|
+
readonly proxy_host: string;
|
|
168
|
+
readonly region_id: string;
|
|
169
|
+
readonly settings: {
|
|
170
|
+
readonly pg_settings?: {
|
|
171
|
+
readonly [x: string]: string;
|
|
172
|
+
} | undefined;
|
|
173
|
+
readonly pgbouncer_settings?: {
|
|
174
|
+
readonly [x: string]: string;
|
|
175
|
+
} | undefined;
|
|
176
|
+
readonly preload_libraries?: {
|
|
177
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
178
|
+
readonly use_defaults?: boolean | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
};
|
|
181
|
+
readonly started_at?: string | undefined;
|
|
182
|
+
readonly suspend_timeout_seconds: number;
|
|
183
|
+
readonly suspended_at?: string | undefined;
|
|
184
|
+
readonly type: "read_only" | "read_write";
|
|
185
|
+
readonly updated_at: string;
|
|
186
|
+
}[] | undefined;
|
|
187
|
+
}, never, import("../credentials.ts").Credentials>;
|
|
188
|
+
//# sourceMappingURL=recoverProjectBranch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recoverProjectBranch.d.ts","sourceRoot":"","sources":["../../src/operations/recoverProjectBranch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yBAAyB;;;EASnC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoGnC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAKhC,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const RecoverProjectBranchInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "POST",
|
|
11
|
+
path: "/projects/{project_id}/branches/{branch_id}/recover",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const RecoverProjectBranchOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
branch: Schema.Struct({
|
|
17
|
+
id: Schema.String,
|
|
18
|
+
project_id: Schema.String,
|
|
19
|
+
parent_id: Schema.optional(Schema.String),
|
|
20
|
+
parent_lsn: Schema.optional(Schema.String),
|
|
21
|
+
parent_timestamp: Schema.optional(Schema.String),
|
|
22
|
+
name: Schema.String,
|
|
23
|
+
current_state: Schema.String,
|
|
24
|
+
pending_state: Schema.optional(Schema.String),
|
|
25
|
+
state_changed_at: Schema.String,
|
|
26
|
+
logical_size: Schema.optional(Schema.Number),
|
|
27
|
+
creation_source: Schema.String,
|
|
28
|
+
primary: Schema.optional(Schema.Boolean),
|
|
29
|
+
default: Schema.Boolean,
|
|
30
|
+
protected: Schema.Boolean,
|
|
31
|
+
cpu_used_sec: Schema.Number,
|
|
32
|
+
compute_time_seconds: Schema.Number,
|
|
33
|
+
active_time_seconds: Schema.Number,
|
|
34
|
+
written_data_bytes: Schema.Number,
|
|
35
|
+
data_transfer_bytes: Schema.Number,
|
|
36
|
+
created_at: Schema.String,
|
|
37
|
+
updated_at: Schema.String,
|
|
38
|
+
ttl_interval_seconds: Schema.optional(Schema.Number),
|
|
39
|
+
expires_at: Schema.optional(Schema.String),
|
|
40
|
+
last_reset_at: Schema.optional(Schema.String),
|
|
41
|
+
created_by: Schema.optional(Schema.Struct({
|
|
42
|
+
name: Schema.optional(Schema.String),
|
|
43
|
+
image: Schema.optional(Schema.String),
|
|
44
|
+
})),
|
|
45
|
+
init_source: Schema.optional(Schema.String),
|
|
46
|
+
restore_status: Schema.optional(Schema.String),
|
|
47
|
+
restored_from: Schema.optional(Schema.String),
|
|
48
|
+
restored_as: Schema.optional(Schema.String),
|
|
49
|
+
restricted_actions: Schema.optional(Schema.Array(Schema.Struct({
|
|
50
|
+
name: Schema.String,
|
|
51
|
+
reason: Schema.String,
|
|
52
|
+
}))),
|
|
53
|
+
recovery: Schema.optional(Schema.Struct({
|
|
54
|
+
deleted_at: Schema.String,
|
|
55
|
+
recoverable_until: Schema.String,
|
|
56
|
+
deletion_method: Schema.Literals(["user", "ttl"]),
|
|
57
|
+
})),
|
|
58
|
+
}),
|
|
59
|
+
endpoints: Schema.optional(Schema.Array(Schema.Struct({
|
|
60
|
+
host: Schema.String,
|
|
61
|
+
id: Schema.String,
|
|
62
|
+
name: Schema.optional(Schema.String),
|
|
63
|
+
project_id: Schema.String,
|
|
64
|
+
branch_id: Schema.String,
|
|
65
|
+
autoscaling_limit_min_cu: Schema.Number,
|
|
66
|
+
autoscaling_limit_max_cu: Schema.Number,
|
|
67
|
+
region_id: Schema.String,
|
|
68
|
+
type: Schema.Literals(["read_only", "read_write"]),
|
|
69
|
+
current_state: Schema.Literals(["init", "active", "idle"]),
|
|
70
|
+
pending_state: Schema.optional(Schema.Literals(["init", "active", "idle"])),
|
|
71
|
+
settings: Schema.Struct({
|
|
72
|
+
pg_settings: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
73
|
+
pgbouncer_settings: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
74
|
+
preload_libraries: Schema.optional(Schema.Struct({
|
|
75
|
+
use_defaults: Schema.optional(Schema.Boolean),
|
|
76
|
+
enabled_libraries: Schema.optional(Schema.Array(Schema.String)),
|
|
77
|
+
})),
|
|
78
|
+
}),
|
|
79
|
+
pooler_enabled: Schema.Boolean,
|
|
80
|
+
pooler_mode: Schema.Literals(["transaction"]),
|
|
81
|
+
disabled: Schema.Boolean,
|
|
82
|
+
passwordless_access: Schema.Boolean,
|
|
83
|
+
last_active: Schema.optional(Schema.String),
|
|
84
|
+
creation_source: Schema.String,
|
|
85
|
+
created_at: Schema.String,
|
|
86
|
+
updated_at: Schema.String,
|
|
87
|
+
started_at: Schema.optional(Schema.String),
|
|
88
|
+
suspended_at: Schema.optional(Schema.String),
|
|
89
|
+
proxy_host: Schema.String,
|
|
90
|
+
suspend_timeout_seconds: Schema.Number,
|
|
91
|
+
provisioner: Schema.String,
|
|
92
|
+
compute_release_version: Schema.optional(Schema.String),
|
|
93
|
+
}))),
|
|
94
|
+
});
|
|
95
|
+
// The operation
|
|
96
|
+
/**
|
|
97
|
+
* Recover a deleted branch
|
|
98
|
+
*
|
|
99
|
+
* Recovers a deleted branch during the deletion grace period (7 days).
|
|
100
|
+
* The branch must have been soft deleted and not yet permanently deleted.
|
|
101
|
+
* Recovery restores the branch and its endpoints to an idle state.
|
|
102
|
+
* Connection strings remain valid after recovery.
|
|
103
|
+
* TTL branches become non-TTL branches after recovery.
|
|
104
|
+
* This endpoint is in preview and not available to all users.
|
|
105
|
+
*
|
|
106
|
+
* @param project_id - The Neon project ID
|
|
107
|
+
* @param branch_id - The branch ID
|
|
108
|
+
*/
|
|
109
|
+
export const recoverProjectBranch = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
110
|
+
inputSchema: RecoverProjectBranchInput,
|
|
111
|
+
outputSchema: RecoverProjectBranchOutput,
|
|
112
|
+
}));
|
|
113
|
+
//# sourceMappingURL=recoverProjectBranch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recoverProjectBranch.js","sourceRoot":"","sources":["../../src/operations/recoverProjectBranch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,qDAAqD;CAC5D,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC1C,gBAAgB,EAAE,MAA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AM,CAAC,MAAM;QACtC,WAAW,EAAE,MAAM,CAAC,MAAM;QAC1B,uBAAuB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACxD,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACtE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,yBAAyB;IACtC,YAAY,EAAE,0BAA0B;CACzC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const SetOrganizationSpendingLimitInput: Schema.Struct<{
|
|
3
|
+
readonly org_id: Schema.String;
|
|
4
|
+
readonly spending_limit_cents: Schema.Number;
|
|
5
|
+
}>;
|
|
6
|
+
export type SetOrganizationSpendingLimitInput = typeof SetOrganizationSpendingLimitInput.Type;
|
|
7
|
+
export declare const SetOrganizationSpendingLimitOutput: Schema.Struct<{
|
|
8
|
+
readonly spending_limit_cents: Schema.NullOr<Schema.Number>;
|
|
9
|
+
}>;
|
|
10
|
+
export type SetOrganizationSpendingLimitOutput = typeof SetOrganizationSpendingLimitOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Set the organization's monthly spending limit
|
|
13
|
+
*
|
|
14
|
+
* Sets the spending limit for a V3 paid organization. To remove a
|
|
15
|
+
* previously configured limit, send a DELETE request to this endpoint.
|
|
16
|
+
* When a limit is configured, email notifications are sent at 80% and
|
|
17
|
+
* 100% of the limit. Computes are not suspended by this feature.
|
|
18
|
+
* Available to organization admins on Launch and Scale plans only.
|
|
19
|
+
*
|
|
20
|
+
* @param org_id - The Neon organization ID
|
|
21
|
+
*/
|
|
22
|
+
export declare const setOrganizationSpendingLimit: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
|
+
readonly org_id: string;
|
|
24
|
+
readonly spending_limit_cents: number;
|
|
25
|
+
}, {
|
|
26
|
+
readonly spending_limit_cents: number | null;
|
|
27
|
+
}, never, import("../credentials.ts").Credentials>;
|
|
28
|
+
//# sourceMappingURL=setOrganizationSpendingLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setOrganizationSpendingLimit.d.ts","sourceRoot":"","sources":["../../src/operations/setOrganizationSpendingLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iCAAiC;;;EAS3C,CAAC;AACJ,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD,eAAO,MAAM,kCAAkC;;EAG3C,CAAC;AACL,MAAM,MAAM,kCAAkC,GAC5C,OAAO,kCAAkC,CAAC,IAAI,CAAC;AAGjD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,4BAA4B;;;;;kDAIpC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const SetOrganizationSpendingLimitInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
org_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
spending_limit_cents: Schema.Number,
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "PUT",
|
|
11
|
+
path: "/organizations/{org_id}/billing/spending_limit",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const SetOrganizationSpendingLimitOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
spending_limit_cents: Schema.NullOr(Schema.Number),
|
|
17
|
+
});
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Set the organization's monthly spending limit
|
|
21
|
+
*
|
|
22
|
+
* Sets the spending limit for a V3 paid organization. To remove a
|
|
23
|
+
* previously configured limit, send a DELETE request to this endpoint.
|
|
24
|
+
* When a limit is configured, email notifications are sent at 80% and
|
|
25
|
+
* 100% of the limit. Computes are not suspended by this feature.
|
|
26
|
+
* Available to organization admins on Launch and Scale plans only.
|
|
27
|
+
*
|
|
28
|
+
* @param org_id - The Neon organization ID
|
|
29
|
+
*/
|
|
30
|
+
export const setOrganizationSpendingLimit =
|
|
31
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: SetOrganizationSpendingLimitInput,
|
|
33
|
+
outputSchema: SetOrganizationSpendingLimitOutput,
|
|
34
|
+
}));
|
|
35
|
+
//# sourceMappingURL=setOrganizationSpendingLimit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setOrganizationSpendingLimit.js","sourceRoot":"","sources":["../../src/operations/setOrganizationSpendingLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACzC,oBAAoB,EAAE,MAAM,CAAC,MAAM;CACpC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,gDAAgD;CACvD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC;AAC7C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;CACnD,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,iCAAiC;IAC9C,YAAY,EAAE,kCAAkC;CACjD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const UpdateNeonAuthConfigInput: Schema.Struct<{
|
|
3
|
+
readonly project_id: Schema.String;
|
|
4
|
+
readonly branch_id: Schema.String;
|
|
5
|
+
readonly name: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type UpdateNeonAuthConfigInput = typeof UpdateNeonAuthConfigInput.Type;
|
|
8
|
+
export declare const UpdateNeonAuthConfigOutput: Schema.Struct<{
|
|
9
|
+
readonly name: Schema.String;
|
|
10
|
+
}>;
|
|
11
|
+
export type UpdateNeonAuthConfigOutput = typeof UpdateNeonAuthConfigOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Update auth configuration
|
|
14
|
+
*
|
|
15
|
+
* Updates the auth configuration for the branch.
|
|
16
|
+
* Currently supports updating the application name used in auth emails.
|
|
17
|
+
*
|
|
18
|
+
* @param project_id - The Neon project ID
|
|
19
|
+
* @param branch_id - The Neon branch ID
|
|
20
|
+
*/
|
|
21
|
+
export declare const updateNeonAuthConfig: import("@distilled.cloud/core/client").OperationMethod<{
|
|
22
|
+
readonly branch_id: string;
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly project_id: string;
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: string;
|
|
27
|
+
}, never, import("../credentials.ts").Credentials>;
|
|
28
|
+
//# sourceMappingURL=updateNeonAuthConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateNeonAuthConfig.d.ts","sourceRoot":"","sources":["../../src/operations/updateNeonAuthConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yBAAyB;;;;EAUnC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E,eAAO,MAAM,0BAA0B;;EAGnC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;;;;kDAKhC,CAAC"}
|