/**
 * Cloudflare ORGANIZATIONS API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service organizations
 */
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 GetBillingUsageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
}).pipe(T.Http({
    method: "GET",
    path: "/organizations/{organizationId}/billable/usage",
}));
export const GetBillingUsageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
    billingAccountId: Schema.String,
    billingAccountName: Schema.String,
    chargeCategory: Schema.Literal("Usage"),
    chargeDescription: Schema.String,
    chargeFrequency: Schema.Literal("Usage-Based"),
    chargePeriodEnd: Schema.String,
    chargePeriodStart: Schema.String,
    consumedQuantity: Schema.Number,
    consumedUnit: Schema.String,
    hostProviderName: Schema.String,
    invoiceIssuerName: Schema.String,
    serviceProviderName: Schema.String,
    xBillableMetricName: Schema.String,
    billedCost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
    billingCurrency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    billingPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    billingPeriodStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    chargeClass: Schema.optional(Schema.Union([Schema.Literal("Correction"), Schema.Null])),
    contractedCost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
    contractedUnitPrice: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
    effectiveCost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
    listCost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
    listUnitPrice: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
    pricingQuantity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
    pricingUnit: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    regionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    regionName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    subAccountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    subAccountName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    xBillableMetricId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    xProductFamilyName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    xZoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    xZoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
}).pipe(Schema.encodeKeys({
    billingAccountId: "BillingAccountId",
    billingAccountName: "BillingAccountName",
    chargeCategory: "ChargeCategory",
    chargeDescription: "ChargeDescription",
    chargeFrequency: "ChargeFrequency",
    chargePeriodEnd: "ChargePeriodEnd",
    chargePeriodStart: "ChargePeriodStart",
    consumedQuantity: "ConsumedQuantity",
    consumedUnit: "ConsumedUnit",
    hostProviderName: "HostProviderName",
    invoiceIssuerName: "InvoiceIssuerName",
    serviceProviderName: "ServiceProviderName",
    xBillableMetricName: "x_BillableMetricName",
    billedCost: "BilledCost",
    billingCurrency: "BillingCurrency",
    billingPeriodEnd: "BillingPeriodEnd",
    billingPeriodStart: "BillingPeriodStart",
    chargeClass: "ChargeClass",
    contractedCost: "ContractedCost",
    contractedUnitPrice: "ContractedUnitPrice",
    effectiveCost: "EffectiveCost",
    listCost: "ListCost",
    listUnitPrice: "ListUnitPrice",
    pricingQuantity: "PricingQuantity",
    pricingUnit: "PricingUnit",
    regionId: "RegionId",
    regionName: "RegionName",
    subAccountId: "SubAccountId",
    subAccountName: "SubAccountName",
    xBillableMetricId: "x_BillableMetricId",
    xProductFamilyName: "x_ProductFamilyName",
    xZoneId: "x_ZoneId",
    xZoneName: "x_ZoneName",
}))).pipe(T.ResponsePath("result"));
export const getBillingUsage = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetBillingUsageRequest,
    output: GetBillingUsageResponse,
    errors: [],
}));
export const ListLogAuditsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
    cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
    before: Schema.String.pipe(T.HttpQuery("before")),
    since: Schema.String.pipe(T.HttpQuery("since")),
    id: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("id")),
    actionResult: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.Union([
            Schema.Literals(["success", "failure"]),
            Schema.String,
        ]))),
    })).pipe(T.HttpQuery("action_result")),
    actionType: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.Union([
            Schema.Literals(["create", "delete", "view", "update"]),
            Schema.String,
        ]))),
    })).pipe(T.HttpQuery("action_type")),
    actorContext: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.Union([
            Schema.Literals([
                "api_key",
                "api_token",
                "dash",
                "oauth",
                "origin_ca_key",
            ]),
            Schema.String,
        ]))),
    })).pipe(T.HttpQuery("actor_context")),
    actorEmail: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("actor_email")),
    actorId: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("actor_id")),
    actorIpAddress: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("actor_ip_address")),
    actorTokenId: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("actor_token_id")),
    actorTokenName: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("actor_token_name")),
    actorType: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.Union([
            Schema.Literals(["cloudflare_admin", "system", "user"]),
            Schema.String,
        ]))),
    })).pipe(T.HttpQuery("actor_type")),
    direction: Schema.optional(Schema.Union([Schema.Literals(["desc", "asc"]), Schema.String])).pipe(T.HttpQuery("direction")),
    limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
    rawCfRayId: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("raw_cf_ray_id")),
    rawMethod: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("raw_method")),
    rawStatusCode: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.Number)),
    })).pipe(T.HttpQuery("raw_status_code")),
    rawUri: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("raw_uri")),
    resourceId: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("resource_id")),
    resourceProduct: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("resource_product")),
    resourceScope: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.Literal("organizations"))),
    })).pipe(T.HttpQuery("resource_scope")),
    resourceType: Schema.optional(Schema.Struct({
        not: Schema.optional(Schema.Array(Schema.String)),
    })).pipe(T.HttpQuery("resource_type")),
}).pipe(T.Http({ method: "GET", path: "/organizations/{organizationId}/logs/audit" }));
export const ListLogAuditsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    result: Schema.Array(Schema.Struct({
        id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
        action: Schema.optional(Schema.Union([
            Schema.Struct({
                description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                result: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                time: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
            }),
            Schema.Null,
        ])),
        actor: Schema.optional(Schema.Union([
            Schema.Struct({
                id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                context: Schema.optional(Schema.Union([
                    Schema.Union([
                        Schema.Literals([
                            "api_key",
                            "api_token",
                            "dash",
                            "oauth",
                            "origin_ca_key",
                        ]),
                        Schema.String,
                    ]),
                    Schema.Null,
                ])),
                email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                ipAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                tokenId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                tokenName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                type: Schema.optional(Schema.Union([
                    Schema.Union([
                        Schema.Literals(["cloudflare_admin", "system", "user"]),
                        Schema.String,
                    ]),
                    Schema.Null,
                ])),
            }).pipe(Schema.encodeKeys({
                id: "id",
                context: "context",
                email: "email",
                ipAddress: "ip_address",
                tokenId: "token_id",
                tokenName: "token_name",
                type: "type",
            })),
            Schema.Null,
        ])),
        organization: Schema.optional(Schema.Union([
            Schema.Struct({
                id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
            }),
            Schema.Null,
        ])),
        raw: Schema.optional(Schema.Union([
            Schema.Struct({
                cfRayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
                uri: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                userAgent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
            }).pipe(Schema.encodeKeys({
                cfRayId: "cf_ray_id",
                method: "method",
                statusCode: "status_code",
                uri: "uri",
                userAgent: "user_agent",
            })),
            Schema.Null,
        ])),
        resource: Schema.optional(Schema.Union([
            Schema.Struct({
                id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                product: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                request: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
                response: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
                scope: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
                type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
            }),
            Schema.Null,
        ])),
    })),
    resultInfo: Schema.optional(Schema.Union([
        Schema.Struct({
            cursors: Schema.optional(Schema.Union([
                Schema.Struct({
                    after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                }),
                Schema.Null,
            ])),
        }),
        Schema.Null,
    ])),
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
export const listLogAudits = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
    input: ListLogAuditsRequest,
    output: ListLogAuditsResponse,
    errors: [],
    pagination: {
        mode: "cursor",
        inputToken: "cursor",
        outputToken: "resultInfo.cursors.after",
        items: "result",
    },
}));
export const GetOrganizationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
}).pipe(T.Http({ method: "GET", path: "/organizations/{organizationId}" }));
export const GetOrganizationResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String,
    createTime: Schema.String,
    meta: Schema.Struct({
        flags: Schema.optional(Schema.Union([
            Schema.Struct({
                accountCreation: Schema.String,
                accountDeletion: Schema.String,
                accountMigration: Schema.String,
                accountMobility: Schema.String,
                subOrgCreation: Schema.String,
            }).pipe(Schema.encodeKeys({
                accountCreation: "account_creation",
                accountDeletion: "account_deletion",
                accountMigration: "account_migration",
                accountMobility: "account_mobility",
                subOrgCreation: "sub_org_creation",
            })),
            Schema.Null,
        ])),
        managedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    }).pipe(Schema.encodeKeys({ flags: "flags", managedBy: "managed_by" })),
    name: Schema.String,
    parent: Schema.optional(Schema.Union([
        Schema.Struct({
            id: Schema.String,
            name: Schema.String,
        }),
        Schema.Null,
    ])),
    profile: Schema.optional(Schema.Union([
        Schema.Struct({
            businessAddress: Schema.String,
            businessEmail: Schema.String,
            businessName: Schema.String,
            businessPhone: Schema.String,
            externalMetadata: Schema.String,
        }).pipe(Schema.encodeKeys({
            businessAddress: "business_address",
            businessEmail: "business_email",
            businessName: "business_name",
            businessPhone: "business_phone",
            externalMetadata: "external_metadata",
        })),
        Schema.Null,
    ])),
})
    .pipe(Schema.encodeKeys({
    id: "id",
    createTime: "create_time",
    meta: "meta",
    name: "name",
    parent: "parent",
    profile: "profile",
}))
    .pipe(T.ResponsePath("result"));
