@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,36 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const DeleteGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "DELETE",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const DeleteGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
group: Schema.optional(Schema.Struct({
|
|
15
|
+
name: Schema.optional(Schema.String),
|
|
16
|
+
version: Schema.optional(Schema.String),
|
|
17
|
+
uuid: Schema.optional(Schema.String),
|
|
18
|
+
locations: Schema.optional(Schema.Array(Schema.String)),
|
|
19
|
+
primary: Schema.optional(Schema.String),
|
|
20
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
21
|
+
})),
|
|
22
|
+
});
|
|
23
|
+
// The operation
|
|
24
|
+
/**
|
|
25
|
+
* Delete Group
|
|
26
|
+
*
|
|
27
|
+
* Delete a group belonging to the organization or user.
|
|
28
|
+
*
|
|
29
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
30
|
+
* @param groupName - The name of the group.
|
|
31
|
+
*/
|
|
32
|
+
export const deleteGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: DeleteGroupInput,
|
|
34
|
+
outputSchema: DeleteGroupOutput,
|
|
35
|
+
}));
|
|
36
|
+
//# sourceMappingURL=deleteGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteGroup.js","sourceRoot":"","sources":["../../src/operations/deleteGroup.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,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,QAAQ;IAChB,IAAI,EAAE,yDAAyD;CAChE,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;;;;;;;GAOG;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,17 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const DeleteOrganizationInviteByEmailInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly email: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeleteOrganizationInviteByEmailInput = typeof DeleteOrganizationInviteByEmailInput.Type;
|
|
7
|
+
export declare const DeleteOrganizationInviteByEmailOutput: Schema.Void;
|
|
8
|
+
export type DeleteOrganizationInviteByEmailOutput = typeof DeleteOrganizationInviteByEmailOutput.Type;
|
|
9
|
+
/**
|
|
10
|
+
* Delete Invite
|
|
11
|
+
*
|
|
12
|
+
* Delete an invite for the organization by email.
|
|
13
|
+
*
|
|
14
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
15
|
+
*/
|
|
16
|
+
export declare const deleteOrganizationInviteByEmail: any;
|
|
17
|
+
//# sourceMappingURL=deleteOrganizationInviteByEmail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteOrganizationInviteByEmail.d.ts","sourceRoot":"","sources":["../../src/operations/deleteOrganizationInviteByEmail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,oCAAoC;;;EAS9C,CAAC;AACJ,MAAM,MAAM,oCAAoC,GAC9C,OAAO,oCAAoC,CAAC,IAAI,CAAC;AAGnD,eAAO,MAAM,qCAAqC,aACT,CAAC;AAC1C,MAAM,MAAM,qCAAqC,GAC/C,OAAO,qCAAqC,CAAC,IAAI,CAAC;AAGpD;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,KAIvC,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 DeleteOrganizationInviteByEmailInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
email: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "DELETE",
|
|
11
|
+
path: "/v1/organizations/{organizationSlug}/invites/{email}",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const DeleteOrganizationInviteByEmailOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
16
|
+
// The operation
|
|
17
|
+
/**
|
|
18
|
+
* Delete Invite
|
|
19
|
+
*
|
|
20
|
+
* Delete an invite for the organization by email.
|
|
21
|
+
*
|
|
22
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
23
|
+
*/
|
|
24
|
+
export const deleteOrganizationInviteByEmail =
|
|
25
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
26
|
+
inputSchema: DeleteOrganizationInviteByEmailInput,
|
|
27
|
+
outputSchema: DeleteOrganizationInviteByEmailOutput,
|
|
28
|
+
}));
|
|
29
|
+
//# sourceMappingURL=deleteOrganizationInviteByEmail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteOrganizationInviteByEmail.js","sourceRoot":"","sources":["../../src/operations/deleteOrganizationInviteByEmail.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,oCAAoC;AAC/C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACzC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,sDAAsD;CAC7D,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC;AAChD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAI1C,gBAAgB;AAChB;;;;;;GAMG;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,35 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetDatabaseInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly databaseName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetDatabaseInput = typeof GetDatabaseInput.Type;
|
|
7
|
+
export declare const GetDatabaseOutput: Schema.Struct<{
|
|
8
|
+
readonly database: Schema.optional<Schema.Struct<{
|
|
9
|
+
readonly Name: Schema.optional<Schema.String>;
|
|
10
|
+
readonly DbId: Schema.optional<Schema.String>;
|
|
11
|
+
readonly Hostname: Schema.optional<Schema.String>;
|
|
12
|
+
readonly block_reads: Schema.optional<Schema.Boolean>;
|
|
13
|
+
readonly block_writes: Schema.optional<Schema.Boolean>;
|
|
14
|
+
readonly regions: Schema.optional<Schema.$Array<Schema.String>>;
|
|
15
|
+
readonly primaryRegion: Schema.optional<Schema.String>;
|
|
16
|
+
readonly group: Schema.optional<Schema.String>;
|
|
17
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
18
|
+
readonly parent: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
19
|
+
readonly id: Schema.optional<Schema.String>;
|
|
20
|
+
readonly name: Schema.optional<Schema.String>;
|
|
21
|
+
readonly branched_at: Schema.optional<Schema.String>;
|
|
22
|
+
}>>>;
|
|
23
|
+
}>>;
|
|
24
|
+
}>;
|
|
25
|
+
export type GetDatabaseOutput = typeof GetDatabaseOutput.Type;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve Database
|
|
28
|
+
*
|
|
29
|
+
* Returns a database belonging to the organization or user.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
* @param databaseName - The name of the database.
|
|
33
|
+
*/
|
|
34
|
+
export declare const getDatabase: any;
|
|
35
|
+
//# sourceMappingURL=getDatabase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabase.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabase.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;;;;;;;;;;;;;;;;;EAuB5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,KAGrB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
databaseName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
database: Schema.optional(Schema.Struct({
|
|
15
|
+
Name: Schema.optional(Schema.String),
|
|
16
|
+
DbId: Schema.optional(Schema.String),
|
|
17
|
+
Hostname: Schema.optional(Schema.String),
|
|
18
|
+
block_reads: Schema.optional(Schema.Boolean),
|
|
19
|
+
block_writes: Schema.optional(Schema.Boolean),
|
|
20
|
+
regions: Schema.optional(Schema.Array(Schema.String)),
|
|
21
|
+
primaryRegion: Schema.optional(Schema.String),
|
|
22
|
+
group: Schema.optional(Schema.String),
|
|
23
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
24
|
+
parent: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
25
|
+
id: Schema.optional(Schema.String),
|
|
26
|
+
name: Schema.optional(Schema.String),
|
|
27
|
+
branched_at: Schema.optional(Schema.String),
|
|
28
|
+
}))),
|
|
29
|
+
})),
|
|
30
|
+
});
|
|
31
|
+
// The operation
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve Database
|
|
34
|
+
*
|
|
35
|
+
* Returns a database belonging to the organization or user.
|
|
36
|
+
*
|
|
37
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
38
|
+
* @param databaseName - The name of the database.
|
|
39
|
+
*/
|
|
40
|
+
export const getDatabase = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: GetDatabaseInput,
|
|
42
|
+
outputSchema: GetDatabaseOutput,
|
|
43
|
+
}));
|
|
44
|
+
//# sourceMappingURL=getDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabase.js","sourceRoot":"","sources":["../../src/operations/getDatabase.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,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,KAAK;IACb,IAAI,EAAE,+DAA+D;CACtE,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC7C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAClD,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CACX,MAAM,CAAC,MAAM,CAAC;YACZ,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAClC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SAC5C,CAAC,CACH,CACF;KACF,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;GAOG;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,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetDatabaseConfigurationInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly databaseName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetDatabaseConfigurationInput = typeof GetDatabaseConfigurationInput.Type;
|
|
7
|
+
export declare const GetDatabaseConfigurationOutput: Schema.Struct<{
|
|
8
|
+
readonly size_limit: Schema.optional<Schema.String>;
|
|
9
|
+
readonly allow_attach: Schema.optional<Schema.Boolean>;
|
|
10
|
+
readonly block_reads: Schema.optional<Schema.Boolean>;
|
|
11
|
+
readonly block_writes: Schema.optional<Schema.Boolean>;
|
|
12
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
13
|
+
}>;
|
|
14
|
+
export type GetDatabaseConfigurationOutput = typeof GetDatabaseConfigurationOutput.Type;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve Database Configuration
|
|
17
|
+
*
|
|
18
|
+
* Retrieve an individual database configuration belonging to the organization or user.
|
|
19
|
+
*
|
|
20
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
21
|
+
* @param databaseName - The name of the database.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getDatabaseConfiguration: any;
|
|
24
|
+
//# sourceMappingURL=getDatabaseConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseConfiguration.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabaseConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,6BAA6B;;;EASvC,CAAC;AACJ,MAAM,MAAM,6BAA6B,GACvC,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAG5C,eAAO,MAAM,8BAA8B;;;;;;EAOvC,CAAC;AACL,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,KAKpC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetDatabaseConfigurationInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
databaseName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "GET",
|
|
11
|
+
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/configuration",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const GetDatabaseConfigurationOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
size_limit: Schema.optional(Schema.String),
|
|
17
|
+
allow_attach: Schema.optional(Schema.Boolean),
|
|
18
|
+
block_reads: Schema.optional(Schema.Boolean),
|
|
19
|
+
block_writes: Schema.optional(Schema.Boolean),
|
|
20
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
21
|
+
});
|
|
22
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve Database Configuration
|
|
25
|
+
*
|
|
26
|
+
* Retrieve an individual database configuration belonging to the organization or user.
|
|
27
|
+
*
|
|
28
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
29
|
+
* @param databaseName - The name of the database.
|
|
30
|
+
*/
|
|
31
|
+
export const getDatabaseConfiguration = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: GetDatabaseConfigurationInput,
|
|
33
|
+
outputSchema: GetDatabaseConfigurationOutput,
|
|
34
|
+
}));
|
|
35
|
+
//# sourceMappingURL=getDatabaseConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseConfiguration.js","sourceRoot":"","sources":["../../src/operations/getDatabaseConfiguration.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,6BAA6B;AACxC,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;CAChD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,6EAA6E;CACpF,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC7C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACnD,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC1E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,8BAA8B;CAC7C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetDatabaseInstanceInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly databaseName: Schema.String;
|
|
5
|
+
readonly instanceName: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type GetDatabaseInstanceInput = typeof GetDatabaseInstanceInput.Type;
|
|
8
|
+
export declare const GetDatabaseInstanceOutput: Schema.Struct<{
|
|
9
|
+
readonly instance: Schema.optional<Schema.Struct<{
|
|
10
|
+
readonly uuid: Schema.optional<Schema.String>;
|
|
11
|
+
readonly name: Schema.optional<Schema.String>;
|
|
12
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["primary", "replica"]>>;
|
|
13
|
+
readonly region: Schema.optional<Schema.String>;
|
|
14
|
+
readonly hostname: Schema.optional<Schema.String>;
|
|
15
|
+
}>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type GetDatabaseInstanceOutput = typeof GetDatabaseInstanceOutput.Type;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve Database Instance
|
|
20
|
+
*
|
|
21
|
+
* Return the individual database instance by name.
|
|
22
|
+
*
|
|
23
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
24
|
+
* @param databaseName - The name of the database.
|
|
25
|
+
* @param instanceName - The name of the instance (location code).
|
|
26
|
+
*/
|
|
27
|
+
export declare const getDatabaseInstance: any;
|
|
28
|
+
//# sourceMappingURL=getDatabaseInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseInstance.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabaseInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wBAAwB;;;;EAUlC,CAAC;AACJ,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;;;;;;;EAWlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,KAG7B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetDatabaseInstanceInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
databaseName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
instanceName: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(T.Http({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/instances/{instanceName}",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const GetDatabaseInstanceOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
instance: Schema.optional(Schema.Struct({
|
|
18
|
+
uuid: Schema.optional(Schema.String),
|
|
19
|
+
name: Schema.optional(Schema.String),
|
|
20
|
+
type: Schema.optional(Schema.Literals(["primary", "replica"])),
|
|
21
|
+
region: Schema.optional(Schema.String),
|
|
22
|
+
hostname: Schema.optional(Schema.String),
|
|
23
|
+
})),
|
|
24
|
+
});
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve Database Instance
|
|
28
|
+
*
|
|
29
|
+
* Return the individual database instance by name.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
* @param databaseName - The name of the database.
|
|
33
|
+
* @param instanceName - The name of the instance (location code).
|
|
34
|
+
*/
|
|
35
|
+
export const getDatabaseInstance = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
36
|
+
inputSchema: GetDatabaseInstanceInput,
|
|
37
|
+
outputSchema: GetDatabaseInstanceOutput,
|
|
38
|
+
}));
|
|
39
|
+
//# sourceMappingURL=getDatabaseInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseInstance.js","sourceRoot":"","sources":["../../src/operations/getDatabaseInstance.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,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,KAAK;IACb,IAAI,EAAE,wFAAwF;CAC/F,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;QAC9D,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACzC,CAAC,CACH;CACF,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;GAQG;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,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetDatabaseStatsInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly databaseName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetDatabaseStatsInput = typeof GetDatabaseStatsInput.Type;
|
|
7
|
+
export declare const GetDatabaseStatsOutput: Schema.Struct<{
|
|
8
|
+
readonly top_queries: Schema.optional<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
9
|
+
readonly query: Schema.optional<Schema.String>;
|
|
10
|
+
readonly rows_read: Schema.optional<Schema.Number>;
|
|
11
|
+
readonly rows_written: Schema.optional<Schema.Number>;
|
|
12
|
+
}>>>>;
|
|
13
|
+
}>;
|
|
14
|
+
export type GetDatabaseStatsOutput = typeof GetDatabaseStatsOutput.Type;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve Database Stats
|
|
17
|
+
*
|
|
18
|
+
* Fetch the top queries of a database, including the count of rows read and written.
|
|
19
|
+
*
|
|
20
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
21
|
+
* @param databaseName - The name of the database.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getDatabaseStats: any;
|
|
24
|
+
//# sourceMappingURL=getDatabaseStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseStats.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabaseStats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;EAQjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;EAclC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetDatabaseStatsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
databaseName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/stats",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetDatabaseStatsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
top_queries: Schema.optional(Schema.NullOr(Schema.Array(Schema.Struct({
|
|
15
|
+
query: Schema.optional(Schema.String),
|
|
16
|
+
rows_read: Schema.optional(Schema.Number),
|
|
17
|
+
rows_written: Schema.optional(Schema.Number),
|
|
18
|
+
})))),
|
|
19
|
+
});
|
|
20
|
+
// The operation
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve Database Stats
|
|
23
|
+
*
|
|
24
|
+
* Fetch the top queries of a database, including the count of rows read and written.
|
|
25
|
+
*
|
|
26
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
27
|
+
* @param databaseName - The name of the database.
|
|
28
|
+
*/
|
|
29
|
+
export const getDatabaseStats = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
|
+
inputSchema: GetDatabaseStatsInput,
|
|
31
|
+
outputSchema: GetDatabaseStatsOutput,
|
|
32
|
+
}));
|
|
33
|
+
//# sourceMappingURL=getDatabaseStats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseStats.js","sourceRoot":"","sources":["../../src/operations/getDatabaseStats.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,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,KAAK;IACb,IAAI,EAAE,qEAAqE;CAC5E,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CACX,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC7C,CAAC,CACH,CACF,CACF;CACF,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;;GAOG;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,41 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetDatabaseUsageInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly databaseName: Schema.String;
|
|
5
|
+
readonly from: Schema.optional<Schema.String>;
|
|
6
|
+
readonly to: Schema.optional<Schema.String>;
|
|
7
|
+
}>;
|
|
8
|
+
export type GetDatabaseUsageInput = typeof GetDatabaseUsageInput.Type;
|
|
9
|
+
export declare const GetDatabaseUsageOutput: Schema.Struct<{
|
|
10
|
+
readonly database: Schema.optional<Schema.Struct<{
|
|
11
|
+
readonly uuid: Schema.optional<Schema.String>;
|
|
12
|
+
readonly instances: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
13
|
+
readonly uuid: Schema.optional<Schema.String>;
|
|
14
|
+
readonly usage: Schema.optional<Schema.Struct<{
|
|
15
|
+
readonly rows_read: Schema.optional<Schema.Number>;
|
|
16
|
+
readonly rows_written: Schema.optional<Schema.Number>;
|
|
17
|
+
readonly storage_bytes: Schema.optional<Schema.Number>;
|
|
18
|
+
readonly bytes_synced: Schema.optional<Schema.Number>;
|
|
19
|
+
}>>;
|
|
20
|
+
}>>>;
|
|
21
|
+
readonly total: Schema.optional<Schema.Struct<{
|
|
22
|
+
readonly rows_read: Schema.optional<Schema.Number>;
|
|
23
|
+
readonly rows_written: Schema.optional<Schema.Number>;
|
|
24
|
+
readonly storage_bytes: Schema.optional<Schema.Number>;
|
|
25
|
+
readonly bytes_synced: Schema.optional<Schema.Number>;
|
|
26
|
+
}>>;
|
|
27
|
+
}>>;
|
|
28
|
+
}>;
|
|
29
|
+
export type GetDatabaseUsageOutput = typeof GetDatabaseUsageOutput.Type;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve Database Usage
|
|
32
|
+
*
|
|
33
|
+
* Fetch activity usage for a database in a given time period.
|
|
34
|
+
*
|
|
35
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
36
|
+
* @param databaseName - The name of the database.
|
|
37
|
+
* @param from - The datetime to retrieve usage **from** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month if not provided. Example: `2023-01-01T00:00:00Z`
|
|
38
|
+
* @param to - The datetime to retrieve usage **to** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month if not provided. Example: `2023-02-01T00:00:00Z`
|
|
39
|
+
*/
|
|
40
|
+
export declare const getDatabaseUsage: any;
|
|
41
|
+
//# sourceMappingURL=getDatabaseUsage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseUsage.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabaseUsage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;;;EAUjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;EA+BlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetDatabaseUsageInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
databaseName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
from: Schema.optional(Schema.String),
|
|
9
|
+
to: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(T.Http({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/usage",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const GetDatabaseUsageOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
database: Schema.optional(Schema.Struct({
|
|
17
|
+
uuid: Schema.optional(Schema.String),
|
|
18
|
+
instances: Schema.optional(Schema.Array(Schema.Struct({
|
|
19
|
+
uuid: Schema.optional(Schema.String),
|
|
20
|
+
usage: Schema.optional(Schema.Struct({
|
|
21
|
+
rows_read: Schema.optional(Schema.Number),
|
|
22
|
+
rows_written: Schema.optional(Schema.Number),
|
|
23
|
+
storage_bytes: Schema.optional(Schema.Number),
|
|
24
|
+
bytes_synced: Schema.optional(Schema.Number),
|
|
25
|
+
})),
|
|
26
|
+
}))),
|
|
27
|
+
total: Schema.optional(Schema.Struct({
|
|
28
|
+
rows_read: Schema.optional(Schema.Number),
|
|
29
|
+
rows_written: Schema.optional(Schema.Number),
|
|
30
|
+
storage_bytes: Schema.optional(Schema.Number),
|
|
31
|
+
bytes_synced: Schema.optional(Schema.Number),
|
|
32
|
+
})),
|
|
33
|
+
})),
|
|
34
|
+
});
|
|
35
|
+
// The operation
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve Database Usage
|
|
38
|
+
*
|
|
39
|
+
* Fetch activity usage for a database in a given time period.
|
|
40
|
+
*
|
|
41
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
42
|
+
* @param databaseName - The name of the database.
|
|
43
|
+
* @param from - The datetime to retrieve usage **from** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month if not provided. Example: `2023-01-01T00:00:00Z`
|
|
44
|
+
* @param to - The datetime to retrieve usage **to** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month if not provided. Example: `2023-02-01T00:00:00Z`
|
|
45
|
+
*/
|
|
46
|
+
export const getDatabaseUsage = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
47
|
+
inputSchema: GetDatabaseUsageInput,
|
|
48
|
+
outputSchema: GetDatabaseUsageOutput,
|
|
49
|
+
}));
|
|
50
|
+
//# sourceMappingURL=getDatabaseUsage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseUsage.js","sourceRoot":"","sources":["../../src/operations/getDatabaseUsage.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,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACnC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,qEAAqE;CAC5E,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CACxB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;gBACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACzC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC5C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC7C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;aAC7C,CAAC,CACH;SACF,CAAC,CACH,CACF;QACD,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACzC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC5C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC7C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SAC7C,CAAC,CACH;KACF,CAAC,CACH;CACF,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,27 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetGroupInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetGroupInput = typeof GetGroupInput.Type;
|
|
7
|
+
export declare const GetGroupOutput: 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 GetGroupOutput = typeof GetGroupOutput.Type;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve Group
|
|
20
|
+
*
|
|
21
|
+
* Returns 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 getGroup: any;
|
|
27
|
+
//# sourceMappingURL=getGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroup.d.ts","sourceRoot":"","sources":["../../src/operations/getGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,aAAa;;;EAQzB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAGtD,eAAO,MAAM,cAAc;;;;;;;;;EAWzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAGxD;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,KAGlB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
group: Schema.optional(Schema.Struct({
|
|
15
|
+
name: Schema.optional(Schema.String),
|
|
16
|
+
version: Schema.optional(Schema.String),
|
|
17
|
+
uuid: Schema.optional(Schema.String),
|
|
18
|
+
locations: Schema.optional(Schema.Array(Schema.String)),
|
|
19
|
+
primary: Schema.optional(Schema.String),
|
|
20
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
21
|
+
})),
|
|
22
|
+
});
|
|
23
|
+
// The operation
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve Group
|
|
26
|
+
*
|
|
27
|
+
* Returns a group belonging to the organization or user.
|
|
28
|
+
*
|
|
29
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
30
|
+
* @param groupName - The name of the group.
|
|
31
|
+
*/
|
|
32
|
+
export const getGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: GetGroupInput,
|
|
34
|
+
outputSchema: GetGroupOutput,
|
|
35
|
+
}));
|
|
36
|
+
//# sourceMappingURL=getGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../../src/operations/getGroup.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,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACrE,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;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,yDAAyD;CAChE,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACtE,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;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAClE,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;CAC7B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetGroupConfigurationInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetGroupConfigurationInput = typeof GetGroupConfigurationInput.Type;
|
|
7
|
+
export declare const GetGroupConfigurationOutput: Schema.Struct<{
|
|
8
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
9
|
+
}>;
|
|
10
|
+
export type GetGroupConfigurationOutput = typeof GetGroupConfigurationOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve Group Configuration
|
|
13
|
+
*
|
|
14
|
+
* Retrieve an individual group configuration belonging to the organization or user.
|
|
15
|
+
*
|
|
16
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
17
|
+
* @param groupName - The name of the group.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getGroupConfiguration: any;
|
|
20
|
+
//# sourceMappingURL=getGroupConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroupConfiguration.d.ts","sourceRoot":"","sources":["../../src/operations/getGroupConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;;EASpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;EAGpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,KAKjC,CAAC"}
|