import * as Schema from "effect/Schema";
import { API } from "../client";
import * as T from "../traits";
// Input Schema
export const PostProductsProductFeaturesInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    product: Schema.String.pipe(T.PathParam()),
    entitlement_feature: Schema.String,
    expand: Schema.optional(Schema.Array(Schema.String)),
}).pipe(T.Http({
    method: "POST",
    path: "/v1/products/{product}/features",
    contentType: "form-urlencoded",
}));
// Output Schema
export const PostProductsProductFeaturesOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    entitlement_feature: Schema.Struct({
        active: Schema.Boolean,
        id: Schema.String,
        livemode: Schema.Boolean,
        lookup_key: Schema.String,
        metadata: Schema.Record(Schema.String, Schema.String),
        name: Schema.String,
        object: Schema.Literals(["entitlements.feature"]),
    }),
    id: Schema.String,
    livemode: Schema.Boolean,
    object: Schema.Literals(["product_feature"]),
});
// The operation
/**
 * Attach a feature to a product
 *
 * <p>Creates a product_feature, which represents a feature attachment to a product</p>
 */
export const PostProductsProductFeatures = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: PostProductsProductFeaturesInput,
    outputSchema: PostProductsProductFeaturesOutput,
}));
//# sourceMappingURL=PostProductsProductFeatures.js.map