@miradorlabs/web-grpc 3.40.0 → 3.41.0

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.
Files changed (33) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +1 -1
  3. package/google/protobuf/duration.ts +1 -1
  4. package/google/protobuf/timestamp.ts +1 -1
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +1 -1
  7. package/proto/gateway/common/v1/status.ts +1 -1
  8. package/proto/gateway/common/v1/types.ts +1 -1
  9. package/proto/gateway/web/v1/account_gateway.ts +1 -1
  10. package/proto/gateway/web/v1/admin_gateway.ts +1 -1
  11. package/proto/gateway/web/v1/ai_gateway.ts +1 -1
  12. package/proto/gateway/web/v1/attribute_value.ts +1 -1
  13. package/proto/gateway/web/v1/beta_gateway.ts +1 -1
  14. package/proto/gateway/web/v1/chain_gateway.ts +1 -1
  15. package/proto/gateway/web/v1/claude_enterprise_gateway.ts +1346 -0
  16. package/proto/gateway/web/v1/claude_enterprise_gateway_grpc_pb.js +157 -0
  17. package/proto/gateway/web/v1/claude_enterprise_gateway_pb.js +2246 -0
  18. package/proto/gateway/web/v1/common.ts +1 -1
  19. package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
  20. package/proto/gateway/web/v1/github_connector.ts +1 -1
  21. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  22. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  23. package/proto/gateway/web/v1/market_gateway.ts +1 -1
  24. package/proto/gateway/web/v1/metric_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  27. package/proto/gateway/web/v1/policy_gateway.ts +2 -2
  28. package/proto/gateway/web/v1/policy_gateway_grpc_pb.js +1 -1
  29. package/proto/gateway/web/v1/reference_gateway.ts +1 -1
  30. package/proto/gateway/web/v1/rule_gateway.ts +1 -1
  31. package/proto/gateway/web/v1/slo_gateway.ts +1 -1
  32. package/proto/gateway/web/v1/trace_gateway.ts +1 -1
  33. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
