create()
create(input): Promise<{
api?: {
links?: Record<string, {
href: string;
}>;
redactions?: object[];
};
authenticationProvider: | appleAppStore
| clerk
| customServer
| firebase
| none
| oidc
| {
audiences: string[];
issuerURL: string;
type: "oidc";
}
| {
type: "appleAppStore";
}
| {
type: "customServer";
}
| {
customerDeprovisioningPolicy: "completeProductGrants" | "retainProductGrants";
firebaseProjectId: string;
type: "firebase";
}
| {
authorizedParties: string[];
customerDeprovisioningPolicy: "completeProductGrants" | "retainProductGrants";
hasSecretKey: boolean;
instanceId: string;
issuerURL: string;
type: "clerk";
webhook: | {
hasSigningSecret: boolean;
status: "awaitingVerification" | "verified";
}
| null;
};
billingProviders: (
| {
configuration: {
appStoreConnect: {
credentialSources?: {
privateKey?: {
materializationError: ...;
materializedAt: ...;
secretReference: ...;
secretReferenceLabel: ...;
secretsIntegrationId: ...;
source: ...;
};
sharedSecret?: {
materializationError: ...;
materializedAt: ...;
secretReference: ...;
secretReferenceLabel: ...;
secretsIntegrationId: ...;
source: ...;
};
};
issuerId: string;
privateKey: "";
privateKeyId: string;
sharedSecret: "";
};
fragile_appStoreConnect: {
bundleId: string;
};
};
id: string;
type: "appleAppStore";
updatedAt: string;
}
| {
configuration: {
connect: {
accountId?: string | null;
credentialSources?: {
publishableKey?: {
materializationError: ...;
materializedAt: ...;
secretReference: ...;
secretReferenceLabel: ...;
secretsIntegrationId: ...;
source: ...;
};
secretKey?: {
materializationError: ...;
materializedAt: ...;
secretReference: ...;
secretReferenceLabel: ...;
secretsIntegrationId: ...;
source: ...;
};
};
publishableKey: string;
redirectUrls: string[] | null;
secretKey: "";
webhookApiVersion?: string | null;
webhookId?: string | null;
webhookSecret?: "" | null;
};
};
id: string;
type: "stripe";
updatedAt: string;
})[];
conflicts: {
clientData: unknown;
conflictedAt: number;
serverData: unknown;
};
createdAt?: string;
hidden: boolean;
id: string;
metadata: {
customServerURL?: string | null;
freeUsersAllowed: boolean | null;
};
name: string;
object: "project";
products?: string[];
sandboxMode: boolean;
tombstoned?: boolean;
tombstonedAt?: string | null;
updatedAt?: string;
user: string;
}>;Parameters
input
authenticationProvider
| appleAppStore
| clerk
| customServer
| firebase
| none
| oidc
| {
audiences: string[];
issuerURL: string;
type: "oidc";
}
| {
type: "appleAppStore";
}
| {
type: "customServer";
}
| {
customerDeprovisioningPolicy: "completeProductGrants" | "retainProductGrants";
firebaseProjectId: string;
type: "firebase";
}
| {
authorizedParties: string[];
customerDeprovisioningPolicy: "completeProductGrants" | "retainProductGrants";
instanceId: string;
issuerURL: string;
secretKey: string;
type: "clerk";
webhook: | {
signingSecret: string;
status: "awaitingVerification" | "verified";
}
| null;
} = AuthenticationProviderInputSchema
metadata
{
customServerURL: string | null;
freeUsersAllowed: boolean | null;
} = MetadataInputSchema
metadata.customServerURL
string | null = ...
metadata.freeUsersAllowed
boolean | null = ...
name
string = NameSchema
sandboxMode?
boolean = ...