/**
 * Cloudflare MEMBERSHIPS API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service memberships
 */
import * as Schema from "effect/Schema";
import * as API from "../client/api.js";
import * as T from "../traits.js";
import {} from "../errors.js";
export const GetMembershipRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    membershipId: Schema.String.pipe(T.HttpPath("membershipId")),
}).pipe(T.Http({ method: "GET", path: "/memberships/{membershipId}" }));
export const GetMembershipResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    account: Schema.optional(Schema.Union([
        Schema.Struct({
            id: Schema.String,
            name: Schema.String,
            type: Schema.Literals(["standard", "enterprise"]),
            createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
            managedBy: Schema.optional(Schema.Union([
                Schema.Struct({
                    parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                    parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                }).pipe(Schema.encodeKeys({
                    parentOrgId: "parent_org_id",
                    parentOrgName: "parent_org_name",
                })),
                Schema.Null,
            ])),
            settings: Schema.optional(Schema.Union([
                Schema.Struct({
                    abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                    enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }).pipe(Schema.encodeKeys({
                    abuseContactEmail: "abuse_contact_email",
                    enforceTwofactor: "enforce_twofactor",
                })),
                Schema.Null,
            ])),
        }).pipe(Schema.encodeKeys({
            id: "id",
            name: "name",
            type: "type",
            createdOn: "created_on",
            managedBy: "managed_by",
            settings: "settings",
        })),
        Schema.Null,
    ])),
    apiAccessEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
    permissions: Schema.optional(Schema.Union([
        Schema.Struct({
            analytics: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            billing: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            cachePurge: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            dns: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            dnsRecords: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            lb: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            logs: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            organization: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            ssl: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            waf: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            zoneSettings: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            zones: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
        }).pipe(Schema.encodeKeys({
            analytics: "analytics",
            billing: "billing",
            cachePurge: "cache_purge",
            dns: "dns",
            dnsRecords: "dns_records",
            lb: "lb",
            logs: "logs",
            organization: "organization",
            ssl: "ssl",
            waf: "waf",
            zoneSettings: "zone_settings",
            zones: "zones",
        })),
        Schema.Null,
    ])),
    policies: Schema.optional(Schema.Union([
        Schema.Array(Schema.Struct({
            id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
            access: Schema.optional(Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null])),
            permissionGroups: Schema.optional(Schema.Union([
                Schema.Array(Schema.Struct({
                    id: Schema.String,
                    meta: Schema.optional(Schema.Union([
                        Schema.Struct({
                            key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                            value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                        }),
                        Schema.Null,
                    ])),
                    name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                })),
                Schema.Null,
            ])),
            resourceGroups: Schema.optional(Schema.Union([
                Schema.Array(Schema.Struct({
                    id: Schema.String,
                    scope: Schema.Array(Schema.Struct({
                        key: Schema.String,
                        objects: Schema.Array(Schema.Struct({
                            key: Schema.String,
                        })),
                    })),
                    meta: Schema.optional(Schema.Union([
                        Schema.Struct({
                            key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                            value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                        }),
                        Schema.Null,
                    ])),
                    name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                })),
                Schema.Null,
            ])),
        }).pipe(Schema.encodeKeys({
            id: "id",
            access: "access",
            permissionGroups: "permission_groups",
            resourceGroups: "resource_groups",
        }))),
        Schema.Null,
    ])),
    roles: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
    status: Schema.optional(Schema.Union([
        Schema.Literals(["accepted", "pending", "rejected"]),
        Schema.Null,
    ])),
})
    .pipe(Schema.encodeKeys({
    id: "id",
    account: "account",
    apiAccessEnabled: "api_access_enabled",
    permissions: "permissions",
    policies: "policies",
    roles: "roles",
    status: "status",
}))
    .pipe(T.ResponsePath("result"));