export const getOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetOrganizationRequest,
    output: GetOrganizationResponse,
    errors: [],
}));
export const ListOrganizationsRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/organizations" }));
export const ListOrganizationsResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    result: Schema.Array(Schema.Struct({
        id: Schema.String,
        createTime: Schema.String,
        meta: Schema.Struct({
            flags: Schema.optional(Schema.Union([
                Schema.Struct({
                    accountCreation: Schema.String,
                    accountDeletion: Schema.String,
                    accountMigration: Schema.String,
                    accountMobility: Schema.String,
                    subOrgCreation: Schema.String,
                }).pipe(Schema.encodeKeys({
                    accountCreation: "account_creation",
                    accountDeletion: "account_deletion",
                    accountMigration: "account_migration",
                    accountMobility: "account_mobility",
                    subOrgCreation: "sub_org_creation",
                })),
                Schema.Null,
            ])),
            managedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
        }).pipe(Schema.encodeKeys({ flags: "flags", managedBy: "managed_by" })),
        name: Schema.String,
        parent: Schema.optional(Schema.Union([
            Schema.Struct({
                id: Schema.String,
                name: Schema.String,
            }),
            Schema.Null,
        ])),
        profile: Schema.optional(Schema.Union([
            Schema.Struct({
                businessAddress: Schema.String,
                businessEmail: Schema.String,
                businessName: Schema.String,
                businessPhone: Schema.String,
                externalMetadata: Schema.String,
            }).pipe(Schema.encodeKeys({
                businessAddress: "business_address",
                businessEmail: "business_email",
                businessName: "business_name",
                businessPhone: "business_phone",
                externalMetadata: "external_metadata",
            })),
            Schema.Null,
        ])),
    }).pipe(Schema.encodeKeys({
        id: "id",
        createTime: "create_time",
        meta: "meta",
        name: "name",
        parent: "parent",
        profile: "profile",
    }))),
});
export const listOrganizations = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
    input: ListOrganizationsRequest,
    output: ListOrganizationsResponse,
    errors: [],
    pagination: {
        mode: "single",
        items: "result",
    },
}));
export const CreateOrganizationRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    name: Schema.String,
    parent: Schema.optional(Schema.Struct({
        id: Schema.String,
    })),
    profile: Schema.optional(Schema.Struct({
        businessAddress: Schema.String,
        businessEmail: Schema.String,
        businessName: Schema.String,
        businessPhone: Schema.String,
        externalMetadata: Schema.String,
    }).pipe(Schema.encodeKeys({
        businessAddress: "business_address",
        businessEmail: "business_email",
        businessName: "business_name",
        businessPhone: "business_phone",
        externalMetadata: "external_metadata",
    }))),
}).pipe(T.Http({ method: "POST", path: "/organizations" }));
export const CreateOrganizationResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String,
    createTime: Schema.String,
    meta: Schema.Struct({
        flags: Schema.optional(Schema.Union([
            Schema.Struct({
                accountCreation: Schema.String,
                accountDeletion: Schema.String,
                accountMigration: Schema.String,
                accountMobility: Schema.String,
                subOrgCreation: Schema.String,
            }).pipe(Schema.encodeKeys({
                accountCreation: "account_creation",
                accountDeletion: "account_deletion",
                accountMigration: "account_migration",
                accountMobility: "account_mobility",
                subOrgCreation: "sub_org_creation",
            })),
            Schema.Null,
        ])),
        managedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    }).pipe(Schema.encodeKeys({ flags: "flags", managedBy: "managed_by" })),
    name: Schema.String,
    parent: Schema.optional(Schema.Union([
        Schema.Struct({
            id: Schema.String,
            name: Schema.String,
        }),
        Schema.Null,
    ])),
    profile: Schema.optional(Schema.Union([
        Schema.Struct({
            businessAddress: Schema.String,
            businessEmail: Schema.String,
            businessName: Schema.String,
            businessPhone: Schema.String,
            externalMetadata: Schema.String,
        }).pipe(Schema.encodeKeys({
            businessAddress: "business_address",
            businessEmail: "business_email",
            businessName: "business_name",
            businessPhone: "business_phone",
            externalMetadata: "external_metadata",
        })),
        Schema.Null,
    ])),
})
    .pipe(Schema.encodeKeys({
    id: "id",
    createTime: "create_time",
    meta: "meta",
    name: "name",
    parent: "parent",
    profile: "profile",
}))
    .pipe(T.ResponsePath("result"));