@@ -0,0 +1,157 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var proto_gateway_web_v1_claude_enterprise_gateway_pb = require('../../../../proto/gateway/web/v1/claude_enterprise_gateway_pb.js');
6
+ var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
7
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
8
+ var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
9
+
10
+ function serialize_gateway_web_v1_CreateClaudeEnterpriseKeyRequest(arg) {
11
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.CreateClaudeEnterpriseKeyRequest)) {
12
+ throw new Error('Expected argument of type gateway.web.v1.CreateClaudeEnterpriseKeyRequest');
13
+ }
14
+ return Buffer.from(arg.serializeBinary());
15
+ }
16
+
17
+ function deserialize_gateway_web_v1_CreateClaudeEnterpriseKeyRequest(buffer_arg) {
18
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.CreateClaudeEnterpriseKeyRequest.deserializeBinary(new Uint8Array(buffer_arg));
19
+ }
20
+
21
+ function serialize_gateway_web_v1_CreateClaudeEnterpriseKeyResponse(arg) {
22
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.CreateClaudeEnterpriseKeyResponse)) {
23
+ throw new Error('Expected argument of type gateway.web.v1.CreateClaudeEnterpriseKeyResponse');
24
+ }
25
+ return Buffer.from(arg.serializeBinary());
26
+ }
27
+
28
+ function deserialize_gateway_web_v1_CreateClaudeEnterpriseKeyResponse(buffer_arg) {
29
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.CreateClaudeEnterpriseKeyResponse.deserializeBinary(new Uint8Array(buffer_arg));
30
+ }
31
+
32
+ function serialize_gateway_web_v1_DeleteClaudeEnterpriseConnectionRequest(arg) {
33
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseConnectionRequest)) {
34
+ throw new Error('Expected argument of type gateway.web.v1.DeleteClaudeEnterpriseConnectionRequest');
35
+ }
36
+ return Buffer.from(arg.serializeBinary());
37
+ }
38
+
39
+ function deserialize_gateway_web_v1_DeleteClaudeEnterpriseConnectionRequest(buffer_arg) {
40
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseConnectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
41
+ }
42
+
43
+ function serialize_gateway_web_v1_DeleteClaudeEnterpriseConnectionResponse(arg) {
44
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseConnectionResponse)) {
45
+ throw new Error('Expected argument of type gateway.web.v1.DeleteClaudeEnterpriseConnectionResponse');
46
+ }
47
+ return Buffer.from(arg.serializeBinary());
48
+ }
49
+
50
+ function deserialize_gateway_web_v1_DeleteClaudeEnterpriseConnectionResponse(buffer_arg) {
51
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseConnectionResponse.deserializeBinary(new Uint8Array(buffer_arg));
52
+ }
53
+
54
+ function serialize_gateway_web_v1_DeleteClaudeEnterpriseKeyRequest(arg) {
55
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseKeyRequest)) {
56
+ throw new Error('Expected argument of type gateway.web.v1.DeleteClaudeEnterpriseKeyRequest');
57
+ }
58
+ return Buffer.from(arg.serializeBinary());
59
+ }
60
+
61
+ function deserialize_gateway_web_v1_DeleteClaudeEnterpriseKeyRequest(buffer_arg) {
62
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseKeyRequest.deserializeBinary(new Uint8Array(buffer_arg));
63
+ }
64
+
65
+ function serialize_gateway_web_v1_DeleteClaudeEnterpriseKeyResponse(arg) {
66
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseKeyResponse)) {
67
+ throw new Error('Expected argument of type gateway.web.v1.DeleteClaudeEnterpriseKeyResponse');
68
+ }
69
+ return Buffer.from(arg.serializeBinary());
70
+ }
71
+
72
+ function deserialize_gateway_web_v1_DeleteClaudeEnterpriseKeyResponse(buffer_arg) {
73
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseKeyResponse.deserializeBinary(new Uint8Array(buffer_arg));
74
+ }
75
+
76
+ function serialize_gateway_web_v1_GetClaudeEnterpriseConnectorRequest(arg) {
77
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.GetClaudeEnterpriseConnectorRequest)) {
78
+ throw new Error('Expected argument of type gateway.web.v1.GetClaudeEnterpriseConnectorRequest');
79
+ }
80
+ return Buffer.from(arg.serializeBinary());
81
+ }
82
+
83
+ function deserialize_gateway_web_v1_GetClaudeEnterpriseConnectorRequest(buffer_arg) {
84
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.GetClaudeEnterpriseConnectorRequest.deserializeBinary(new Uint8Array(buffer_arg));
85
+ }
86
+
87
+ function serialize_gateway_web_v1_GetClaudeEnterpriseConnectorResponse(arg) {
88
+ if (!(arg instanceof proto_gateway_web_v1_claude_enterprise_gateway_pb.GetClaudeEnterpriseConnectorResponse)) {
89
+ throw new Error('Expected argument of type gateway.web.v1.GetClaudeEnterpriseConnectorResponse');
90
+ }
91
+ return Buffer.from(arg.serializeBinary());
92
+ }
93
+
94
+ function deserialize_gateway_web_v1_GetClaudeEnterpriseConnectorResponse(buffer_arg) {
95
+ return proto_gateway_web_v1_claude_enterprise_gateway_pb.GetClaudeEnterpriseConnectorResponse.deserializeBinary(new Uint8Array(buffer_arg));
96
+ }
97
+
98
+
99
+ // An organization's Claude Enterprise account: an org admin connects read-only Anthropic keys, each checked against
100
+ // Anthropic before it is stored. An organization-level surface, never a team's. Terma only. An organization with no
101
+ // key reads as never connected, from the moment its last key is deleted.
102
+ var ClaudeEnterpriseGatewayServiceService = exports.ClaudeEnterpriseGatewayServiceService = {
103
+ // The connection and its keys. can_manage tells the client whether to offer adding and deleting keys.
104
+ getClaudeEnterpriseConnector: {
105
+ path: '/gateway.web.v1.ClaudeEnterpriseGatewayService/GetClaudeEnterpriseConnector',
106
+ requestStream: false,
107
+ responseStream: false,
108
+ requestType: proto_gateway_web_v1_claude_enterprise_gateway_pb.GetClaudeEnterpriseConnectorRequest,
109
+ responseType: proto_gateway_web_v1_claude_enterprise_gateway_pb.GetClaudeEnterpriseConnectorResponse,
110
+ requestSerialize: serialize_gateway_web_v1_GetClaudeEnterpriseConnectorRequest,
111
+ requestDeserialize: deserialize_gateway_web_v1_GetClaudeEnterpriseConnectorRequest,
112
+ responseSerialize: serialize_gateway_web_v1_GetClaudeEnterpriseConnectorResponse,
113
+ responseDeserialize: deserialize_gateway_web_v1_GetClaudeEnterpriseConnectorResponse,
114
+ },
115
+ // Org admin. Anthropic must accept the key for its usage reports, or it is not stored and the status is
116
+ // STATUS_CODE_VALIDATION_ERROR naming the reason, Anthropic's own words included. The first key creates the
117
+ // connection, every key sets its billing model, and a stored key whose capabilities the new key all reads is
118
+ // replaced.
119
+ createClaudeEnterpriseKey: {
120
+ path: '/gateway.web.v1.ClaudeEnterpriseGatewayService/CreateClaudeEnterpriseKey',
121
+ requestStream: false,
122
+ responseStream: false,
123
+ requestType: proto_gateway_web_v1_claude_enterprise_gateway_pb.CreateClaudeEnterpriseKeyRequest,
124
+ responseType: proto_gateway_web_v1_claude_enterprise_gateway_pb.CreateClaudeEnterpriseKeyResponse,
125
+ requestSerialize: serialize_gateway_web_v1_CreateClaudeEnterpriseKeyRequest,
126
+ requestDeserialize: deserialize_gateway_web_v1_CreateClaudeEnterpriseKeyRequest,
127
+ responseSerialize: serialize_gateway_web_v1_CreateClaudeEnterpriseKeyResponse,
128
+ responseDeserialize: deserialize_gateway_web_v1_CreateClaudeEnterpriseKeyResponse,
129
+ },
130
+ // Org admin. Deleting the connection's last key disconnects it. STATUS_CODE_NOT_FOUND for a key the
131
+ // organization's connection does not hold.
132
+ deleteClaudeEnterpriseKey: {
133
+ path: '/gateway.web.v1.ClaudeEnterpriseGatewayService/DeleteClaudeEnterpriseKey',
134
+ requestStream: false,
135
+ responseStream: false,
136
+ requestType: proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseKeyRequest,
137
+ responseType: proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseKeyResponse,
138
+ requestSerialize: serialize_gateway_web_v1_DeleteClaudeEnterpriseKeyRequest,
139
+ requestDeserialize: deserialize_gateway_web_v1_DeleteClaudeEnterpriseKeyRequest,
140
+ responseSerialize: serialize_gateway_web_v1_DeleteClaudeEnterpriseKeyResponse,
141
+ responseDeserialize: deserialize_gateway_web_v1_DeleteClaudeEnterpriseKeyResponse,
142
+ },
143
+ // Org admin. Deletes every key.
144
+ deleteClaudeEnterpriseConnection: {
145
+ path: '/gateway.web.v1.ClaudeEnterpriseGatewayService/DeleteClaudeEnterpriseConnection',
146
+ requestStream: false,
147
+ responseStream: false,
148
+ requestType: proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseConnectionRequest,
149
+ responseType: proto_gateway_web_v1_claude_enterprise_gateway_pb.DeleteClaudeEnterpriseConnectionResponse,
150
+ requestSerialize: serialize_gateway_web_v1_DeleteClaudeEnterpriseConnectionRequest,
151
+ requestDeserialize: deserialize_gateway_web_v1_DeleteClaudeEnterpriseConnectionRequest,
152
+ responseSerialize: serialize_gateway_web_v1_DeleteClaudeEnterpriseConnectionResponse,
153
+ responseDeserialize: deserialize_gateway_web_v1_DeleteClaudeEnterpriseConnectionResponse,
154
+ },
155
+ };
156
+
157
+ exports.ClaudeEnterpriseGatewayServiceClient = grpc.makeGenericClientConstructor(ClaudeEnterpriseGatewayServiceService, 'ClaudeEnterpriseGatewayService');