export const getMembership = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetMembershipRequest,
    output: GetMembershipResponse,
    errors: [],
}));
export const ListMembershipsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/memberships" }));
export const ListMembershipsResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    result: Schema.Array(Schema.Struct({
        id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
        account: Schema.optional(Schema.Union([
            Schema.Struct({
                id: Schema.String,
                name: Schema.String,
                type: Schema.Literals(["standard", "enterprise"]),
                createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                managedBy: Schema.optional(Schema.Union([
                    Schema.Struct({
                        parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                        parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                    }).pipe(Schema.encodeKeys({
                        parentOrgId: "parent_org_id",
                        parentOrgName: "parent_org_name",
                    })),
                    Schema.Null,
                ])),
                settings: Schema.optional(Schema.Union([
                    Schema.Struct({
                        abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                        enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }).pipe(Schema.encodeKeys({
                        abuseContactEmail: "abuse_contact_email",
                        enforceTwofactor: "enforce_twofactor",
                    })),
                    Schema.Null,
                ])),
            }).pipe(Schema.encodeKeys({
                id: "id",
                name: "name",
                type: "type",
                createdOn: "created_on",
                managedBy: "managed_by",
                settings: "settings",
            })),
            Schema.Null,
        ])),
        apiAccessEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
        permissions: Schema.optional(Schema.Union([
            Schema.Struct({
                analytics: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                billing: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                cachePurge: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                dns: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                dnsRecords: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                lb: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                logs: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                organization: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                ssl: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                waf: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                zoneSettings: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
                zones: Schema.optional(Schema.Union([
                    Schema.Struct({
                        read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                        write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    }),
                    Schema.Null,
                ])),
            }).pipe(Schema.encodeKeys({
                analytics: "analytics",
                billing: "billing",
                cachePurge: "cache_purge",
                dns: "dns",
                dnsRecords: "dns_records",
                lb: "lb",
                logs: "logs",
                organization: "organization",
                ssl: "ssl",
                waf: "waf",
                zoneSettings: "zone_settings",
                zones: "zones",
            })),
            Schema.Null,
        ])),
        roles: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
        status: Schema.optional(Schema.Union([
            Schema.Literals(["accepted", "pending", "rejected"]),
            Schema.Null,
        ])),
    }).pipe(Schema.encodeKeys({
        id: "id",
        account: "account",
        apiAccessEnabled: "api_access_enabled",
        permissions: "permissions",
        roles: "roles",
        status: "status",
    }))),
    resultInfo: Schema.optional(Schema.Union([
        Schema.Struct({
            count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
            page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
            perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
            totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
        }).pipe(Schema.encodeKeys({
            count: "count",
            page: "page",
            perPage: "per_page",
            totalCount: "total_count",
        })),
        Schema.Null,
    ])),
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
export const listMemberships = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
    input: ListMembershipsRequest,
    output: ListMembershipsResponse,
    errors: [],
    pagination: {
        mode: "page",
        inputToken: "page",
        outputToken: "resultInfo.page",
        items: "result",
        pageSize: "perPage",
    },
}));
export const PutMembershipRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    membershipId: Schema.String.pipe(T.HttpPath("membershipId")),
    status: Schema.Literals(["accepted", "rejected"]),
}).pipe(T.Http({ method: "PUT", path: "/memberships/{membershipId}" }));
export const PutMembershipResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    account: Schema.optional(Schema.Union([
        Schema.Struct({
            id: Schema.String,
            name: Schema.String,
            type: Schema.Literals(["standard", "enterprise"]),
            createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
            managedBy: Schema.optional(Schema.Union([
                Schema.Struct({
                    parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                    parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                }).pipe(Schema.encodeKeys({
                    parentOrgId: "parent_org_id",
                    parentOrgName: "parent_org_name",
                })),
                Schema.Null,
            ])),
            settings: Schema.optional(Schema.Union([
                Schema.Struct({
                    abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                    enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }).pipe(Schema.encodeKeys({
                    abuseContactEmail: "abuse_contact_email",
                    enforceTwofactor: "enforce_twofactor",
                })),
                Schema.Null,
            ])),
        }).pipe(Schema.encodeKeys({
            id: "id",
            name: "name",
            type: "type",
            createdOn: "created_on",
            managedBy: "managed_by",
            settings: "settings",
        })),
        Schema.Null,
    ])),
    apiAccessEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
    permissions: Schema.optional(Schema.Union([
        Schema.Struct({
            analytics: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            billing: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            cachePurge: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            dns: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            dnsRecords: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            lb: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            logs: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            organization: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            ssl: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            waf: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            zoneSettings: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
            zones: Schema.optional(Schema.Union([
                Schema.Struct({
                    read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                    write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
                }),
                Schema.Null,
            ])),
        }).pipe(Schema.encodeKeys({
            analytics: "analytics",
            billing: "billing",
            cachePurge: "cache_purge",
            dns: "dns",
            dnsRecords: "dns_records",
            lb: "lb",
            logs: "logs",
            organization: "organization",
            ssl: "ssl",
            waf: "waf",
            zoneSettings: "zone_settings",
            zones: "zones",
        })),
        Schema.Null,
    ])),
    policies: Schema.optional(Schema.Union([
        Schema.Array(Schema.Struct({
            id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
            access: Schema.optional(Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null])),
            permissionGroups: Schema.optional(Schema.Union([
                Schema.Array(Schema.Struct({
                    id: Schema.String,
                    meta: Schema.optional(Schema.Union([
                        Schema.Struct({
                            key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                            value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                        }),
                        Schema.Null,
                    ])),
                    name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                })),
                Schema.Null,
            ])),
            resourceGroups: Schema.optional(Schema.Union([
                Schema.Array(Schema.Struct({
                    id: Schema.String,
                    scope: Schema.Array(Schema.Struct({
                        key: Schema.String,
                        objects: Schema.Array(Schema.Struct({
                            key: Schema.String,
                        })),
                    })),
                    meta: Schema.optional(Schema.Union([
                        Schema.Struct({
                            key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                            value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                        }),
                        Schema.Null,
                    ])),
                    name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                })),
                Schema.Null,
            ])),
        }).pipe(Schema.encodeKeys({
            id: "id",
            access: "access",
            permissionGroups: "permission_groups",
            resourceGroups: "resource_groups",
        }))),
        Schema.Null,
    ])),
    roles: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
    status: Schema.optional(Schema.Union([
        Schema.Literals(["accepted", "pending", "rejected"]),
        Schema.Null,
    ])),
})
    .pipe(Schema.encodeKeys({
    id: "id",
    account: "account",
    apiAccessEnabled: "api_access_enabled",
    permissions: "permissions",
    policies: "policies",
    roles: "roles",
    status: "status",
}))
    .pipe(T.ResponsePath("result"));
export const putMembership = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutMembershipRequest,
    output: PutMembershipResponse,
    errors: [],
}));
export const DeleteMembershipRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    membershipId: Schema.String.pipe(T.HttpPath("membershipId")),
}).pipe(T.Http({ method: "DELETE", path: "/memberships/{membershipId}" }));
export const DeleteMembershipResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
}).pipe(T.ResponsePath("result"));
export const deleteMembership = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: DeleteMembershipRequest,
    output: DeleteMembershipResponse,
    errors: [],
}));
//# sourceMappingURL=memberships.js.map