export const createOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: CreateOrganizationRequest,
    output: CreateOrganizationResponse,
    errors: [],
}));
export const UpdateOrganizationRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
    name: Schema.String,
    parent: Schema.optional(Schema.Struct({
        id: Schema.String,
    })),
    profile: Schema.optional(Schema.Struct({
        businessAddress: Schema.String,
        businessEmail: Schema.String,
        businessName: Schema.String,
        businessPhone: Schema.String,
        externalMetadata: Schema.String,
    }).pipe(Schema.encodeKeys({
        businessAddress: "business_address",
        businessEmail: "business_email",
        businessName: "business_name",
        businessPhone: "business_phone",
        externalMetadata: "external_metadata",
    }))),
}).pipe(T.Http({ method: "PUT", path: "/organizations/{organizationId}" }));
export const UpdateOrganizationResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String,
    createTime: Schema.String,
    meta: Schema.Struct({
        flags: Schema.optional(Schema.Union([
            Schema.Struct({
                accountCreation: Schema.String,
                accountDeletion: Schema.String,
                accountMigration: Schema.String,
                accountMobility: Schema.String,
                subOrgCreation: Schema.String,
            }).pipe(Schema.encodeKeys({
                accountCreation: "account_creation",
                accountDeletion: "account_deletion",
                accountMigration: "account_migration",
                accountMobility: "account_mobility",
                subOrgCreation: "sub_org_creation",
            })),
            Schema.Null,
        ])),
        managedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    }).pipe(Schema.encodeKeys({ flags: "flags", managedBy: "managed_by" })),
    name: Schema.String,
    parent: Schema.optional(Schema.Union([
        Schema.Struct({
            id: Schema.String,
            name: Schema.String,
        }),
        Schema.Null,
    ])),
    profile: Schema.optional(Schema.Union([
        Schema.Struct({
            businessAddress: Schema.String,
            businessEmail: Schema.String,
            businessName: Schema.String,
            businessPhone: Schema.String,
            externalMetadata: Schema.String,
        }).pipe(Schema.encodeKeys({
            businessAddress: "business_address",
            businessEmail: "business_email",
            businessName: "business_name",
            businessPhone: "business_phone",
            externalMetadata: "external_metadata",
        })),
        Schema.Null,
    ])),
})
    .pipe(Schema.encodeKeys({
    id: "id",
    createTime: "create_time",
    meta: "meta",
    name: "name",
    parent: "parent",
    profile: "profile",
}))
    .pipe(T.ResponsePath("result"));
