@distilled.cloud/turso 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/addLocationToGroup.d.ts +29 -0
- package/lib/operations/addLocationToGroup.d.ts.map +1 -0
- package/lib/operations/addLocationToGroup.js +40 -0
- package/lib/operations/addLocationToGroup.js.map +1 -0
- package/lib/operations/addOrganizationMember.d.ts +21 -0
- package/lib/operations/addOrganizationMember.d.ts.map +1 -0
- package/lib/operations/addOrganizationMember.js +32 -0
- package/lib/operations/addOrganizationMember.js.map +1 -0
- package/lib/operations/createAPIToken.d.ts +20 -0
- package/lib/operations/createAPIToken.d.ts.map +1 -0
- package/lib/operations/createAPIToken.js +26 -0
- package/lib/operations/createAPIToken.js.map +1 -0
- package/lib/operations/createDatabase.d.ts +34 -0
- package/lib/operations/createDatabase.d.ts.map +1 -0
- package/lib/operations/createDatabase.js +53 -0
- package/lib/operations/createDatabase.js.map +1 -0
- package/lib/operations/createDatabaseToken.d.ts +29 -0
- package/lib/operations/createDatabaseToken.d.ts.map +1 -0
- package/lib/operations/createDatabaseToken.js +40 -0
- package/lib/operations/createDatabaseToken.js.map +1 -0
- package/lib/operations/createGroup.d.ts +28 -0
- package/lib/operations/createGroup.d.ts.map +1 -0
- package/lib/operations/createGroup.js +37 -0
- package/lib/operations/createGroup.js.map +1 -0
- package/lib/operations/createGroupToken.d.ts +29 -0
- package/lib/operations/createGroupToken.d.ts.map +1 -0
- package/lib/operations/createGroupToken.js +38 -0
- package/lib/operations/createGroupToken.js.map +1 -0
- package/lib/operations/deleteDatabase.d.ts +20 -0
- package/lib/operations/deleteDatabase.d.ts.map +1 -0
- package/lib/operations/deleteDatabase.js +29 -0
- package/lib/operations/deleteDatabase.js.map +1 -0
- package/lib/operations/deleteGroup.d.ts +27 -0
- package/lib/operations/deleteGroup.d.ts.map +1 -0
- package/lib/operations/deleteGroup.js +36 -0
- package/lib/operations/deleteGroup.js.map +1 -0
- package/lib/operations/deleteOrganizationInviteByEmail.d.ts +17 -0
- package/lib/operations/deleteOrganizationInviteByEmail.d.ts.map +1 -0
- package/lib/operations/deleteOrganizationInviteByEmail.js +29 -0
- package/lib/operations/deleteOrganizationInviteByEmail.js.map +1 -0
- package/lib/operations/getDatabase.d.ts +35 -0
- package/lib/operations/getDatabase.d.ts.map +1 -0
- package/lib/operations/getDatabase.js +44 -0
- package/lib/operations/getDatabase.js.map +1 -0
- package/lib/operations/getDatabaseConfiguration.d.ts +24 -0
- package/lib/operations/getDatabaseConfiguration.d.ts.map +1 -0
- package/lib/operations/getDatabaseConfiguration.js +35 -0
- package/lib/operations/getDatabaseConfiguration.js.map +1 -0
- package/lib/operations/getDatabaseInstance.d.ts +28 -0
- package/lib/operations/getDatabaseInstance.d.ts.map +1 -0
- package/lib/operations/getDatabaseInstance.js +39 -0
- package/lib/operations/getDatabaseInstance.js.map +1 -0
- package/lib/operations/getDatabaseStats.d.ts +24 -0
- package/lib/operations/getDatabaseStats.d.ts.map +1 -0
- package/lib/operations/getDatabaseStats.js +33 -0
- package/lib/operations/getDatabaseStats.js.map +1 -0
- package/lib/operations/getDatabaseUsage.d.ts +41 -0
- package/lib/operations/getDatabaseUsage.d.ts.map +1 -0
- package/lib/operations/getDatabaseUsage.js +50 -0
- package/lib/operations/getDatabaseUsage.js.map +1 -0
- package/lib/operations/getGroup.d.ts +27 -0
- package/lib/operations/getGroup.d.ts.map +1 -0
- package/lib/operations/getGroup.js +36 -0
- package/lib/operations/getGroup.js.map +1 -0
- package/lib/operations/getGroupConfiguration.d.ts +20 -0
- package/lib/operations/getGroupConfiguration.d.ts.map +1 -0
- package/lib/operations/getGroupConfiguration.js +31 -0
- package/lib/operations/getGroupConfiguration.js.map +1 -0
- package/lib/operations/getOrganization.d.ts +28 -0
- package/lib/operations/getOrganization.d.ts.map +1 -0
- package/lib/operations/getOrganization.js +34 -0
- package/lib/operations/getOrganization.js.map +1 -0
- package/lib/operations/getOrganizationMember.d.ts +24 -0
- package/lib/operations/getOrganizationMember.d.ts.map +1 -0
- package/lib/operations/getOrganizationMember.js +35 -0
- package/lib/operations/getOrganizationMember.js.map +1 -0
- package/lib/operations/getOrganizationSubscription.d.ts +23 -0
- package/lib/operations/getOrganizationSubscription.d.ts.map +1 -0
- package/lib/operations/getOrganizationSubscription.js +34 -0
- package/lib/operations/getOrganizationSubscription.js.map +1 -0
- package/lib/operations/getOrganizationUsage.d.ts +47 -0
- package/lib/operations/getOrganizationUsage.d.ts.map +1 -0
- package/lib/operations/getOrganizationUsage.js +58 -0
- package/lib/operations/getOrganizationUsage.js.map +1 -0
- package/lib/operations/index.d.ts +46 -1
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +46 -2
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/invalidateDatabaseTokens.d.ts +18 -0
- package/lib/operations/invalidateDatabaseTokens.d.ts.map +1 -0
- package/lib/operations/invalidateDatabaseTokens.js +29 -0
- package/lib/operations/invalidateDatabaseTokens.js.map +1 -0
- package/lib/operations/invalidateGroupTokens.d.ts +18 -0
- package/lib/operations/invalidateGroupTokens.d.ts.map +1 -0
- package/lib/operations/invalidateGroupTokens.js +29 -0
- package/lib/operations/invalidateGroupTokens.js.map +1 -0
- package/lib/operations/inviteOrganizationMember.d.ts +41 -0
- package/lib/operations/inviteOrganizationMember.d.ts.map +1 -0
- package/lib/operations/inviteOrganizationMember.js +52 -0
- package/lib/operations/inviteOrganizationMember.js.map +1 -0
- package/lib/operations/listAPITokens.d.ts +17 -0
- package/lib/operations/listAPITokens.d.ts.map +1 -0
- package/lib/operations/listAPITokens.js +23 -0
- package/lib/operations/listAPITokens.js.map +1 -0
- package/lib/operations/listDatabaseInstances.d.ts +26 -0
- package/lib/operations/listDatabaseInstances.d.ts.map +1 -0
- package/lib/operations/listDatabaseInstances.js +37 -0
- package/lib/operations/listDatabaseInstances.js.map +1 -0
- package/lib/operations/listDatabases.d.ts +39 -0
- package/lib/operations/listDatabases.d.ts.map +1 -0
- package/lib/operations/listDatabases.js +48 -0
- package/lib/operations/listDatabases.js.map +1 -0
- package/lib/operations/listGroups.d.ts +25 -0
- package/lib/operations/listGroups.d.ts.map +1 -0
- package/lib/operations/listGroups.js +34 -0
- package/lib/operations/listGroups.js.map +1 -0
- package/lib/operations/listLocations.d.ts +14 -0
- package/lib/operations/listLocations.d.ts.map +1 -0
- package/lib/operations/listLocations.js +20 -0
- package/lib/operations/listLocations.js.map +1 -0
- package/lib/operations/listOrganizationAuditLogs.d.ts +35 -0
- package/lib/operations/listOrganizationAuditLogs.d.ts.map +1 -0
- package/lib/operations/listOrganizationAuditLogs.js +71 -0
- package/lib/operations/listOrganizationAuditLogs.js.map +1 -0
- package/lib/operations/listOrganizationInvites.d.ts +39 -0
- package/lib/operations/listOrganizationInvites.d.ts.map +1 -0
- package/lib/operations/listOrganizationInvites.js +50 -0
- package/lib/operations/listOrganizationInvites.js.map +1 -0
- package/lib/operations/listOrganizationInvoices.d.ts +27 -0
- package/lib/operations/listOrganizationInvoices.d.ts.map +1 -0
- package/lib/operations/listOrganizationInvoices.js +38 -0
- package/lib/operations/listOrganizationInvoices.js.map +1 -0
- package/lib/operations/listOrganizationMembers.d.ts +22 -0
- package/lib/operations/listOrganizationMembers.d.ts.map +1 -0
- package/lib/operations/listOrganizationMembers.js +33 -0
- package/lib/operations/listOrganizationMembers.js.map +1 -0
- package/lib/operations/listOrganizationPlans.d.ts +34 -0
- package/lib/operations/listOrganizationPlans.d.ts.map +1 -0
- package/lib/operations/listOrganizationPlans.js +45 -0
- package/lib/operations/listOrganizationPlans.js.map +1 -0
- package/lib/operations/listOrganizations.d.ts +22 -0
- package/lib/operations/listOrganizations.d.ts.map +1 -0
- package/lib/operations/listOrganizations.js +28 -0
- package/lib/operations/listOrganizations.js.map +1 -0
- package/lib/operations/removeLocationFromGroup.d.ts +29 -0
- package/lib/operations/removeLocationFromGroup.d.ts.map +1 -0
- package/lib/operations/removeLocationFromGroup.js +40 -0
- package/lib/operations/removeLocationFromGroup.js.map +1 -0
- package/lib/operations/removeOrganizationMember.d.ts +20 -0
- package/lib/operations/removeOrganizationMember.d.ts.map +1 -0
- package/lib/operations/removeOrganizationMember.js +31 -0
- package/lib/operations/removeOrganizationMember.js.map +1 -0
- package/lib/operations/revokeAPIToken.d.ts +18 -0
- package/lib/operations/revokeAPIToken.d.ts.map +1 -0
- package/lib/operations/revokeAPIToken.js +24 -0
- package/lib/operations/revokeAPIToken.js.map +1 -0
- package/lib/operations/transferGroup.d.ts +26 -0
- package/lib/operations/transferGroup.d.ts.map +1 -0
- package/lib/operations/transferGroup.js +35 -0
- package/lib/operations/transferGroup.js.map +1 -0
- package/lib/operations/unarchiveGroup.d.ts +27 -0
- package/lib/operations/unarchiveGroup.d.ts.map +1 -0
- package/lib/operations/unarchiveGroup.js +36 -0
- package/lib/operations/unarchiveGroup.js.map +1 -0
- package/lib/operations/updateDatabaseConfiguration.d.ts +29 -0
- package/lib/operations/updateDatabaseConfiguration.d.ts.map +1 -0
- package/lib/operations/updateDatabaseConfiguration.js +40 -0
- package/lib/operations/updateDatabaseConfiguration.js.map +1 -0
- package/lib/operations/updateGroupConfiguration.d.ts +21 -0
- package/lib/operations/updateGroupConfiguration.d.ts.map +1 -0
- package/lib/operations/updateGroupConfiguration.js +32 -0
- package/lib/operations/updateGroupConfiguration.js.map +1 -0
- package/lib/operations/updateGroupDatabases.d.ts +18 -0
- package/lib/operations/updateGroupDatabases.d.ts.map +1 -0
- package/lib/operations/updateGroupDatabases.js +29 -0
- package/lib/operations/updateGroupDatabases.js.map +1 -0
- package/lib/operations/updateMemberRole.d.ts +25 -0
- package/lib/operations/updateMemberRole.d.ts.map +1 -0
- package/lib/operations/updateMemberRole.js +34 -0
- package/lib/operations/updateMemberRole.js.map +1 -0
- package/lib/operations/updateOrganization.d.ts +29 -0
- package/lib/operations/updateOrganization.d.ts.map +1 -0
- package/lib/operations/updateOrganization.js +37 -0
- package/lib/operations/updateOrganization.js.map +1 -0
- package/lib/operations/validateAPIToken.d.ts +14 -0
- package/lib/operations/validateAPIToken.d.ts.map +1 -0
- package/lib/operations/validateAPIToken.js +20 -0
- package/lib/operations/validateAPIToken.js.map +1 -0
- package/package.json +3 -3
- package/src/operations/addLocationToGroup.ts +48 -0
- package/src/operations/addOrganizationMember.ts +43 -0
- package/src/operations/createAPIToken.ts +30 -0
- package/src/operations/createDatabase.ts +67 -0
- package/src/operations/createDatabaseToken.ts +52 -0
- package/src/operations/createGroup.ts +45 -0
- package/src/operations/createGroupToken.ts +50 -0
- package/src/operations/deleteDatabase.ts +35 -0
- package/src/operations/deleteGroup.ts +44 -0
- package/src/operations/deleteOrganizationInviteByEmail.ts +37 -0
- package/src/operations/getDatabase.ts +56 -0
- package/src/operations/getDatabaseConfiguration.ts +45 -0
- package/src/operations/getDatabaseInstance.ts +47 -0
- package/src/operations/getDatabaseStats.ts +47 -0
- package/src/operations/getDatabaseUsage.ts +68 -0
- package/src/operations/getGroup.ts +44 -0
- package/src/operations/getGroupConfiguration.ts +40 -0
- package/src/operations/getOrganization.ts +42 -0
- package/src/operations/getOrganizationMember.ts +48 -0
- package/src/operations/getOrganizationSubscription.ts +46 -0
- package/src/operations/getOrganizationUsage.ts +82 -0
- package/src/operations/index.ts +46 -2
- package/src/operations/invalidateDatabaseTokens.ts +39 -0
- package/src/operations/invalidateGroupTokens.ts +38 -0
- package/src/operations/inviteOrganizationMember.ts +66 -0
- package/src/operations/listAPITokens.ts +33 -0
- package/src/operations/listDatabaseInstances.ts +50 -0
- package/src/operations/listDatabases.ts +62 -0
- package/src/operations/listGroups.ts +44 -0
- package/src/operations/listLocations.ts +26 -0
- package/src/operations/listOrganizationAuditLogs.ts +89 -0
- package/src/operations/listOrganizationInvites.ts +66 -0
- package/src/operations/listOrganizationInvoices.ts +52 -0
- package/src/operations/listOrganizationMembers.ts +49 -0
- package/src/operations/listOrganizationPlans.ts +64 -0
- package/src/operations/listOrganizations.ts +36 -0
- package/src/operations/removeLocationFromGroup.ts +52 -0
- package/src/operations/removeOrganizationMember.ts +41 -0
- package/src/operations/revokeAPIToken.ts +28 -0
- package/src/operations/transferGroup.ts +41 -0
- package/src/operations/unarchiveGroup.ts +44 -0
- package/src/operations/updateDatabaseConfiguration.ts +50 -0
- package/src/operations/updateGroupConfiguration.ts +42 -0
- package/src/operations/updateGroupDatabases.ts +37 -0
- package/src/operations/updateMemberRole.ts +44 -0
- package/src/operations/updateOrganization.ts +45 -0
- package/src/operations/validateAPIToken.ts +28 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const AddLocationToGroupInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
readonly location: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type AddLocationToGroupInput = typeof AddLocationToGroupInput.Type;
|
|
8
|
+
export declare const AddLocationToGroupOutput: Schema.Struct<{
|
|
9
|
+
readonly group: Schema.optional<Schema.Struct<{
|
|
10
|
+
readonly name: Schema.optional<Schema.String>;
|
|
11
|
+
readonly version: Schema.optional<Schema.String>;
|
|
12
|
+
readonly uuid: Schema.optional<Schema.String>;
|
|
13
|
+
readonly locations: Schema.optional<Schema.$Array<Schema.String>>;
|
|
14
|
+
readonly primary: Schema.optional<Schema.String>;
|
|
15
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
16
|
+
}>>;
|
|
17
|
+
}>;
|
|
18
|
+
export type AddLocationToGroupOutput = typeof AddLocationToGroupOutput.Type;
|
|
19
|
+
/**
|
|
20
|
+
* Add Location to Group
|
|
21
|
+
*
|
|
22
|
+
* Adds a location to the specified group.
|
|
23
|
+
*
|
|
24
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
25
|
+
* @param groupName - The name of the group.
|
|
26
|
+
* @param location - The location code to add to the group.
|
|
27
|
+
*/
|
|
28
|
+
export declare const addLocationToGroup: any;
|
|
29
|
+
//# sourceMappingURL=addLocationToGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addLocationToGroup.d.ts","sourceRoot":"","sources":["../../src/operations/addLocationToGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,uBAAuB;;;;EAUjC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;;;;;;;;EAYjC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,KAG5B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const AddLocationToGroupInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
location: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(T.Http({
|
|
11
|
+
method: "POST",
|
|
12
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/locations/{location}",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const AddLocationToGroupOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
group: Schema.optional(Schema.Struct({
|
|
18
|
+
name: Schema.optional(Schema.String),
|
|
19
|
+
version: Schema.optional(Schema.String),
|
|
20
|
+
uuid: Schema.optional(Schema.String),
|
|
21
|
+
locations: Schema.optional(Schema.Array(Schema.String)),
|
|
22
|
+
primary: Schema.optional(Schema.String),
|
|
23
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
24
|
+
})),
|
|
25
|
+
});
|
|
26
|
+
// The operation
|
|
27
|
+
/**
|
|
28
|
+
* Add Location to Group
|
|
29
|
+
*
|
|
30
|
+
* Adds a location to the specified group.
|
|
31
|
+
*
|
|
32
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
33
|
+
* @param groupName - The name of the group.
|
|
34
|
+
* @param location - The location code to add to the group.
|
|
35
|
+
*/
|
|
36
|
+
export const addLocationToGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
37
|
+
inputSchema: AddLocationToGroupInput,
|
|
38
|
+
outputSchema: AddLocationToGroupOutput,
|
|
39
|
+
}));
|
|
40
|
+
//# sourceMappingURL=addLocationToGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addLocationToGroup.js","sourceRoot":"","sources":["../../src/operations/addLocationToGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC5C,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC5C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,8EAA8E;CACrF,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KACnD,CAAC,CACH;CACF,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const AddOrganizationMemberInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly username: Schema.optional<Schema.String>;
|
|
5
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["admin", "member", "viewer"]>>;
|
|
6
|
+
}>;
|
|
7
|
+
export type AddOrganizationMemberInput = typeof AddOrganizationMemberInput.Type;
|
|
8
|
+
export declare const AddOrganizationMemberOutput: Schema.Struct<{
|
|
9
|
+
readonly member: Schema.optional<Schema.String>;
|
|
10
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>>;
|
|
11
|
+
}>;
|
|
12
|
+
export type AddOrganizationMemberOutput = typeof AddOrganizationMemberOutput.Type;
|
|
13
|
+
/**
|
|
14
|
+
* Add Member
|
|
15
|
+
*
|
|
16
|
+
* Add an existing Turso user to an organization.
|
|
17
|
+
*
|
|
18
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
19
|
+
*/
|
|
20
|
+
export declare const addOrganizationMember: any;
|
|
21
|
+
//# sourceMappingURL=addOrganizationMember.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addOrganizationMember.d.ts","sourceRoot":"","sources":["../../src/operations/addOrganizationMember.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;;;EAUpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;;EAMpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,KAKjC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const AddOrganizationMemberInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
username: Schema.optional(Schema.String),
|
|
9
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
10
|
+
}).pipe(T.Http({
|
|
11
|
+
method: "POST",
|
|
12
|
+
path: "/v1/organizations/{organizationSlug}/members",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const AddOrganizationMemberOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
member: Schema.optional(Schema.String),
|
|
18
|
+
role: Schema.optional(Schema.Literals(["owner", "admin", "member", "viewer"])),
|
|
19
|
+
});
|
|
20
|
+
// The operation
|
|
21
|
+
/**
|
|
22
|
+
* Add Member
|
|
23
|
+
*
|
|
24
|
+
* Add an existing Turso user to an organization.
|
|
25
|
+
*
|
|
26
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
27
|
+
*/
|
|
28
|
+
export const addOrganizationMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: AddOrganizationMemberInput,
|
|
30
|
+
outputSchema: AddOrganizationMemberOutput,
|
|
31
|
+
}));
|
|
32
|
+
//# sourceMappingURL=addOrganizationMember.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addOrganizationMember.js","sourceRoot":"","sources":["../../src/operations/addOrganizationMember.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;CACtE,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,8CAA8C;CACrD,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CACxD;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACvE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;CAC1C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const CreateAPITokenInput: Schema.Struct<{
|
|
3
|
+
readonly tokenName: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type CreateAPITokenInput = typeof CreateAPITokenInput.Type;
|
|
6
|
+
export declare const CreateAPITokenOutput: Schema.Struct<{
|
|
7
|
+
readonly name: Schema.optional<Schema.String>;
|
|
8
|
+
readonly id: Schema.optional<Schema.String>;
|
|
9
|
+
readonly token: Schema.optional<Schema.String>;
|
|
10
|
+
}>;
|
|
11
|
+
export type CreateAPITokenOutput = typeof CreateAPITokenOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Create API Token
|
|
14
|
+
*
|
|
15
|
+
* Returns a new API token belonging to a user.
|
|
16
|
+
*
|
|
17
|
+
* @param tokenName - The name of the api token.
|
|
18
|
+
*/
|
|
19
|
+
export declare const createAPIToken: any;
|
|
20
|
+
//# sourceMappingURL=createAPIToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/createAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;EAE4C,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;EAI/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const CreateAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
tokenName: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/auth/api-tokens/{tokenName}" }));
|
|
8
|
+
// Output Schema
|
|
9
|
+
export const CreateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
name: Schema.optional(Schema.String),
|
|
11
|
+
id: Schema.optional(Schema.String),
|
|
12
|
+
token: Schema.optional(Schema.String),
|
|
13
|
+
});
|
|
14
|
+
// The operation
|
|
15
|
+
/**
|
|
16
|
+
* Create API Token
|
|
17
|
+
*
|
|
18
|
+
* Returns a new API token belonging to a user.
|
|
19
|
+
*
|
|
20
|
+
* @param tokenName - The name of the api token.
|
|
21
|
+
*/
|
|
22
|
+
export const createAPIToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
23
|
+
inputSchema: CreateAPITokenInput,
|
|
24
|
+
outputSchema: CreateAPITokenOutput,
|
|
25
|
+
}));
|
|
26
|
+
//# sourceMappingURL=createAPIToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAPIToken.js","sourceRoot":"","sources":["../../src/operations/createAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC;AAG7E,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const CreateDatabaseInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly name: Schema.String;
|
|
5
|
+
readonly group: Schema.String;
|
|
6
|
+
readonly seed: Schema.optional<Schema.Struct<{
|
|
7
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["database", "database_upload"]>>;
|
|
8
|
+
readonly name: Schema.optional<Schema.String>;
|
|
9
|
+
readonly timestamp: Schema.optional<Schema.String>;
|
|
10
|
+
}>>;
|
|
11
|
+
readonly size_limit: Schema.optional<Schema.String>;
|
|
12
|
+
readonly remote_encryption: Schema.optional<Schema.Struct<{
|
|
13
|
+
readonly encryption_key: Schema.optional<Schema.String>;
|
|
14
|
+
readonly encryption_cipher: Schema.optional<Schema.Literals<readonly ["aes256gcm", "aes128gcm", "chacha20poly1305", "aegis128l", "aegis128x2", "aegis128x4", "aegis256", "aegis256x2", "aegis256x4"]>>;
|
|
15
|
+
}>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type CreateDatabaseInput = typeof CreateDatabaseInput.Type;
|
|
18
|
+
export declare const CreateDatabaseOutput: Schema.Struct<{
|
|
19
|
+
readonly database: Schema.optional<Schema.Struct<{
|
|
20
|
+
readonly DbId: Schema.optional<Schema.String>;
|
|
21
|
+
readonly Hostname: Schema.optional<Schema.String>;
|
|
22
|
+
readonly Name: Schema.optional<Schema.String>;
|
|
23
|
+
}>>;
|
|
24
|
+
}>;
|
|
25
|
+
export type CreateDatabaseOutput = typeof CreateDatabaseOutput.Type;
|
|
26
|
+
/**
|
|
27
|
+
* Create Database
|
|
28
|
+
*
|
|
29
|
+
* Creates a new database in a group for the organization or user.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
*/
|
|
33
|
+
export declare const createDatabase: any;
|
|
34
|
+
//# sourceMappingURL=createDatabase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDatabase.d.ts","sourceRoot":"","sources":["../../src/operations/createDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;EAmC/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;EAQ/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const CreateDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
name: Schema.String,
|
|
8
|
+
group: Schema.String,
|
|
9
|
+
seed: Schema.optional(Schema.Struct({
|
|
10
|
+
type: Schema.optional(Schema.Literals(["database", "database_upload"])),
|
|
11
|
+
name: Schema.optional(Schema.String),
|
|
12
|
+
timestamp: Schema.optional(Schema.String),
|
|
13
|
+
})),
|
|
14
|
+
size_limit: Schema.optional(Schema.String),
|
|
15
|
+
remote_encryption: Schema.optional(Schema.Struct({
|
|
16
|
+
encryption_key: Schema.optional(Schema.String),
|
|
17
|
+
encryption_cipher: Schema.optional(Schema.Literals([
|
|
18
|
+
"aes256gcm",
|
|
19
|
+
"aes128gcm",
|
|
20
|
+
"chacha20poly1305",
|
|
21
|
+
"aegis128l",
|
|
22
|
+
"aegis128x2",
|
|
23
|
+
"aegis128x4",
|
|
24
|
+
"aegis256",
|
|
25
|
+
"aegis256x2",
|
|
26
|
+
"aegis256x4",
|
|
27
|
+
])),
|
|
28
|
+
})),
|
|
29
|
+
}).pipe(T.Http({
|
|
30
|
+
method: "POST",
|
|
31
|
+
path: "/v1/organizations/{organizationSlug}/databases",
|
|
32
|
+
}));
|
|
33
|
+
// Output Schema
|
|
34
|
+
export const CreateDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
35
|
+
database: Schema.optional(Schema.Struct({
|
|
36
|
+
DbId: Schema.optional(Schema.String),
|
|
37
|
+
Hostname: Schema.optional(Schema.String),
|
|
38
|
+
Name: Schema.optional(Schema.String),
|
|
39
|
+
})),
|
|
40
|
+
});
|
|
41
|
+
// The operation
|
|
42
|
+
/**
|
|
43
|
+
* Create Database
|
|
44
|
+
*
|
|
45
|
+
* Creates a new database in a group for the organization or user.
|
|
46
|
+
*
|
|
47
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
48
|
+
*/
|
|
49
|
+
export const createDatabase = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
50
|
+
inputSchema: CreateDatabaseInput,
|
|
51
|
+
outputSchema: CreateDatabaseOutput,
|
|
52
|
+
}));
|
|
53
|
+
//# sourceMappingURL=createDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDatabase.js","sourceRoot":"","sources":["../../src/operations/createDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;QACvE,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC1C,CAAC,CACH;IACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAChC,MAAM,CAAC,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAChC,MAAM,CAAC,QAAQ,CAAC;YACd,WAAW;YACX,WAAW;YACX,kBAAkB;YAClB,WAAW;YACX,YAAY;YACZ,YAAY;YACZ,UAAU;YACV,YAAY;YACZ,YAAY;SACb,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,gDAAgD;CACvD,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACrC,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const CreateDatabaseTokenInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly databaseName: Schema.String;
|
|
5
|
+
readonly expiration: Schema.optional<Schema.String>;
|
|
6
|
+
readonly authorization: Schema.optional<Schema.Literals<readonly ["full-access", "read-only"]>>;
|
|
7
|
+
readonly permissions: Schema.optional<Schema.Struct<{
|
|
8
|
+
readonly read_attach: Schema.optional<Schema.Struct<{
|
|
9
|
+
readonly databases: Schema.optional<Schema.$Array<Schema.String>>;
|
|
10
|
+
}>>;
|
|
11
|
+
}>>;
|
|
12
|
+
}>;
|
|
13
|
+
export type CreateDatabaseTokenInput = typeof CreateDatabaseTokenInput.Type;
|
|
14
|
+
export declare const CreateDatabaseTokenOutput: Schema.Struct<{
|
|
15
|
+
readonly jwt: Schema.optional<Schema.String>;
|
|
16
|
+
}>;
|
|
17
|
+
export type CreateDatabaseTokenOutput = typeof CreateDatabaseTokenOutput.Type;
|
|
18
|
+
/**
|
|
19
|
+
* Generate Database Auth Token
|
|
20
|
+
*
|
|
21
|
+
* Generates an authorization token for the specified database.
|
|
22
|
+
*
|
|
23
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
24
|
+
* @param databaseName - The name of the database.
|
|
25
|
+
* @param expiration - Expiration time for the token (e.g., 2w1d30m).
|
|
26
|
+
* @param authorization - Authorization level for the token (full-access or read-only).
|
|
27
|
+
*/
|
|
28
|
+
export declare const createDatabaseToken: any;
|
|
29
|
+
//# sourceMappingURL=createDatabaseToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDatabaseToken.d.ts","sourceRoot":"","sources":["../../src/operations/createDatabaseToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wBAAwB;;;;;;;;;;EAsBlC,CAAC;AACJ,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;EAGlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,KAG7B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const CreateDatabaseTokenInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
databaseName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
expiration: Schema.optional(Schema.String),
|
|
10
|
+
authorization: Schema.optional(Schema.Literals(["full-access", "read-only"])),
|
|
11
|
+
permissions: Schema.optional(Schema.Struct({
|
|
12
|
+
read_attach: Schema.optional(Schema.Struct({
|
|
13
|
+
databases: Schema.optional(Schema.Array(Schema.String)),
|
|
14
|
+
})),
|
|
15
|
+
})),
|
|
16
|
+
}).pipe(T.Http({
|
|
17
|
+
method: "POST",
|
|
18
|
+
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/auth/tokens",
|
|
19
|
+
}));
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const CreateDatabaseTokenOutput =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
jwt: Schema.optional(Schema.String),
|
|
24
|
+
});
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* Generate Database Auth Token
|
|
28
|
+
*
|
|
29
|
+
* Generates an authorization token for the specified database.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
* @param databaseName - The name of the database.
|
|
33
|
+
* @param expiration - Expiration time for the token (e.g., 2w1d30m).
|
|
34
|
+
* @param authorization - Authorization level for the token (full-access or read-only).
|
|
35
|
+
*/
|
|
36
|
+
export const createDatabaseToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
37
|
+
inputSchema: CreateDatabaseTokenInput,
|
|
38
|
+
outputSchema: CreateDatabaseTokenOutput,
|
|
39
|
+
}));
|
|
40
|
+
//# sourceMappingURL=createDatabaseToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDatabaseToken.js","sourceRoot":"","sources":["../../src/operations/createDatabaseToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAC5B,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAC9C;IACD,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;SACxD,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,2EAA2E;CAClF,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACpC,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const CreateGroupInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly name: Schema.String;
|
|
5
|
+
readonly location: Schema.String;
|
|
6
|
+
readonly extensions: Schema.optional<Schema.Unknown>;
|
|
7
|
+
}>;
|
|
8
|
+
export type CreateGroupInput = typeof CreateGroupInput.Type;
|
|
9
|
+
export declare const CreateGroupOutput: Schema.Struct<{
|
|
10
|
+
readonly group: Schema.optional<Schema.Struct<{
|
|
11
|
+
readonly name: Schema.optional<Schema.String>;
|
|
12
|
+
readonly version: Schema.optional<Schema.String>;
|
|
13
|
+
readonly uuid: Schema.optional<Schema.String>;
|
|
14
|
+
readonly locations: Schema.optional<Schema.$Array<Schema.String>>;
|
|
15
|
+
readonly primary: Schema.optional<Schema.String>;
|
|
16
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
17
|
+
}>>;
|
|
18
|
+
}>;
|
|
19
|
+
export type CreateGroupOutput = typeof CreateGroupOutput.Type;
|
|
20
|
+
/**
|
|
21
|
+
* Create Group
|
|
22
|
+
*
|
|
23
|
+
* Creates a new group for the organization or user.
|
|
24
|
+
*
|
|
25
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
26
|
+
*/
|
|
27
|
+
export declare const createGroup: any;
|
|
28
|
+
//# sourceMappingURL=createGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGroup.d.ts","sourceRoot":"","sources":["../../src/operations/createGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,gBAAgB;;;;;EAU5B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,iBAAiB;;;;;;;;;EAW5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,KAGrB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const CreateGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
name: Schema.String,
|
|
8
|
+
location: Schema.String,
|
|
9
|
+
extensions: Schema.optional(Schema.Unknown),
|
|
10
|
+
}).pipe(T.Http({
|
|
11
|
+
method: "POST",
|
|
12
|
+
path: "/v1/organizations/{organizationSlug}/groups",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const CreateGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
group: Schema.optional(Schema.Struct({
|
|
17
|
+
name: Schema.optional(Schema.String),
|
|
18
|
+
version: Schema.optional(Schema.String),
|
|
19
|
+
uuid: Schema.optional(Schema.String),
|
|
20
|
+
locations: Schema.optional(Schema.Array(Schema.String)),
|
|
21
|
+
primary: Schema.optional(Schema.String),
|
|
22
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
23
|
+
})),
|
|
24
|
+
});
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* Create Group
|
|
28
|
+
*
|
|
29
|
+
* Creates a new group for the organization or user.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
*/
|
|
33
|
+
export const createGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
34
|
+
inputSchema: CreateGroupInput,
|
|
35
|
+
outputSchema: CreateGroupOutput,
|
|
36
|
+
}));
|
|
37
|
+
//# sourceMappingURL=createGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGroup.js","sourceRoot":"","sources":["../../src/operations/createGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxE,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM;IACvB,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CAC5C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,6CAA6C;CACpD,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KACnD,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACrE,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;CAChC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const CreateGroupTokenInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
readonly expiration: Schema.optional<Schema.String>;
|
|
6
|
+
readonly authorization: Schema.optional<Schema.Literals<readonly ["full-access", "read-only"]>>;
|
|
7
|
+
readonly permissions: Schema.optional<Schema.Struct<{
|
|
8
|
+
readonly read_attach: Schema.optional<Schema.Struct<{
|
|
9
|
+
readonly databases: Schema.optional<Schema.$Array<Schema.String>>;
|
|
10
|
+
}>>;
|
|
11
|
+
}>>;
|
|
12
|
+
}>;
|
|
13
|
+
export type CreateGroupTokenInput = typeof CreateGroupTokenInput.Type;
|
|
14
|
+
export declare const CreateGroupTokenOutput: Schema.Struct<{
|
|
15
|
+
readonly jwt: Schema.optional<Schema.String>;
|
|
16
|
+
}>;
|
|
17
|
+
export type CreateGroupTokenOutput = typeof CreateGroupTokenOutput.Type;
|
|
18
|
+
/**
|
|
19
|
+
* Create Group Auth Token
|
|
20
|
+
*
|
|
21
|
+
* Generates an authorization token for the specified group.
|
|
22
|
+
*
|
|
23
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
24
|
+
* @param groupName - The name of the group.
|
|
25
|
+
* @param expiration - Expiration time for the token (e.g., 2w1d30m).
|
|
26
|
+
* @param authorization - Authorization level for the token (full-access or read-only).
|
|
27
|
+
*/
|
|
28
|
+
export declare const createGroupToken: any;
|
|
29
|
+
//# sourceMappingURL=createGroupToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGroupToken.d.ts","sourceRoot":"","sources":["../../src/operations/createGroupToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;;;;;;;;EAmBjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;EAIlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const CreateGroupTokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
expiration: Schema.optional(Schema.String),
|
|
9
|
+
authorization: Schema.optional(Schema.Literals(["full-access", "read-only"])),
|
|
10
|
+
permissions: Schema.optional(Schema.Struct({
|
|
11
|
+
read_attach: Schema.optional(Schema.Struct({
|
|
12
|
+
databases: Schema.optional(Schema.Array(Schema.String)),
|
|
13
|
+
})),
|
|
14
|
+
})),
|
|
15
|
+
}).pipe(T.Http({
|
|
16
|
+
method: "POST",
|
|
17
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/auth/tokens",
|
|
18
|
+
}));
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const CreateGroupTokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
jwt: Schema.optional(Schema.String),
|
|
22
|
+
});
|
|
23
|
+
// The operation
|
|
24
|
+
/**
|
|
25
|
+
* Create Group Auth Token
|
|
26
|
+
*
|
|
27
|
+
* Generates an authorization token for the specified group.
|
|
28
|
+
*
|
|
29
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
30
|
+
* @param groupName - The name of the group.
|
|
31
|
+
* @param expiration - Expiration time for the token (e.g., 2w1d30m).
|
|
32
|
+
* @param authorization - Authorization level for the token (full-access or read-only).
|
|
33
|
+
*/
|
|
34
|
+
export const createGroupToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
35
|
+
inputSchema: CreateGroupTokenInput,
|
|
36
|
+
outputSchema: CreateGroupTokenOutput,
|
|
37
|
+
}));
|
|
38
|
+
//# sourceMappingURL=createGroupToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGroupToken.js","sourceRoot":"","sources":["../../src/operations/createGroupToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;IAC7E,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;SACxD,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,qEAAqE;CAC5E,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACpC,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const DeleteDatabaseInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly databaseName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeleteDatabaseInput = typeof DeleteDatabaseInput.Type;
|
|
7
|
+
export declare const DeleteDatabaseOutput: Schema.Struct<{
|
|
8
|
+
readonly database: Schema.optional<Schema.String>;
|
|
9
|
+
}>;
|
|
10
|
+
export type DeleteDatabaseOutput = typeof DeleteDatabaseOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Delete Database
|
|
13
|
+
*
|
|
14
|
+
* Delete a database belonging to the organization or user.
|
|
15
|
+
*
|
|
16
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
17
|
+
* @param databaseName - The name of the database.
|
|
18
|
+
*/
|
|
19
|
+
export declare const deleteDatabase: any;
|
|
20
|
+
//# sourceMappingURL=deleteDatabase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteDatabase.d.ts","sourceRoot":"","sources":["../../src/operations/deleteDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;EAQ/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;EAE/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const DeleteDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
databaseName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "DELETE",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const DeleteDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
database: Schema.optional(Schema.String),
|
|
15
|
+
});
|
|
16
|
+
// The operation
|
|
17
|
+
/**
|
|
18
|
+
* Delete Database
|
|
19
|
+
*
|
|
20
|
+
* Delete a database belonging to the organization or user.
|
|
21
|
+
*
|
|
22
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
23
|
+
* @param databaseName - The name of the database.
|
|
24
|
+
*/
|
|
25
|
+
export const deleteDatabase = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
26
|
+
inputSchema: DeleteDatabaseInput,
|
|
27
|
+
outputSchema: DeleteDatabaseOutput,
|
|
28
|
+
}));
|
|
29
|
+
//# sourceMappingURL=deleteDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteDatabase.js","sourceRoot":"","sources":["../../src/operations/deleteDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAChD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,+DAA+D;CACtE,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACzC,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const DeleteGroupInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeleteGroupInput = typeof DeleteGroupInput.Type;
|
|
7
|
+
export declare const DeleteGroupOutput: Schema.Struct<{
|
|
8
|
+
readonly group: Schema.optional<Schema.Struct<{
|
|
9
|
+
readonly name: Schema.optional<Schema.String>;
|
|
10
|
+
readonly version: Schema.optional<Schema.String>;
|
|
11
|
+
readonly uuid: Schema.optional<Schema.String>;
|
|
12
|
+
readonly locations: Schema.optional<Schema.$Array<Schema.String>>;
|
|
13
|
+
readonly primary: Schema.optional<Schema.String>;
|
|
14
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
15
|
+
}>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type DeleteGroupOutput = typeof DeleteGroupOutput.Type;
|
|
18
|
+
/**
|
|
19
|
+
* Delete Group
|
|
20
|
+
*
|
|
21
|
+
* Delete a group belonging to the organization or user.
|
|
22
|
+
*
|
|
23
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
24
|
+
* @param groupName - The name of the group.
|
|
25
|
+
*/
|
|
26
|
+
export declare const deleteGroup: any;
|
|
27
|
+
//# sourceMappingURL=deleteGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteGroup.d.ts","sourceRoot":"","sources":["../../src/operations/deleteGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,gBAAgB;;;EAQ5B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,iBAAiB;;;;;;;;;EAW5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,KAGrB,CAAC"}
|