@usegrant/sdk
Version:
TypeSafe TypeScript SDK for accessing the UseGrant REST API
364 lines (363 loc) • 13.8 kB
text/typescript
import { z } from "zod/v4";
//#region src/schema.d.ts
declare const CreateProviderSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
}, z.core.$strip>;
declare const ConditionSchema: z.ZodObject<{
key: z.ZodString;
operator: z.ZodEnum<{
stringEquals: "stringEquals";
stringLike: "stringLike";
stringNotEquals: "stringNotEquals";
stringNotLike: "stringNotLike";
}>;
value: z.ZodString;
}, z.core.$strip>;
declare const CreateClientSchema: z.ZodObject<{
name: z.ZodString;
audience: z.ZodString;
}, z.core.$strip>;
declare const AddDomainSchema: z.ZodObject<{
domain: z.ZodString;
}, z.core.$strip>;
declare const CreateTokenSchema: z.ZodObject<{
expiresIn: z.ZodOptional<z.ZodNumber>;
useJwtType: z.ZodOptional<z.ZodBoolean>;
audienceAsArray: z.ZodOptional<z.ZodBoolean>;
forceDefaultDomain: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
declare const CreateTenantSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
}, z.core.$strip>;
declare const CreateTenantProviderSchema: z.ZodObject<{
url: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
fingerprints: z.ZodArray<z.ZodString>;
audience: z.ZodString;
earliestIssuanceTimeAllowed: z.ZodCoercedNumber<unknown>;
}, z.core.$strip>;
declare const CreateTenantProviderPolicySchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
audience: z.ZodString;
conditions: z.ZodArray<z.ZodObject<{
key: z.ZodString;
operator: z.ZodEnum<{
stringEquals: "stringEquals";
stringLike: "stringLike";
stringNotEquals: "stringNotEquals";
stringNotLike: "stringNotLike";
}>;
value: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
declare const ProviderSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
declare const ClientSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
audience: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
declare const DomainSchema: z.ZodObject<{
id: z.ZodString;
domain: z.ZodString;
verified: z.ZodBoolean;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
declare const TenantSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
declare const TenantProviderSchema: z.ZodObject<{
id: z.ZodString;
url: z.ZodString;
fingerprints: z.ZodArray<z.ZodString>;
audience: z.ZodString;
earliestIssuanceTimeAllowed: z.ZodNumber;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
declare const TokenSchema: z.ZodObject<{
accessToken: z.ZodString;
expiresAt: z.ZodString;
type: z.ZodLiteral<"Bearer">;
}, z.core.$strip>;
declare const ValidateTokenResponseSchema: z.ZodObject<{
exp: z.ZodNumber;
}, z.core.$strip>;
declare const TenantProviderPolicySchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
audience: z.ZodString;
conditions: z.ZodArray<z.ZodObject<{
key: z.ZodString;
operator: z.ZodEnum<{
stringEquals: "stringEquals";
stringLike: "stringLike";
stringNotEquals: "stringNotEquals";
stringNotLike: "stringNotLike";
}>;
value: z.ZodString;
}, z.core.$strip>>;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
declare const EmptyResponseSchema: z.ZodString;
declare const DomainValidationResponseSchema: z.ZodObject<{
domain: z.ZodObject<{
id: z.ZodString;
domain: z.ZodString;
verified: z.ZodBoolean;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
verified: z.ZodBoolean;
message: z.ZodString;
}, z.core.$strip>;
declare const ProviderIdSchema: z.ZodString;
declare const ClientIdSchema: z.ZodString;
declare const DomainIdSchema: z.ZodString;
declare const TenantIdSchema: z.ZodString;
declare const TenantProviderIdSchema: z.ZodString;
declare const TenantProviderPolicyIdSchema: z.ZodString;
declare const GetProvidersFn: z.core.$ZodFunction<z.core.$ZodFunctionArgs, z.ZodPromise<z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>>;
declare const CreateProviderFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
}, z.core.$strip>], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const GetProviderFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const DeleteProviderFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString], null>, z.ZodPromise<z.ZodString>>;
declare const GetClientsFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString], null>, z.ZodPromise<z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
audience: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>>;
declare const CreateClientFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodObject<{
name: z.ZodString;
audience: z.ZodString;
}, z.core.$strip>], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
audience: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const GetClientFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
audience: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const DeleteClientFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodString>>;
declare const CreateTokenFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString, z.ZodObject<{
expiresIn: z.ZodOptional<z.ZodNumber>;
useJwtType: z.ZodOptional<z.ZodBoolean>;
audienceAsArray: z.ZodOptional<z.ZodBoolean>;
forceDefaultDomain: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>], null>, z.ZodPromise<z.ZodObject<{
accessToken: z.ZodString;
expiresAt: z.ZodString;
type: z.ZodLiteral<"Bearer">;
}, z.core.$strip>>>;
declare const GetTenantsFn: z.core.$ZodFunction<z.core.$ZodTuple<[], null>, z.ZodPromise<z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>>;
declare const AddDomainFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodObject<{
domain: z.ZodString;
}, z.core.$strip>], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
domain: z.ZodString;
verified: z.ZodBoolean;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const DeleteDomainFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodString>>;
declare const GetDomainFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
domain: z.ZodString;
verified: z.ZodBoolean;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const GetDomainsFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString], null>, z.ZodPromise<z.ZodArray<z.ZodObject<{
id: z.ZodString;
domain: z.ZodString;
verified: z.ZodBoolean;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>>;
declare const VerifyDomainFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodObject<{
domain: z.ZodObject<{
id: z.ZodString;
domain: z.ZodString;
verified: z.ZodBoolean;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
verified: z.ZodBoolean;
message: z.ZodString;
}, z.core.$strip>>>;
declare const CreateTenantFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
}, z.core.$strip>], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const GetTenantFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const DeleteTenantFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString], null>, z.ZodPromise<z.ZodString>>;
declare const GetTenantProvidersFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString], null>, z.ZodPromise<z.ZodArray<z.ZodObject<{
id: z.ZodString;
url: z.ZodString;
fingerprints: z.ZodArray<z.ZodString>;
audience: z.ZodString;
earliestIssuanceTimeAllowed: z.ZodNumber;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>>;
declare const CreateTenantProviderFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodObject<{
url: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
fingerprints: z.ZodArray<z.ZodString>;
audience: z.ZodString;
earliestIssuanceTimeAllowed: z.ZodCoercedNumber<unknown>;
}, z.core.$strip>], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
url: z.ZodString;
fingerprints: z.ZodArray<z.ZodString>;
audience: z.ZodString;
earliestIssuanceTimeAllowed: z.ZodNumber;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const GetTenantProviderFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
url: z.ZodString;
fingerprints: z.ZodArray<z.ZodString>;
audience: z.ZodString;
earliestIssuanceTimeAllowed: z.ZodNumber;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const DeleteTenantProviderFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodString>>;
declare const CreateTenantProviderPolicyFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString, z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
audience: z.ZodString;
conditions: z.ZodArray<z.ZodObject<{
key: z.ZodString;
operator: z.ZodEnum<{
stringEquals: "stringEquals";
stringLike: "stringLike";
stringNotEquals: "stringNotEquals";
stringNotLike: "stringNotLike";
}>;
value: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
audience: z.ZodString;
conditions: z.ZodArray<z.ZodObject<{
key: z.ZodString;
operator: z.ZodEnum<{
stringEquals: "stringEquals";
stringLike: "stringLike";
stringNotEquals: "stringNotEquals";
stringNotLike: "stringNotLike";
}>;
value: z.ZodString;
}, z.core.$strip>>;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const GetTenantProviderPoliciesFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
audience: z.ZodString;
conditions: z.ZodArray<z.ZodObject<{
key: z.ZodString;
operator: z.ZodEnum<{
stringEquals: "stringEquals";
stringLike: "stringLike";
stringNotEquals: "stringNotEquals";
stringNotLike: "stringNotLike";
}>;
value: z.ZodString;
}, z.core.$strip>>;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>>;
declare const GetTenantProviderPolicyFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
description: z.ZodString;
audience: z.ZodString;
conditions: z.ZodArray<z.ZodObject<{
key: z.ZodString;
operator: z.ZodEnum<{
stringEquals: "stringEquals";
stringLike: "stringLike";
stringNotEquals: "stringNotEquals";
stringNotLike: "stringNotLike";
}>;
value: z.ZodString;
}, z.core.$strip>>;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>>>;
declare const DeleteTenantProviderPolicyFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodString>>;
declare const ValidateTokenFn: z.core.$ZodFunction<z.core.$ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>, z.ZodPromise<z.ZodObject<{
exp: z.ZodNumber;
}, z.core.$strip>>>;
//#endregion
export { AddDomainFn, AddDomainSchema, ClientIdSchema, ClientSchema, ConditionSchema, CreateClientFn, CreateClientSchema, CreateProviderFn, CreateProviderSchema, CreateTenantFn, CreateTenantProviderFn, CreateTenantProviderPolicyFn, CreateTenantProviderPolicySchema, CreateTenantProviderSchema, CreateTenantSchema, CreateTokenFn, CreateTokenSchema, DeleteClientFn, DeleteDomainFn, DeleteProviderFn, DeleteTenantFn, DeleteTenantProviderFn, DeleteTenantProviderPolicyFn, DomainIdSchema, DomainSchema, DomainValidationResponseSchema, EmptyResponseSchema, GetClientFn, GetClientsFn, GetDomainFn, GetDomainsFn, GetProviderFn, GetProvidersFn, GetTenantFn, GetTenantProviderFn, GetTenantProviderPoliciesFn, GetTenantProviderPolicyFn, GetTenantProvidersFn, GetTenantsFn, ProviderIdSchema, ProviderSchema, TenantIdSchema, TenantProviderIdSchema, TenantProviderPolicyIdSchema, TenantProviderPolicySchema, TenantProviderSchema, TenantSchema, TokenSchema, ValidateTokenFn, ValidateTokenResponseSchema, VerifyDomainFn };
//# sourceMappingURL=schema-DJfehsTo.d.cts.map