export const updateOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: UpdateOrganizationRequest,
    output: UpdateOrganizationResponse,
    errors: [],
}));
export const DeleteOrganizationRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
}).pipe(T.Http({ method: "DELETE", path: "/organizations/{organizationId}" }));
export const DeleteOrganizationResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String,
}).pipe(T.ResponsePath("result"));
export const deleteOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: DeleteOrganizationRequest,
    output: DeleteOrganizationResponse,
    errors: [],
}));
export const GetOrganizationProfileRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
}).pipe(T.Http({ method: "GET", path: "/organizations/{organizationId}/profile" }));
export const GetOrganizationProfileResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    businessAddress: Schema.String,
    businessEmail: Schema.String,
    businessName: Schema.String,
    businessPhone: Schema.String,
    externalMetadata: Schema.String,
})
    .pipe(Schema.encodeKeys({
    businessAddress: "business_address",
    businessEmail: "business_email",
    businessName: "business_name",
    businessPhone: "business_phone",
    externalMetadata: "external_metadata",
}))
    .pipe(T.ResponsePath("result"));
export const getOrganizationProfile = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetOrganizationProfileRequest,
    output: GetOrganizationProfileResponse,
    errors: [],
}));
export const PutOrganizationProfileRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
    businessAddress: Schema.String,
    businessEmail: Schema.String,
    businessName: Schema.String,
    businessPhone: Schema.String,
    externalMetadata: Schema.String,
}).pipe(Schema.encodeKeys({
    businessAddress: "business_address",
    businessEmail: "business_email",
    businessName: "business_name",
    businessPhone: "business_phone",
    externalMetadata: "external_metadata",
}), T.Http({ method: "PUT", path: "/organizations/{organizationId}/profile" }));
export const PutOrganizationProfileResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
export const putOrganizationProfile = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutOrganizationProfileRequest,
    output: PutOrganizationProfileResponse,
    errors: [],
}));
//# sourceMappingURL=organizations.js.map