ts-spiffe
Version:
typescript client for spiffe
462 lines (461 loc) • 20.9 kB
TypeScript
// @generated by protobuf-ts 2.9.1 with parameter output_legacy_commonjs,client_grpc1,server_none,output_javascript_es2019
// @generated from protobuf file "spire/api/server/entry.proto" (package "spire.api.server.entry.v1", syntax proto3)
// tslint:disable
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { Status } from "../types/status";
import { Entry as Entry$ } from "../types/entry";
import { StringValue } from "../../../google/protobuf/wrappers";
import { FederatesWithMatch } from "../types/federateswith";
import { SelectorMatch } from "../types/selector";
import { SPIFFEID } from "../types/spiffeid";
import { EntryMask } from "../types/entry";
/**
* @generated from protobuf message spire.api.server.entry.v1.CountEntriesRequest
*/
export interface CountEntriesRequest {
}
/**
* @generated from protobuf message spire.api.server.entry.v1.CountEntriesResponse
*/
export interface CountEntriesResponse {
/**
* @generated from protobuf field: int32 count = 1;
*/
count: number;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.ListEntriesRequest
*/
export interface ListEntriesRequest {
/**
* Filters the entries returned in the response.
*
* @generated from protobuf field: spire.api.server.entry.v1.ListEntriesRequest.Filter filter = 1;
*/
filter?: ListEntriesRequest_Filter;
/**
* An output mask indicating the entry fields set in the response.
*
* @generated from protobuf field: spire.api.types.EntryMask output_mask = 2;
*/
outputMask?: EntryMask;
/**
* The maximum number of results to return. The server may further
* constrain this value, or if zero, choose its own.
*
* @generated from protobuf field: int32 page_size = 3;
*/
pageSize: number;
/**
* The next_page_token value returned from a previous request, if any.
*
* @generated from protobuf field: string page_token = 4;
*/
pageToken: string;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.ListEntriesRequest.Filter
*/
export interface ListEntriesRequest_Filter {
/**
* @generated from protobuf field: spire.api.types.SPIFFEID by_spiffe_id = 1;
*/
bySpiffeId?: SPIFFEID;
/**
* @generated from protobuf field: spire.api.types.SPIFFEID by_parent_id = 2;
*/
byParentId?: SPIFFEID;
/**
* @generated from protobuf field: spire.api.types.SelectorMatch by_selectors = 3;
*/
bySelectors?: SelectorMatch;
/**
* @generated from protobuf field: spire.api.types.FederatesWithMatch by_federates_with = 4;
*/
byFederatesWith?: FederatesWithMatch;
/**
* @generated from protobuf field: google.protobuf.StringValue by_hint = 5;
*/
byHint?: StringValue;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.ListEntriesResponse
*/
export interface ListEntriesResponse {
/**
* The list of entries.
*
* @generated from protobuf field: repeated spire.api.types.Entry entries = 1;
*/
entries: Entry$[];
/**
* The page token for the next request. Empty if there are no more results.
* This field should be checked by clients even when a page_size was not
* requested, since the server may choose its own (see page_size).
*
* @generated from protobuf field: string next_page_token = 2;
*/
nextPageToken: string;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.GetEntryRequest
*/
export interface GetEntryRequest {
/**
* Required. ID of the entry to get.
*
* @generated from protobuf field: string id = 1;
*/
id: string;
/**
* An output mask indicating the entry fields set in the response.
*
* @generated from protobuf field: spire.api.types.EntryMask output_mask = 2;
*/
outputMask?: EntryMask;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchCreateEntryRequest
*/
export interface BatchCreateEntryRequest {
/**
* The entries to be created. The entry ID field is output only, and will
* be ignored here.
*
* @generated from protobuf field: repeated spire.api.types.Entry entries = 1;
*/
entries: Entry$[];
/**
* An output mask indicating the entry fields set in the response.
*
* @generated from protobuf field: spire.api.types.EntryMask output_mask = 2;
*/
outputMask?: EntryMask;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchCreateEntryResponse
*/
export interface BatchCreateEntryResponse {
/**
* Result for each entry in the request (order is maintained).
*
* @generated from protobuf field: repeated spire.api.server.entry.v1.BatchCreateEntryResponse.Result results = 1;
*/
results: BatchCreateEntryResponse_Result[];
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchCreateEntryResponse.Result
*/
export interface BatchCreateEntryResponse_Result {
/**
* The status of creating the entry. If status code will be
* ALREADY_EXISTS if a similar entry already exists. An entry is
* similar if it has the same spiffe_id, parent_id, and selectors.
*
* @generated from protobuf field: spire.api.types.Status status = 1;
*/
status?: Status;
/**
* The entry that was created (.e.g status code is OK) or that already
* exists (i.e. status code is ALREADY_EXISTS).
*
* If the status code is any other value, this field will not be set.
*
* @generated from protobuf field: spire.api.types.Entry entry = 2;
*/
entry?: Entry$;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchUpdateEntryRequest
*/
export interface BatchUpdateEntryRequest {
/**
* The entries to be updated.
*
* @generated from protobuf field: repeated spire.api.types.Entry entries = 1;
*/
entries: Entry$[];
/**
* An input mask indicating what entry fields should be updated.
*
* @generated from protobuf field: spire.api.types.EntryMask input_mask = 2;
*/
inputMask?: EntryMask;
/**
* An output mask indicating what entry fields are set in the response.
*
* @generated from protobuf field: spire.api.types.EntryMask output_mask = 3;
*/
outputMask?: EntryMask;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchUpdateEntryResponse
*/
export interface BatchUpdateEntryResponse {
/**
* Result for each entry in the request (order is maintained).
*
* @generated from protobuf field: repeated spire.api.server.entry.v1.BatchUpdateEntryResponse.Result results = 1;
*/
results: BatchUpdateEntryResponse_Result[];
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchUpdateEntryResponse.Result
*/
export interface BatchUpdateEntryResponse_Result {
/**
* The status of creating the entry.
*
* @generated from protobuf field: spire.api.types.Status status = 1;
*/
status?: Status;
/**
* The entry that was updated. If the status is OK, it will be the
* entry that was updated. If the status is any other value, this field
* will not be set.
*
* @generated from protobuf field: spire.api.types.Entry entry = 2;
*/
entry?: Entry$;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchDeleteEntryRequest
*/
export interface BatchDeleteEntryRequest {
/**
* IDs of the entries to delete.
*
* @generated from protobuf field: repeated string ids = 1;
*/
ids: string[];
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchDeleteEntryResponse
*/
export interface BatchDeleteEntryResponse {
/**
* Result for each entry ID in the request (order is maintained).
*
* @generated from protobuf field: repeated spire.api.server.entry.v1.BatchDeleteEntryResponse.Result results = 1;
*/
results: BatchDeleteEntryResponse_Result[];
}
/**
* @generated from protobuf message spire.api.server.entry.v1.BatchDeleteEntryResponse.Result
*/
export interface BatchDeleteEntryResponse_Result {
/**
* The status of creating the entry.
*
* @generated from protobuf field: spire.api.types.Status status = 1;
*/
status?: Status;
/**
* The ID of the entry that was deleted.
*
* @generated from protobuf field: string id = 2;
*/
id: string;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.GetAuthorizedEntriesRequest
*/
export interface GetAuthorizedEntriesRequest {
/**
* An output mask indicating which fields are set in the response.
*
* @generated from protobuf field: spire.api.types.EntryMask output_mask = 1;
*/
outputMask?: EntryMask;
}
/**
* @generated from protobuf message spire.api.server.entry.v1.GetAuthorizedEntriesResponse
*/
export interface GetAuthorizedEntriesResponse {
/**
* The authorized entries.
*
* @generated from protobuf field: repeated spire.api.types.Entry entries = 1;
*/
entries: Entry$[];
}
declare class CountEntriesRequest$Type extends MessageType<CountEntriesRequest> {
constructor();
create(value?: PartialMessage<CountEntriesRequest>): CountEntriesRequest;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CountEntriesRequest): CountEntriesRequest;
internalBinaryWrite(message: CountEntriesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.CountEntriesRequest
*/
export declare const CountEntriesRequest: CountEntriesRequest$Type;
declare class CountEntriesResponse$Type extends MessageType<CountEntriesResponse> {
constructor();
create(value?: PartialMessage<CountEntriesResponse>): CountEntriesResponse;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CountEntriesResponse): CountEntriesResponse;
internalBinaryWrite(message: CountEntriesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.CountEntriesResponse
*/
export declare const CountEntriesResponse: CountEntriesResponse$Type;
declare class ListEntriesRequest$Type extends MessageType<ListEntriesRequest> {
constructor();
create(value?: PartialMessage<ListEntriesRequest>): ListEntriesRequest;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEntriesRequest): ListEntriesRequest;
internalBinaryWrite(message: ListEntriesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.ListEntriesRequest
*/
export declare const ListEntriesRequest: ListEntriesRequest$Type;
declare class ListEntriesRequest_Filter$Type extends MessageType<ListEntriesRequest_Filter> {
constructor();
create(value?: PartialMessage<ListEntriesRequest_Filter>): ListEntriesRequest_Filter;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEntriesRequest_Filter): ListEntriesRequest_Filter;
internalBinaryWrite(message: ListEntriesRequest_Filter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.ListEntriesRequest.Filter
*/
export declare const ListEntriesRequest_Filter: ListEntriesRequest_Filter$Type;
declare class ListEntriesResponse$Type extends MessageType<ListEntriesResponse> {
constructor();
create(value?: PartialMessage<ListEntriesResponse>): ListEntriesResponse;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEntriesResponse): ListEntriesResponse;
internalBinaryWrite(message: ListEntriesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.ListEntriesResponse
*/
export declare const ListEntriesResponse: ListEntriesResponse$Type;
declare class GetEntryRequest$Type extends MessageType<GetEntryRequest> {
constructor();
create(value?: PartialMessage<GetEntryRequest>): GetEntryRequest;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetEntryRequest): GetEntryRequest;
internalBinaryWrite(message: GetEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.GetEntryRequest
*/
export declare const GetEntryRequest: GetEntryRequest$Type;
declare class BatchCreateEntryRequest$Type extends MessageType<BatchCreateEntryRequest> {
constructor();
create(value?: PartialMessage<BatchCreateEntryRequest>): BatchCreateEntryRequest;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchCreateEntryRequest): BatchCreateEntryRequest;
internalBinaryWrite(message: BatchCreateEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchCreateEntryRequest
*/
export declare const BatchCreateEntryRequest: BatchCreateEntryRequest$Type;
declare class BatchCreateEntryResponse$Type extends MessageType<BatchCreateEntryResponse> {
constructor();
create(value?: PartialMessage<BatchCreateEntryResponse>): BatchCreateEntryResponse;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchCreateEntryResponse): BatchCreateEntryResponse;
internalBinaryWrite(message: BatchCreateEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchCreateEntryResponse
*/
export declare const BatchCreateEntryResponse: BatchCreateEntryResponse$Type;
declare class BatchCreateEntryResponse_Result$Type extends MessageType<BatchCreateEntryResponse_Result> {
constructor();
create(value?: PartialMessage<BatchCreateEntryResponse_Result>): BatchCreateEntryResponse_Result;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchCreateEntryResponse_Result): BatchCreateEntryResponse_Result;
internalBinaryWrite(message: BatchCreateEntryResponse_Result, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchCreateEntryResponse.Result
*/
export declare const BatchCreateEntryResponse_Result: BatchCreateEntryResponse_Result$Type;
declare class BatchUpdateEntryRequest$Type extends MessageType<BatchUpdateEntryRequest> {
constructor();
create(value?: PartialMessage<BatchUpdateEntryRequest>): BatchUpdateEntryRequest;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchUpdateEntryRequest): BatchUpdateEntryRequest;
internalBinaryWrite(message: BatchUpdateEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchUpdateEntryRequest
*/
export declare const BatchUpdateEntryRequest: BatchUpdateEntryRequest$Type;
declare class BatchUpdateEntryResponse$Type extends MessageType<BatchUpdateEntryResponse> {
constructor();
create(value?: PartialMessage<BatchUpdateEntryResponse>): BatchUpdateEntryResponse;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchUpdateEntryResponse): BatchUpdateEntryResponse;
internalBinaryWrite(message: BatchUpdateEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchUpdateEntryResponse
*/
export declare const BatchUpdateEntryResponse: BatchUpdateEntryResponse$Type;
declare class BatchUpdateEntryResponse_Result$Type extends MessageType<BatchUpdateEntryResponse_Result> {
constructor();
create(value?: PartialMessage<BatchUpdateEntryResponse_Result>): BatchUpdateEntryResponse_Result;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchUpdateEntryResponse_Result): BatchUpdateEntryResponse_Result;
internalBinaryWrite(message: BatchUpdateEntryResponse_Result, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchUpdateEntryResponse.Result
*/
export declare const BatchUpdateEntryResponse_Result: BatchUpdateEntryResponse_Result$Type;
declare class BatchDeleteEntryRequest$Type extends MessageType<BatchDeleteEntryRequest> {
constructor();
create(value?: PartialMessage<BatchDeleteEntryRequest>): BatchDeleteEntryRequest;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchDeleteEntryRequest): BatchDeleteEntryRequest;
internalBinaryWrite(message: BatchDeleteEntryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchDeleteEntryRequest
*/
export declare const BatchDeleteEntryRequest: BatchDeleteEntryRequest$Type;
declare class BatchDeleteEntryResponse$Type extends MessageType<BatchDeleteEntryResponse> {
constructor();
create(value?: PartialMessage<BatchDeleteEntryResponse>): BatchDeleteEntryResponse;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchDeleteEntryResponse): BatchDeleteEntryResponse;
internalBinaryWrite(message: BatchDeleteEntryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchDeleteEntryResponse
*/
export declare const BatchDeleteEntryResponse: BatchDeleteEntryResponse$Type;
declare class BatchDeleteEntryResponse_Result$Type extends MessageType<BatchDeleteEntryResponse_Result> {
constructor();
create(value?: PartialMessage<BatchDeleteEntryResponse_Result>): BatchDeleteEntryResponse_Result;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BatchDeleteEntryResponse_Result): BatchDeleteEntryResponse_Result;
internalBinaryWrite(message: BatchDeleteEntryResponse_Result, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.BatchDeleteEntryResponse.Result
*/
export declare const BatchDeleteEntryResponse_Result: BatchDeleteEntryResponse_Result$Type;
declare class GetAuthorizedEntriesRequest$Type extends MessageType<GetAuthorizedEntriesRequest> {
constructor();
create(value?: PartialMessage<GetAuthorizedEntriesRequest>): GetAuthorizedEntriesRequest;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAuthorizedEntriesRequest): GetAuthorizedEntriesRequest;
internalBinaryWrite(message: GetAuthorizedEntriesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.GetAuthorizedEntriesRequest
*/
export declare const GetAuthorizedEntriesRequest: GetAuthorizedEntriesRequest$Type;
declare class GetAuthorizedEntriesResponse$Type extends MessageType<GetAuthorizedEntriesResponse> {
constructor();
create(value?: PartialMessage<GetAuthorizedEntriesResponse>): GetAuthorizedEntriesResponse;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAuthorizedEntriesResponse): GetAuthorizedEntriesResponse;
internalBinaryWrite(message: GetAuthorizedEntriesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message spire.api.server.entry.v1.GetAuthorizedEntriesResponse
*/
export declare const GetAuthorizedEntriesResponse: GetAuthorizedEntriesResponse$Type;
/**
* @generated ServiceType for protobuf service spire.api.server.entry.v1.Entry
*/
export declare const Entry: any;
export {};