@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,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 ListOrganizationInvitesInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/invites",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const ListOrganizationInvitesOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
invites: Schema.optional(Schema.Array(Schema.Struct({
|
|
16
|
+
ID: Schema.optional(Schema.Number),
|
|
17
|
+
CreatedAt: Schema.optional(Schema.String),
|
|
18
|
+
UpdatedAt: Schema.optional(Schema.String),
|
|
19
|
+
DeletedAt: Schema.optional(Schema.String),
|
|
20
|
+
Role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
21
|
+
Email: Schema.optional(Schema.String),
|
|
22
|
+
OrganizationID: Schema.optional(Schema.Number),
|
|
23
|
+
Token: Schema.optional(Schema.String),
|
|
24
|
+
Organization: Schema.optional(Schema.Struct({
|
|
25
|
+
name: Schema.optional(Schema.String),
|
|
26
|
+
slug: Schema.optional(Schema.String),
|
|
27
|
+
type: Schema.optional(Schema.Literals(["personal", "team"])),
|
|
28
|
+
overages: Schema.optional(Schema.Boolean),
|
|
29
|
+
blocked_reads: Schema.optional(Schema.Boolean),
|
|
30
|
+
blocked_writes: Schema.optional(Schema.Boolean),
|
|
31
|
+
plan_id: Schema.optional(Schema.String),
|
|
32
|
+
plan_timeline: Schema.optional(Schema.String),
|
|
33
|
+
platform: Schema.optional(Schema.String),
|
|
34
|
+
})),
|
|
35
|
+
Accepted: Schema.optional(Schema.Boolean),
|
|
36
|
+
}))),
|
|
37
|
+
});
|
|
38
|
+
// The operation
|
|
39
|
+
/**
|
|
40
|
+
* List Invites
|
|
41
|
+
*
|
|
42
|
+
* Returns a list of invites for the organization.
|
|
43
|
+
*
|
|
44
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
45
|
+
*/
|
|
46
|
+
export const listOrganizationInvites = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
47
|
+
inputSchema: ListOrganizationInvitesInput,
|
|
48
|
+
outputSchema: ListOrganizationInvitesOutput,
|
|
49
|
+
}));
|
|
50
|
+
//# sourceMappingURL=listOrganizationInvites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationInvites.js","sourceRoot":"","sources":["../../src/operations/listOrganizationInvites.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,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACpD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,8CAA8C;CACrD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;QACrE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAC3B,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;YAC5D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;YACzC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;YAC9C,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;YAC/C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACvC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC7C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SACzC,CAAC,CACH;QACD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KAC1C,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACzE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,6BAA6B;CAC5C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ListOrganizationInvoicesInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["all", "upcoming", "issued"]>>;
|
|
5
|
+
}>;
|
|
6
|
+
export type ListOrganizationInvoicesInput = typeof ListOrganizationInvoicesInput.Type;
|
|
7
|
+
export declare const ListOrganizationInvoicesOutput: Schema.Struct<{
|
|
8
|
+
readonly invoices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
9
|
+
readonly invoice_number: Schema.optional<Schema.String>;
|
|
10
|
+
readonly amount_due: Schema.optional<Schema.String>;
|
|
11
|
+
readonly due_date: Schema.optional<Schema.String>;
|
|
12
|
+
readonly paid_at: Schema.optional<Schema.String>;
|
|
13
|
+
readonly payment_failed_at: Schema.optional<Schema.String>;
|
|
14
|
+
readonly invoice_pdf: Schema.optional<Schema.String>;
|
|
15
|
+
}>>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type ListOrganizationInvoicesOutput = typeof ListOrganizationInvoicesOutput.Type;
|
|
18
|
+
/**
|
|
19
|
+
* List Invoices
|
|
20
|
+
*
|
|
21
|
+
* Returns a list of invoices for the organization.
|
|
22
|
+
*
|
|
23
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
24
|
+
* @param type - The type of invoice to retrieve.
|
|
25
|
+
*/
|
|
26
|
+
export declare const listOrganizationInvoices: any;
|
|
27
|
+
//# sourceMappingURL=listOrganizationInvoices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationInvoices.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationInvoices.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;;;;;;;;;EAcvC,CAAC;AACL,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,KAKpC,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 ListOrganizationInvoicesInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
type: Schema.optional(Schema.Literals(["all", "upcoming", "issued"])),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "GET",
|
|
11
|
+
path: "/v1/organizations/{organizationSlug}/invoices",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ListOrganizationInvoicesOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
invoices: Schema.optional(Schema.Array(Schema.Struct({
|
|
17
|
+
invoice_number: Schema.optional(Schema.String),
|
|
18
|
+
amount_due: Schema.optional(Schema.String),
|
|
19
|
+
due_date: Schema.optional(Schema.String),
|
|
20
|
+
paid_at: Schema.optional(Schema.String),
|
|
21
|
+
payment_failed_at: Schema.optional(Schema.String),
|
|
22
|
+
invoice_pdf: Schema.optional(Schema.String),
|
|
23
|
+
}))),
|
|
24
|
+
});
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* List Invoices
|
|
28
|
+
*
|
|
29
|
+
* Returns a list of invoices for the organization.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
* @param type - The type of invoice to retrieve.
|
|
33
|
+
*/
|
|
34
|
+
export const listOrganizationInvoices = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
35
|
+
inputSchema: ListOrganizationInvoicesInput,
|
|
36
|
+
outputSchema: ListOrganizationInvoicesOutput,
|
|
37
|
+
}));
|
|
38
|
+
//# sourceMappingURL=listOrganizationInvoices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationInvoices.js","sourceRoot":"","sources":["../../src/operations/listOrganizationInvoices.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,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;CACtE,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,+CAA+C;CACtD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9C,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC1C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACjD,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC5C,CAAC,CACH,CACF;CACF,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,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ListOrganizationMembersInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type ListOrganizationMembersInput = typeof ListOrganizationMembersInput.Type;
|
|
6
|
+
export declare const ListOrganizationMembersOutput: Schema.Struct<{
|
|
7
|
+
readonly members: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
8
|
+
readonly username: Schema.optional<Schema.String>;
|
|
9
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>>;
|
|
10
|
+
readonly email: Schema.optional<Schema.String>;
|
|
11
|
+
}>>>;
|
|
12
|
+
}>;
|
|
13
|
+
export type ListOrganizationMembersOutput = typeof ListOrganizationMembersOutput.Type;
|
|
14
|
+
/**
|
|
15
|
+
* List Members
|
|
16
|
+
*
|
|
17
|
+
* Returns a list of members part of the organization.
|
|
18
|
+
*
|
|
19
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
20
|
+
*/
|
|
21
|
+
export declare const listOrganizationMembers: any;
|
|
22
|
+
//# sourceMappingURL=listOrganizationMembers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationMembers.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationMembers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,4BAA4B;;EAQtC,CAAC;AACJ,MAAM,MAAM,4BAA4B,GACtC,OAAO,4BAA4B,CAAC,IAAI,CAAC;AAG3C,eAAO,MAAM,6BAA6B;;;;;;EAatC,CAAC;AACL,MAAM,MAAM,6BAA6B,GACvC,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAG5C;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,KAKnC,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 ListOrganizationMembersInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/members",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const ListOrganizationMembersOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
members: Schema.optional(Schema.Array(Schema.Struct({
|
|
16
|
+
username: Schema.optional(Schema.String),
|
|
17
|
+
role: Schema.optional(Schema.Literals(["owner", "admin", "member", "viewer"])),
|
|
18
|
+
email: Schema.optional(Schema.String),
|
|
19
|
+
}))),
|
|
20
|
+
});
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* List Members
|
|
24
|
+
*
|
|
25
|
+
* Returns a list of members part of the organization.
|
|
26
|
+
*
|
|
27
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
28
|
+
*/
|
|
29
|
+
export const listOrganizationMembers = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
|
+
inputSchema: ListOrganizationMembersInput,
|
|
31
|
+
outputSchema: ListOrganizationMembersOutput,
|
|
32
|
+
}));
|
|
33
|
+
//# sourceMappingURL=listOrganizationMembers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationMembers.js","sourceRoot":"","sources":["../../src/operations/listOrganizationMembers.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,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACpD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,8CAA8C;CACrD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CACxD;QACD,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACtC,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACzE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,6BAA6B;CAC5C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ListOrganizationPlansInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type ListOrganizationPlansInput = typeof ListOrganizationPlansInput.Type;
|
|
6
|
+
export declare const ListOrganizationPlansOutput: Schema.Struct<{
|
|
7
|
+
readonly plans: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
8
|
+
readonly name: Schema.optional<Schema.String>;
|
|
9
|
+
readonly price: Schema.optional<Schema.String>;
|
|
10
|
+
readonly prices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
11
|
+
readonly value: Schema.optional<Schema.String>;
|
|
12
|
+
readonly timeline: Schema.optional<Schema.String>;
|
|
13
|
+
}>>>;
|
|
14
|
+
readonly quotas: Schema.optional<Schema.Struct<{
|
|
15
|
+
readonly rowsRead: Schema.optional<Schema.Number>;
|
|
16
|
+
readonly rowsWritten: Schema.optional<Schema.Number>;
|
|
17
|
+
readonly databases: Schema.optional<Schema.NullOr<Schema.Number>>;
|
|
18
|
+
readonly locations: Schema.optional<Schema.Number>;
|
|
19
|
+
readonly storage: Schema.optional<Schema.Number>;
|
|
20
|
+
readonly groups: Schema.optional<Schema.Number>;
|
|
21
|
+
readonly bytesSynced: Schema.optional<Schema.Number>;
|
|
22
|
+
}>>;
|
|
23
|
+
}>>>;
|
|
24
|
+
}>;
|
|
25
|
+
export type ListOrganizationPlansOutput = typeof ListOrganizationPlansOutput.Type;
|
|
26
|
+
/**
|
|
27
|
+
* List Plans
|
|
28
|
+
*
|
|
29
|
+
* Returns a list of available plans and their quotas.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
*/
|
|
33
|
+
export declare const listOrganizationPlans: any;
|
|
34
|
+
//# sourceMappingURL=listOrganizationPlans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationPlans.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationPlans.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;EAQpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;EA6BpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,KAKjC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const ListOrganizationPlansInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/plans",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const ListOrganizationPlansOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
plans: Schema.optional(Schema.Array(Schema.Struct({
|
|
16
|
+
name: Schema.optional(Schema.String),
|
|
17
|
+
price: Schema.optional(Schema.String),
|
|
18
|
+
prices: Schema.optional(Schema.Array(Schema.Struct({
|
|
19
|
+
value: Schema.optional(Schema.String),
|
|
20
|
+
timeline: Schema.optional(Schema.String),
|
|
21
|
+
}))),
|
|
22
|
+
quotas: Schema.optional(Schema.Struct({
|
|
23
|
+
rowsRead: Schema.optional(Schema.Number),
|
|
24
|
+
rowsWritten: Schema.optional(Schema.Number),
|
|
25
|
+
databases: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
26
|
+
locations: Schema.optional(Schema.Number),
|
|
27
|
+
storage: Schema.optional(Schema.Number),
|
|
28
|
+
groups: Schema.optional(Schema.Number),
|
|
29
|
+
bytesSynced: Schema.optional(Schema.Number),
|
|
30
|
+
})),
|
|
31
|
+
}))),
|
|
32
|
+
});
|
|
33
|
+
// The operation
|
|
34
|
+
/**
|
|
35
|
+
* List Plans
|
|
36
|
+
*
|
|
37
|
+
* Returns a list of available plans and their quotas.
|
|
38
|
+
*
|
|
39
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
40
|
+
*/
|
|
41
|
+
export const listOrganizationPlans = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
42
|
+
inputSchema: ListOrganizationPlansInput,
|
|
43
|
+
outputSchema: ListOrganizationPlansOutput,
|
|
44
|
+
}));
|
|
45
|
+
//# sourceMappingURL=listOrganizationPlans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationPlans.js","sourceRoot":"","sources":["../../src/operations/listOrganizationPlans.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;CACpD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,4CAA4C;CACnD,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SACzC,CAAC,CACH,CACF;QACD,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;YACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACxC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC3C,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACxD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACzC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACvC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACtC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SAC5C,CAAC,CACH;KACF,CAAC,CACH,CACF;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,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ListOrganizationsInput: Schema.Struct<{}>;
|
|
3
|
+
export type ListOrganizationsInput = typeof ListOrganizationsInput.Type;
|
|
4
|
+
export declare const ListOrganizationsOutput: Schema.$Array<Schema.Struct<{
|
|
5
|
+
readonly name: Schema.optional<Schema.String>;
|
|
6
|
+
readonly slug: Schema.optional<Schema.String>;
|
|
7
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["personal", "team"]>>;
|
|
8
|
+
readonly overages: Schema.optional<Schema.Boolean>;
|
|
9
|
+
readonly blocked_reads: Schema.optional<Schema.Boolean>;
|
|
10
|
+
readonly blocked_writes: Schema.optional<Schema.Boolean>;
|
|
11
|
+
readonly plan_id: Schema.optional<Schema.String>;
|
|
12
|
+
readonly plan_timeline: Schema.optional<Schema.String>;
|
|
13
|
+
readonly platform: Schema.optional<Schema.String>;
|
|
14
|
+
}>>;
|
|
15
|
+
export type ListOrganizationsOutput = typeof ListOrganizationsOutput.Type;
|
|
16
|
+
/**
|
|
17
|
+
* List Organizations
|
|
18
|
+
*
|
|
19
|
+
* Returns a list of organizations the authenticated user owns or is a member of.
|
|
20
|
+
*/
|
|
21
|
+
export declare const listOrganizations: any;
|
|
22
|
+
//# sourceMappingURL=listOrganizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizations.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sBAAsB,mBAEyB,CAAC;AAC7D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB;;;;;;;;;;GAYnC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,KAG3B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const ListOrganizationsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/organizations" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const ListOrganizationsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
8
|
+
name: Schema.optional(Schema.String),
|
|
9
|
+
slug: Schema.optional(Schema.String),
|
|
10
|
+
type: Schema.optional(Schema.Literals(["personal", "team"])),
|
|
11
|
+
overages: Schema.optional(Schema.Boolean),
|
|
12
|
+
blocked_reads: Schema.optional(Schema.Boolean),
|
|
13
|
+
blocked_writes: Schema.optional(Schema.Boolean),
|
|
14
|
+
plan_id: Schema.optional(Schema.String),
|
|
15
|
+
plan_timeline: Schema.optional(Schema.String),
|
|
16
|
+
platform: Schema.optional(Schema.String),
|
|
17
|
+
}));
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* List Organizations
|
|
21
|
+
*
|
|
22
|
+
* Returns a list of organizations the authenticated user owns or is a member of.
|
|
23
|
+
*/
|
|
24
|
+
export const listOrganizations = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
25
|
+
inputSchema: ListOrganizationsInput,
|
|
26
|
+
outputSchema: ListOrganizationsOutput,
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=listOrganizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizations.js","sourceRoot":"","sources":["../../src/operations/listOrganizations.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,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E,EAAE,CACH,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAG7D,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAC7E,MAAM,CAAC,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC9C,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACzC,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3E,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;CACtC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const RemoveLocationFromGroupInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
readonly location: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type RemoveLocationFromGroupInput = typeof RemoveLocationFromGroupInput.Type;
|
|
8
|
+
export declare const RemoveLocationFromGroupOutput: 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 RemoveLocationFromGroupOutput = typeof RemoveLocationFromGroupOutput.Type;
|
|
19
|
+
/**
|
|
20
|
+
* Remove Location from Group
|
|
21
|
+
*
|
|
22
|
+
* Removes a location from 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 remove from the group.
|
|
27
|
+
*/
|
|
28
|
+
export declare const removeLocationFromGroup: any;
|
|
29
|
+
//# sourceMappingURL=removeLocationFromGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeLocationFromGroup.d.ts","sourceRoot":"","sources":["../../src/operations/removeLocationFromGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,4BAA4B;;;;EAUtC,CAAC;AACJ,MAAM,MAAM,4BAA4B,GACtC,OAAO,4BAA4B,CAAC,IAAI,CAAC;AAG3C,eAAO,MAAM,6BAA6B;;;;;;;;;EAYtC,CAAC;AACL,MAAM,MAAM,6BAA6B,GACvC,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAG5C;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,KAKnC,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 RemoveLocationFromGroupInput =
|
|
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: "DELETE",
|
|
12
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/locations/{location}",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const RemoveLocationFromGroupOutput =
|
|
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
|
+
* Remove Location from Group
|
|
29
|
+
*
|
|
30
|
+
* Removes a location from 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 remove from the group.
|
|
35
|
+
*/
|
|
36
|
+
export const removeLocationFromGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
37
|
+
inputSchema: RemoveLocationFromGroupInput,
|
|
38
|
+
outputSchema: RemoveLocationFromGroupOutput,
|
|
39
|
+
}));
|
|
40
|
+
//# sourceMappingURL=removeLocationFromGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeLocationFromGroup.js","sourceRoot":"","sources":["../../src/operations/removeLocationFromGroup.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,4BAA4B;AACvC,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,QAAQ;IAChB,IAAI,EAAE,8EAA8E;CACrF,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B;AACxC,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;AAIL,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACzE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,6BAA6B;CAC5C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const RemoveOrganizationMemberInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly username: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type RemoveOrganizationMemberInput = typeof RemoveOrganizationMemberInput.Type;
|
|
7
|
+
export declare const RemoveOrganizationMemberOutput: Schema.Struct<{
|
|
8
|
+
readonly member: Schema.optional<Schema.String>;
|
|
9
|
+
}>;
|
|
10
|
+
export type RemoveOrganizationMemberOutput = typeof RemoveOrganizationMemberOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Remove Member
|
|
13
|
+
*
|
|
14
|
+
* Remove a user from the organization by username.
|
|
15
|
+
*
|
|
16
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
17
|
+
* @param username - The username of a Turso user or organization member.
|
|
18
|
+
*/
|
|
19
|
+
export declare const removeOrganizationMember: any;
|
|
20
|
+
//# sourceMappingURL=removeOrganizationMember.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeOrganizationMember.d.ts","sourceRoot":"","sources":["../../src/operations/removeOrganizationMember.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;;EAGvC,CAAC;AACL,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,KAKpC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const RemoveOrganizationMemberInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
username: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "DELETE",
|
|
11
|
+
path: "/v1/organizations/{organizationSlug}/members/{username}",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const RemoveOrganizationMemberOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
member: Schema.optional(Schema.String),
|
|
17
|
+
});
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Remove Member
|
|
21
|
+
*
|
|
22
|
+
* Remove a user from the organization by username.
|
|
23
|
+
*
|
|
24
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
25
|
+
* @param username - The username of a Turso user or organization member.
|
|
26
|
+
*/
|
|
27
|
+
export const removeOrganizationMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: RemoveOrganizationMemberInput,
|
|
29
|
+
outputSchema: RemoveOrganizationMemberOutput,
|
|
30
|
+
}));
|
|
31
|
+
//# sourceMappingURL=removeOrganizationMember.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeOrganizationMember.js","sourceRoot":"","sources":["../../src/operations/removeOrganizationMember.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,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,QAAQ;IAChB,IAAI,EAAE,yDAAyD;CAChE,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACvC,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,18 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const RevokeAPITokenInput: Schema.Struct<{
|
|
3
|
+
readonly tokenName: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type RevokeAPITokenInput = typeof RevokeAPITokenInput.Type;
|
|
6
|
+
export declare const RevokeAPITokenOutput: Schema.Struct<{
|
|
7
|
+
readonly token: Schema.optional<Schema.String>;
|
|
8
|
+
}>;
|
|
9
|
+
export type RevokeAPITokenOutput = typeof RevokeAPITokenOutput.Type;
|
|
10
|
+
/**
|
|
11
|
+
* Revoke API Token
|
|
12
|
+
*
|
|
13
|
+
* Revokes the provided API token belonging to a user.
|
|
14
|
+
*
|
|
15
|
+
* @param tokenName - The name of the api token.
|
|
16
|
+
*/
|
|
17
|
+
export declare const revokeAPIToken: any;
|
|
18
|
+
//# sourceMappingURL=revokeAPIToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/revokeAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;EAE8C,CAAC;AAC/E,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;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const RevokeAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
tokenName: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
}).pipe(T.Http({ method: "DELETE", path: "/v1/auth/api-tokens/{tokenName}" }));
|
|
8
|
+
// Output Schema
|
|
9
|
+
export const RevokeAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
token: Schema.optional(Schema.String),
|
|
11
|
+
});
|
|
12
|
+
// The operation
|
|
13
|
+
/**
|
|
14
|
+
* Revoke API Token
|
|
15
|
+
*
|
|
16
|
+
* Revokes the provided API token belonging to a user.
|
|
17
|
+
*
|
|
18
|
+
* @param tokenName - The name of the api token.
|
|
19
|
+
*/
|
|
20
|
+
export const revokeAPIToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
21
|
+
inputSchema: RevokeAPITokenInput,
|
|
22
|
+
outputSchema: RevokeAPITokenOutput,
|
|
23
|
+
}));
|
|
24
|
+
//# sourceMappingURL=revokeAPIToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeAPIToken.js","sourceRoot":"","sources":["../../src/operations/revokeAPIToken.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,QAAQ,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC;AAG/E,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,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,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const TransferGroupInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
readonly organization: Schema.optional<Schema.String>;
|
|
6
|
+
}>;
|
|
7
|
+
export type TransferGroupInput = typeof TransferGroupInput.Type;
|
|
8
|
+
export declare const TransferGroupOutput: 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
|
+
export type TransferGroupOutput = typeof TransferGroupOutput.Type;
|
|
17
|
+
/**
|
|
18
|
+
* Transfer Group
|
|
19
|
+
*
|
|
20
|
+
* Transfer a group to another organization that you own or a member of.
|
|
21
|
+
*
|
|
22
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
23
|
+
* @param groupName - The name of the group.
|
|
24
|
+
*/
|
|
25
|
+
export declare const transferGroup: any;
|
|
26
|
+
//# sourceMappingURL=transferGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferGroup.d.ts","sourceRoot":"","sources":["../../src/operations/transferGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kBAAkB;;;;EAS9B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,mBAAmB;;;;;;;EAO9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,KAGvB,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 TransferGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
organization: Schema.optional(Schema.String),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "POST",
|
|
11
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/transfer",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const TransferGroupOutput = /*@__PURE__*/ /*#__PURE__*/ 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
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* Transfer Group
|
|
25
|
+
*
|
|
26
|
+
* Transfer a group to another organization that you own or a member of.
|
|
27
|
+
*
|
|
28
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
29
|
+
* @param groupName - The name of the group.
|
|
30
|
+
*/
|
|
31
|
+
export const transferGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: TransferGroupInput,
|
|
33
|
+
outputSchema: TransferGroupOutput,
|
|
34
|
+
}));
|
|
35
|
+
//# sourceMappingURL=transferGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferGroup.js","sourceRoot":"","sources":["../../src/operations/transferGroup.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,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1E,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,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,kEAAkE;CACzE,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACnD,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,kBAAkB;IAC/B,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC,CAAC"}
|