1+ // @generated
2+ // This file is @generated by prost-build.
3+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
4+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
5+ pub struct ApiKey {
6+ #[ prost( string, tag="1" ) ]
7+ pub api_key_id : :: prost:: alloc:: string:: String ,
8+ #[ prost( string, tag="2" ) ]
9+ pub name : :: prost:: alloc:: string:: String ,
10+ #[ prost( message, optional, tag="3" ) ]
11+ pub created_date : :: core:: option:: Option < :: pbjson_types:: Timestamp > ,
12+ #[ prost( string, tag="4" ) ]
13+ pub created_by_user_id : :: prost:: alloc:: string:: String ,
14+ #[ prost( string, tag="5" ) ]
15+ pub user_id : :: prost:: alloc:: string:: String ,
16+ }
17+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
18+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
19+ pub struct CreateApiKeyResponse {
20+ #[ prost( message, optional, tag="1" ) ]
21+ pub api_key : :: core:: option:: Option < CreatedApiKey > ,
22+ }
23+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
24+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
25+ pub struct CreatedApiKey {
26+ #[ prost( string, tag="1" ) ]
27+ pub api_key_id : :: prost:: alloc:: string:: String ,
28+ #[ prost( string, tag="2" ) ]
29+ pub name : :: prost:: alloc:: string:: String ,
30+ #[ prost( string, tag="3" ) ]
31+ pub key : :: prost:: alloc:: string:: String ,
32+ #[ prost( message, optional, tag="4" ) ]
33+ pub created_date : :: core:: option:: Option < :: pbjson_types:: Timestamp > ,
34+ #[ prost( string, tag="5" ) ]
35+ pub created_by_user_id : :: prost:: alloc:: string:: String ,
36+ #[ prost( string, tag="6" ) ]
37+ pub user_id : :: prost:: alloc:: string:: String ,
38+ }
39+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
40+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
41+ pub struct ListApiKeysRequest {
42+ #[ prost( uint32, tag="1" ) ]
43+ pub page_size : u32 ,
44+ #[ prost( string, tag="2" ) ]
45+ pub page_token : :: prost:: alloc:: string:: String ,
46+ #[ prost( string, tag="3" ) ]
47+ pub filter : :: prost:: alloc:: string:: String ,
48+ #[ prost( string, tag="4" ) ]
49+ pub order_by : :: prost:: alloc:: string:: String ,
50+ }
51+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
52+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
53+ pub struct ListApiKeysResponse {
54+ #[ prost( message, repeated, tag="1" ) ]
55+ pub api_keys : :: prost:: alloc:: vec:: Vec < ApiKey > ,
56+ #[ prost( string, tag="2" ) ]
57+ pub next_page_token : :: prost:: alloc:: string:: String ,
58+ }
59+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
60+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
61+ pub struct CreateApiKeyRequest {
62+ #[ prost( string, tag="1" ) ]
63+ pub name : :: prost:: alloc:: string:: String ,
64+ #[ prost( string, tag="2" ) ]
65+ pub user_id : :: prost:: alloc:: string:: String ,
66+ }
67+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
68+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
69+ pub struct DeleteApiKeyRequest {
70+ #[ prost( string, tag="1" ) ]
71+ pub api_key_id : :: prost:: alloc:: string:: String ,
72+ }
73+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
74+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
75+ pub struct DeleteApiKeyResponse {
76+ }
77+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
78+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
79+ pub struct ApiKeyOrganizationRequest {
80+ }
81+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
82+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
83+ pub struct ApiKeyOrganizationResponse {
84+ #[ prost( message, optional, tag="1" ) ]
85+ pub organization : :: core:: option:: Option < super :: super :: common:: r#type:: v1:: Organization > ,
86+ }
87+ include ! ( "sift.api_keys.v2.tonic.rs" ) ;
88+ include ! ( "sift.api_keys.v2.serde.rs" ) ;
89+ // @@protoc_insertion_point(module)
0 commit comments