@7k-inari/api-client 0.6.0 → 0.7.0-0933ff8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,87 @@
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
2
+ // @generated from file inari/agent/v1/credentials.proto (package inari.agent.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { Message } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * Describes the file inari/agent/v1/credentials.proto.
13
+ */
14
+ export const file_inari_agent_v1_credentials: GenFile = /*@__PURE__*/
15
+ fileDesc("CiBpbmFyaS9hZ2VudC92MS9jcmVkZW50aWFscy5wcm90bxIOaW5hcmkuYWdlbnQudjEiNQobUmVkZWVtVXNlckNyZWRlbnRpYWxSZXF1ZXN0EhYKDmNyZWRlbnRpYWxfcmVmGAEgASgJImQKHFJlZGVlbVVzZXJDcmVkZW50aWFsUmVzcG9uc2USFAoMYmVhcmVyX3Rva2VuGAEgASgJEi4KCmV4cGlyZXNfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wMowBChdBZ2VudENyZWRlbnRpYWxzU2VydmljZRJxChRSZWRlZW1Vc2VyQ3JlZGVudGlhbBIrLmluYXJpLmFnZW50LnYxLlJlZGVlbVVzZXJDcmVkZW50aWFsUmVxdWVzdBosLmluYXJpLmFnZW50LnYxLlJlZGVlbVVzZXJDcmVkZW50aWFsUmVzcG9uc2VCPVo7Z2l0aHViLmNvbS83Sy1JbmFyaS9pbmFyaS1hcGkvZ2VuL2dvL2luYXJpL2FnZW50L3YxO2FnZW50djFiBnByb3RvMw", [file_google_protobuf_timestamp]);
16
+
17
+ /**
18
+ * RedeemUserCredentialRequest asks the control plane to exchange an opaque credential
19
+ * reference (carried on a command, e.g. InvokeAction.user_credential_ref)
20
+ * for a short-lived bearer token.
21
+ *
22
+ * @generated from message inari.agent.v1.RedeemUserCredentialRequest
23
+ */
24
+ export type RedeemUserCredentialRequest = Message<"inari.agent.v1.RedeemUserCredentialRequest"> & {
25
+ /**
26
+ * Opaque reference issued by the control plane. Command payloads are
27
+ * persisted (agent_commands.payload), so only this reference is stored,
28
+ * never a token.
29
+ *
30
+ * @generated from field: string credential_ref = 1;
31
+ */
32
+ credentialRef: string;
33
+ };
34
+
35
+ /**
36
+ * Describes the message inari.agent.v1.RedeemUserCredentialRequest.
37
+ * Use `create(RedeemUserCredentialRequestSchema)` to create a new message.
38
+ */
39
+ export const RedeemUserCredentialRequestSchema: GenMessage<RedeemUserCredentialRequest> = /*@__PURE__*/
40
+ messageDesc(file_inari_agent_v1_credentials, 0);
41
+
42
+ /**
43
+ * RedeemUserCredentialResponse returns the redeemed credential. Redemption is single-use,
44
+ * bound to the calling cluster, and expires with the originating command's
45
+ * timeout.
46
+ *
47
+ * @generated from message inari.agent.v1.RedeemUserCredentialResponse
48
+ */
49
+ export type RedeemUserCredentialResponse = Message<"inari.agent.v1.RedeemUserCredentialResponse"> & {
50
+ /**
51
+ * @generated from field: string bearer_token = 1;
52
+ */
53
+ bearerToken: string;
54
+
55
+ /**
56
+ * @generated from field: google.protobuf.Timestamp expires_at = 2;
57
+ */
58
+ expiresAt?: Timestamp | undefined;
59
+ };
60
+
61
+ /**
62
+ * Describes the message inari.agent.v1.RedeemUserCredentialResponse.
63
+ * Use `create(RedeemUserCredentialResponseSchema)` to create a new message.
64
+ */
65
+ export const RedeemUserCredentialResponseSchema: GenMessage<RedeemUserCredentialResponse> = /*@__PURE__*/
66
+ messageDesc(file_inari_agent_v1_credentials, 1);
67
+
68
+ /**
69
+ * AgentCredentialsService lets an in-cluster agent redeem per-user credential
70
+ * references for short-lived bearer tokens (per-user Git social login).
71
+ * Calls are authenticated with the same per-cluster OIDC identity as the
72
+ * EventStream (plan §5.3); the control plane never pushes credentials.
73
+ *
74
+ * @generated from service inari.agent.v1.AgentCredentialsService
75
+ */
76
+ export const AgentCredentialsService: GenService<{
77
+ /**
78
+ * @generated from rpc inari.agent.v1.AgentCredentialsService.RedeemUserCredential
79
+ */
80
+ redeemUserCredential: {
81
+ methodKind: "unary";
82
+ input: typeof RedeemUserCredentialRequestSchema;
83
+ output: typeof RedeemUserCredentialResponseSchema;
84
+ },
85
+ }> = /*@__PURE__*/
86
+ serviceDesc(file_inari_agent_v1_credentials, 0);
87
+