@toshicloud/sdk 0.5.0 → 0.5.1
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.
- package/README.md +82 -40
- package/dist/client.d.ts +33 -2
- package/dist/client.js +28 -3
- package/dist/errors.d.ts +74 -22
- package/dist/errors.js +99 -27
- package/dist/gen/toshi/permission_pb.d.ts +207 -2
- package/dist/gen/toshi/permission_pb.js +54 -2
- package/dist/gen/toshi/workspace/v1/account_pb.d.ts +590 -0
- package/dist/gen/toshi/workspace/v1/account_pb.js +75 -0
- package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +14 -8
- package/dist/gen/toshi/workspace/v1/artifacts_pb.js +9 -7
- package/dist/gen/toshi/workspace/v1/audit_events_pb.d.ts +191 -6
- package/dist/gen/toshi/workspace/v1/audit_events_pb.js +11 -1
- package/dist/gen/toshi/workspace/v1/channels_pb.d.ts +1194 -21
- package/dist/gen/toshi/workspace/v1/channels_pb.js +185 -39
- package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +1481 -0
- package/dist/gen/toshi/workspace/v1/connections_pb.js +208 -0
- package/dist/gen/toshi/workspace/v1/discovery_pb.d.ts +291 -43
- package/dist/gen/toshi/workspace/v1/discovery_pb.js +79 -30
- package/dist/gen/toshi/workspace/v1/display_pb.d.ts +198 -15
- package/dist/gen/toshi/workspace/v1/display_pb.js +52 -2
- package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +864 -0
- package/dist/gen/toshi/workspace/v1/domains_pb.js +152 -0
- package/dist/gen/toshi/workspace/v1/fillers_pb.d.ts +12 -4
- package/dist/gen/toshi/workspace/v1/fillers_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +1297 -0
- package/dist/gen/toshi/workspace/v1/grants_pb.js +271 -0
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +315 -15
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +10 -5
- package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +196 -7
- package/dist/gen/toshi/workspace/v1/hosts_pb.js +12 -7
- package/dist/gen/toshi/workspace/v1/images_pb.d.ts +1463 -0
- package/dist/gen/toshi/workspace/v1/images_pb.js +263 -0
- package/dist/gen/toshi/workspace/v1/products_pb.d.ts +99 -296
- package/dist/gen/toshi/workspace/v1/products_pb.js +7 -53
- package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +1474 -99
- package/dist/gen/toshi/workspace/v1/projects_pb.js +150 -33
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +181 -14
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +54 -14
- package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1994 -0
- package/dist/gen/toshi/workspace/v1/roles_pb.js +355 -0
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +314 -8
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +42 -18
- package/dist/gen/toshi/workspace/v1/storage_providers_pb.d.ts +14 -0
- package/dist/gen/toshi/workspace/v1/storage_providers_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/tokens_pb.d.ts +434 -5
- package/dist/gen/toshi/workspace/v1/tokens_pb.js +65 -8
- package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +1099 -0
- package/dist/gen/toshi/workspace/v1/triggers_pb.js +185 -0
- package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +1052 -33
- package/dist/gen/toshi/workspace/v1/volumes_pb.js +169 -11
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +66 -8
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +4 -4
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +2043 -54
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +204 -54
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +6290 -937
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +801 -88
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +2176 -630
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +191 -74
- package/dist/index.d.ts +8 -1
- package/dist/index.js +8 -1
- package/dist/interceptors.d.ts +6 -2
- package/dist/interceptors.js +13 -8
- package/dist/retry.d.ts +18 -0
- package/dist/retry.js +225 -23
- package/dist/test/procedures.js +100 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wait.d.ts +4 -0
- package/dist/wait.js +24 -1
- package/package.json +3 -2
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,json_types=true,import_extension=js"
|
|
2
|
+
// @generated from file toshi/workspace/v1/connections.proto (package toshi.workspace.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
import { file_toshi_permission } from "../../permission_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file toshi/workspace/v1/connections.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_toshi_workspace_v1_connections = /*@__PURE__*/ fileDesc("CiR0b3NoaS93b3Jrc3BhY2UvdjEvY29ubmVjdGlvbnMucHJvdG8SEnRvc2hpLndvcmtzcGFjZS52MSLJAwoKQ29ubmVjdGlvbhIKCgJpZBgBIAEoCRIwCgRraW5kGAIgASgOMiIudG9zaGkud29ya3NwYWNlLnYxLkNvbm5lY3Rpb25LaW5kEgwKBG5hbWUYAyABKAkSDwoHcHJvamVjdBgEIAEoCRITCgtlbnZpcm9ubWVudBgFIAEoCRIXCg9pbnN0YWxsYXRpb25faWQYBiABKAMSLgoKY3JlYXRlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASPgoacHJldmlvdXNfc2VjcmV0X2V4cGlyZXNfYXQYCCABKAsyG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ZUNvbm5lY3Rpb25SZXNwb25zZSJAwvMYEWNvbm5lY3Rpb25zLndyaXRlyvMYCXdvcmtzcGFjZdLzGBoSGGNvbm5lY3Rpb246Y29ubmVjdGlvbi5pZBKoAQoYTGlzdENvbm5lY3Rpb25EZWxpdmVyaWVzEjMudG9zaGkud29ya3NwYWNlLnYxLkxpc3RDb25uZWN0aW9uRGVsaXZlcmllc1JlcXVlc3QaNC50b3NoaS53b3Jrc3BhY2UudjEuTGlzdENvbm5lY3Rpb25EZWxpdmVyaWVzUmVzcG9uc2UiIcLzGBBjb25uZWN0aW9ucy5yZWFkyvMYCXdvcmtzcGFjZRKfAQoVR2V0Q29ubmVjdGlvbkRlbGl2ZXJ5EjAudG9zaGkud29ya3NwYWNlLnYxLkdldENvbm5lY3Rpb25EZWxpdmVyeVJlcXVlc3QaMS50b3NoaS53b3Jrc3BhY2UudjEuR2V0Q29ubmVjdGlvbkRlbGl2ZXJ5UmVzcG9uc2UiIcLzGBBjb25uZWN0aW9ucy5yZWFkyvMYCXdvcmtzcGFjZRL/AQoYUmVwbGF5Q29ubmVjdGlvbkRlbGl2ZXJ5EjMudG9zaGkud29ya3NwYWNlLnYxLlJlcGxheUNvbm5lY3Rpb25EZWxpdmVyeVJlcXVlc3QaNC50b3NoaS53b3Jrc3BhY2UudjEuUmVwbGF5Q29ubmVjdGlvbkRlbGl2ZXJ5UmVzcG9uc2UieMLzGBFjb25uZWN0aW9ucy53cml0ZcrzGAl3b3Jrc3BhY2XS8xhSCiRjb25uZWN0aW9uLmRlbGl2ZXJ5X3JlcGxheV9yZXF1ZXN0ZWQSKmNvbm5lY3Rpb246cmVzcG9uc2UuZGVsaXZlcnkuY29ubmVjdGlvbl9pZEIiWiBnby50b3NoaWNsb3VkLmlvL2FwaS93b3Jrc3BhY2V2MWIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_toshi_permission]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message toshi.workspace.v1.Connection.
|
|
13
|
+
* Use `create(ConnectionSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const ConnectionSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message toshi.workspace.v1.ConnectionTarget.
|
|
18
|
+
* Use `create(ConnectionTargetSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const ConnectionTargetSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 1);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message toshi.workspace.v1.ListConnectionsRequest.
|
|
23
|
+
* Use `create(ListConnectionsRequestSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const ListConnectionsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 2);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message toshi.workspace.v1.ListConnectionsResponse.
|
|
28
|
+
* Use `create(ListConnectionsResponseSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const ListConnectionsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 3);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message toshi.workspace.v1.GetConnectionRequest.
|
|
33
|
+
* Use `create(GetConnectionRequestSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const GetConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 4);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message toshi.workspace.v1.GetConnectionResponse.
|
|
38
|
+
* Use `create(GetConnectionResponseSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const GetConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 5);
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message toshi.workspace.v1.CreateConnectionRequest.
|
|
43
|
+
* Use `create(CreateConnectionRequestSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export const CreateConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 6);
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message toshi.workspace.v1.CreateConnectionResponse.
|
|
48
|
+
* Use `create(CreateConnectionResponseSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export const CreateConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 7);
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message toshi.workspace.v1.DeleteConnectionRequest.
|
|
53
|
+
* Use `create(DeleteConnectionRequestSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export const DeleteConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 8);
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message toshi.workspace.v1.DeleteConnectionResponse.
|
|
58
|
+
* Use `create(DeleteConnectionResponseSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const DeleteConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 9);
|
|
61
|
+
/**
|
|
62
|
+
* Describes the message toshi.workspace.v1.RotateConnectionSecretRequest.
|
|
63
|
+
* Use `create(RotateConnectionSecretRequestSchema)` to create a new message.
|
|
64
|
+
*/
|
|
65
|
+
export const RotateConnectionSecretRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 10);
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message toshi.workspace.v1.RotateConnectionSecretResponse.
|
|
68
|
+
* Use `create(RotateConnectionSecretResponseSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export const RotateConnectionSecretResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 11);
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message toshi.workspace.v1.UpdateConnectionRequest.
|
|
73
|
+
* Use `create(UpdateConnectionRequestSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
export const UpdateConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 12);
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message toshi.workspace.v1.UpdateConnectionResponse.
|
|
78
|
+
* Use `create(UpdateConnectionResponseSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export const UpdateConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 13);
|
|
81
|
+
/**
|
|
82
|
+
* Describes the message toshi.workspace.v1.ConnectionDelivery.
|
|
83
|
+
* Use `create(ConnectionDeliverySchema)` to create a new message.
|
|
84
|
+
*/
|
|
85
|
+
export const ConnectionDeliverySchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 14);
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message toshi.workspace.v1.ConnectionDeliveryRun.
|
|
88
|
+
* Use `create(ConnectionDeliveryRunSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
export const ConnectionDeliveryRunSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 15);
|
|
91
|
+
/**
|
|
92
|
+
* Describes the message toshi.workspace.v1.ListConnectionDeliveriesRequest.
|
|
93
|
+
* Use `create(ListConnectionDeliveriesRequestSchema)` to create a new message.
|
|
94
|
+
*/
|
|
95
|
+
export const ListConnectionDeliveriesRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 16);
|
|
96
|
+
/**
|
|
97
|
+
* Describes the message toshi.workspace.v1.ListConnectionDeliveriesResponse.
|
|
98
|
+
* Use `create(ListConnectionDeliveriesResponseSchema)` to create a new message.
|
|
99
|
+
*/
|
|
100
|
+
export const ListConnectionDeliveriesResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 17);
|
|
101
|
+
/**
|
|
102
|
+
* Describes the message toshi.workspace.v1.GetConnectionDeliveryRequest.
|
|
103
|
+
* Use `create(GetConnectionDeliveryRequestSchema)` to create a new message.
|
|
104
|
+
*/
|
|
105
|
+
export const GetConnectionDeliveryRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 18);
|
|
106
|
+
/**
|
|
107
|
+
* Describes the message toshi.workspace.v1.GetConnectionDeliveryResponse.
|
|
108
|
+
* Use `create(GetConnectionDeliveryResponseSchema)` to create a new message.
|
|
109
|
+
*/
|
|
110
|
+
export const GetConnectionDeliveryResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 19);
|
|
111
|
+
/**
|
|
112
|
+
* Describes the message toshi.workspace.v1.ReplayConnectionDeliveryRequest.
|
|
113
|
+
* Use `create(ReplayConnectionDeliveryRequestSchema)` to create a new message.
|
|
114
|
+
*/
|
|
115
|
+
export const ReplayConnectionDeliveryRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 20);
|
|
116
|
+
/**
|
|
117
|
+
* Describes the message toshi.workspace.v1.ReplayConnectionDeliveryResponse.
|
|
118
|
+
* Use `create(ReplayConnectionDeliveryResponseSchema)` to create a new message.
|
|
119
|
+
*/
|
|
120
|
+
export const ReplayConnectionDeliveryResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 21);
|
|
121
|
+
/**
|
|
122
|
+
* ConnectionKind is the kind of source a connection receives events from.
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum toshi.workspace.v1.ConnectionKind
|
|
125
|
+
*/
|
|
126
|
+
export var ConnectionKind;
|
|
127
|
+
(function (ConnectionKind) {
|
|
128
|
+
/**
|
|
129
|
+
* @generated from enum value: CONNECTION_KIND_UNSPECIFIED = 0;
|
|
130
|
+
*/
|
|
131
|
+
ConnectionKind[ConnectionKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
132
|
+
/**
|
|
133
|
+
* A GitHub App installation.
|
|
134
|
+
*
|
|
135
|
+
* @generated from enum value: CONNECTION_KIND_GITHUB = 1;
|
|
136
|
+
*/
|
|
137
|
+
ConnectionKind[ConnectionKind["GITHUB"] = 1] = "GITHUB";
|
|
138
|
+
/**
|
|
139
|
+
* A sender that signs its requests as Standard Webhooks does.
|
|
140
|
+
*
|
|
141
|
+
* @generated from enum value: CONNECTION_KIND_WEBHOOK = 2;
|
|
142
|
+
*/
|
|
143
|
+
ConnectionKind[ConnectionKind["WEBHOOK"] = 2] = "WEBHOOK";
|
|
144
|
+
})(ConnectionKind || (ConnectionKind = {}));
|
|
145
|
+
/**
|
|
146
|
+
* Describes the enum toshi.workspace.v1.ConnectionKind.
|
|
147
|
+
*/
|
|
148
|
+
export const ConnectionKindSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections, 0);
|
|
149
|
+
/**
|
|
150
|
+
* ConnectionDeliveryState is where a WEBHOOK connection's delivery stands.
|
|
151
|
+
*
|
|
152
|
+
* @generated from enum toshi.workspace.v1.ConnectionDeliveryState
|
|
153
|
+
*/
|
|
154
|
+
export var ConnectionDeliveryState;
|
|
155
|
+
(function (ConnectionDeliveryState) {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_UNSPECIFIED = 0;
|
|
158
|
+
*/
|
|
159
|
+
ConnectionDeliveryState[ConnectionDeliveryState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
160
|
+
/**
|
|
161
|
+
* Stored and waiting for a worker, or being run.
|
|
162
|
+
*
|
|
163
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_RECEIVED = 1;
|
|
164
|
+
*/
|
|
165
|
+
ConnectionDeliveryState[ConnectionDeliveryState["RECEIVED"] = 1] = "RECEIVED";
|
|
166
|
+
/**
|
|
167
|
+
* It became an event, or its connection's target took it.
|
|
168
|
+
*
|
|
169
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_PROCESSED = 2;
|
|
170
|
+
*/
|
|
171
|
+
ConnectionDeliveryState[ConnectionDeliveryState["PROCESSED"] = 2] = "PROCESSED";
|
|
172
|
+
/**
|
|
173
|
+
* It became no event, for the reason the delivery names.
|
|
174
|
+
*
|
|
175
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_DROPPED = 3;
|
|
176
|
+
*/
|
|
177
|
+
ConnectionDeliveryState[ConnectionDeliveryState["DROPPED"] = 3] = "DROPPED";
|
|
178
|
+
/**
|
|
179
|
+
* The store failed on every try to write its event, or its connection's
|
|
180
|
+
* target took it on no try.
|
|
181
|
+
*
|
|
182
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_FAILED = 4;
|
|
183
|
+
*/
|
|
184
|
+
ConnectionDeliveryState[ConnectionDeliveryState["FAILED"] = 4] = "FAILED";
|
|
185
|
+
})(ConnectionDeliveryState || (ConnectionDeliveryState = {}));
|
|
186
|
+
/**
|
|
187
|
+
* Describes the enum toshi.workspace.v1.ConnectionDeliveryState.
|
|
188
|
+
*/
|
|
189
|
+
export const ConnectionDeliveryStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections, 1);
|
|
190
|
+
/**
|
|
191
|
+
* ConnectionService keeps a workspace's connections: the sources of the
|
|
192
|
+
* events it owns. A GitHub App installation is a connection of the kind
|
|
193
|
+
* GITHUB, which installing the App creates and removing it deletes; the
|
|
194
|
+
* calls here list it and cannot create or delete it. A WEBHOOK connection
|
|
195
|
+
* receives events from a sender that signs its requests as Standard
|
|
196
|
+
* Webhooks does, with a secret the connection keeps.
|
|
197
|
+
*
|
|
198
|
+
* The caller's credential names the workspace, as for WorkloadService.
|
|
199
|
+
* CreateConnection and RotateConnectionSecret require a request_key, which
|
|
200
|
+
* works as WorkloadService's do: a retry with the same key and the same
|
|
201
|
+
* request returns what the first call returned and changes nothing. A
|
|
202
|
+
* signing secret is shown once, in the answer that made it and an identical
|
|
203
|
+
* retry's; no read returns it. A retry after the connection is deleted, or
|
|
204
|
+
* after its secret was rotated again, fails with FAILED_PRECONDITION.
|
|
205
|
+
*
|
|
206
|
+
* @generated from service toshi.workspace.v1.ConnectionService
|
|
207
|
+
*/
|
|
208
|
+
export const ConnectionService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_connections, 0);
|
|
@@ -64,7 +64,8 @@ export type DiscoverResponse = Message<"toshi.workspace.v1.DiscoverResponse"> &
|
|
|
64
64
|
/**
|
|
65
65
|
* permissions are the caller's, sorted: what its roles in the workspace
|
|
66
66
|
* give it at the request's project and environment. Each is
|
|
67
|
-
* "<area>.<level>", as
|
|
67
|
+
* "<area>.<level>", as this API's methods name them in their
|
|
68
|
+
* toshi.permission option, or a
|
|
68
69
|
* product's own, "<product id>.<level>".
|
|
69
70
|
*
|
|
70
71
|
* @generated from field: repeated string permissions = 2;
|
|
@@ -74,6 +75,28 @@ export type DiscoverResponse = Message<"toshi.workspace.v1.DiscoverResponse"> &
|
|
|
74
75
|
* @generated from field: toshi.workspace.v1.APIVersions versions = 3;
|
|
75
76
|
*/
|
|
76
77
|
versions?: APIVersions | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* registry_address is the deployment's container registry as a client
|
|
80
|
+
* writes it in an image reference and logs in to it, such as
|
|
81
|
+
* "registry.example.com": a host name, with a port when it is not 443.
|
|
82
|
+
* Empty when the deployment runs no container registry.
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: string registry_address = 4;
|
|
85
|
+
*/
|
|
86
|
+
registryAddress: string;
|
|
87
|
+
/**
|
|
88
|
+
* calls are the Workspace API procedures the caller may make at the
|
|
89
|
+
* request's project and environment, sorted, such as
|
|
90
|
+
* "/toshi.workspace.v1.WorkloadService/CreateJob": those its credential
|
|
91
|
+
* takes whose permission its roles give it where the call acts, by the
|
|
92
|
+
* rule that admits a call. A call in a project or an environment is
|
|
93
|
+
* listed when the caller may make it at the request's project and
|
|
94
|
+
* environment, or with none named, anywhere. The workspace's state is
|
|
95
|
+
* not looked at: a suspended workspace lists writes it refuses.
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: repeated string calls = 5;
|
|
98
|
+
*/
|
|
99
|
+
calls: string[];
|
|
77
100
|
};
|
|
78
101
|
/**
|
|
79
102
|
* @generated from message toshi.workspace.v1.DiscoverResponse
|
|
@@ -88,7 +111,8 @@ export type DiscoverResponseJson = {
|
|
|
88
111
|
/**
|
|
89
112
|
* permissions are the caller's, sorted: what its roles in the workspace
|
|
90
113
|
* give it at the request's project and environment. Each is
|
|
91
|
-
* "<area>.<level>", as
|
|
114
|
+
* "<area>.<level>", as this API's methods name them in their
|
|
115
|
+
* toshi.permission option, or a
|
|
92
116
|
* product's own, "<product id>.<level>".
|
|
93
117
|
*
|
|
94
118
|
* @generated from field: repeated string permissions = 2;
|
|
@@ -98,6 +122,28 @@ export type DiscoverResponseJson = {
|
|
|
98
122
|
* @generated from field: toshi.workspace.v1.APIVersions versions = 3;
|
|
99
123
|
*/
|
|
100
124
|
versions?: APIVersionsJson;
|
|
125
|
+
/**
|
|
126
|
+
* registry_address is the deployment's container registry as a client
|
|
127
|
+
* writes it in an image reference and logs in to it, such as
|
|
128
|
+
* "registry.example.com": a host name, with a port when it is not 443.
|
|
129
|
+
* Empty when the deployment runs no container registry.
|
|
130
|
+
*
|
|
131
|
+
* @generated from field: string registry_address = 4;
|
|
132
|
+
*/
|
|
133
|
+
registryAddress?: string;
|
|
134
|
+
/**
|
|
135
|
+
* calls are the Workspace API procedures the caller may make at the
|
|
136
|
+
* request's project and environment, sorted, such as
|
|
137
|
+
* "/toshi.workspace.v1.WorkloadService/CreateJob": those its credential
|
|
138
|
+
* takes whose permission its roles give it where the call acts, by the
|
|
139
|
+
* rule that admits a call. A call in a project or an environment is
|
|
140
|
+
* listed when the caller may make it at the request's project and
|
|
141
|
+
* environment, or with none named, anywhere. The workspace's state is
|
|
142
|
+
* not looked at: a suspended workspace lists writes it refuses.
|
|
143
|
+
*
|
|
144
|
+
* @generated from field: repeated string calls = 5;
|
|
145
|
+
*/
|
|
146
|
+
calls?: string[];
|
|
101
147
|
};
|
|
102
148
|
/**
|
|
103
149
|
* Describes the message toshi.workspace.v1.DiscoverResponse.
|
|
@@ -150,13 +196,36 @@ export type DiscoveredProduct = Message<"toshi.workspace.v1.DiscoveredProduct">
|
|
|
150
196
|
*/
|
|
151
197
|
state: ProductState;
|
|
152
198
|
/**
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
199
|
+
* surfaces are what the product adds to Toshi: the path its API is
|
|
200
|
+
* served at.
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: toshi.workspace.v1.DiscoveredSurfaces surfaces = 8;
|
|
203
|
+
*/
|
|
204
|
+
surfaces?: DiscoveredSurfaces | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* available reports whether the product is on for the workspace: the
|
|
207
|
+
* build includes it, the deployment's config, the workspace's plan and
|
|
208
|
+
* its settings all turn it on. A call to a product that is not available
|
|
209
|
+
* is refused with FAILED_PRECONDITION and the reason PRODUCT_UNAVAILABLE,
|
|
210
|
+
* whose metadata names the input that turned it off; the workspace's
|
|
211
|
+
* product settings show its plan's entitlement and its own setting.
|
|
156
212
|
*
|
|
157
|
-
* @generated from field:
|
|
213
|
+
* @generated from field: bool available = 10;
|
|
158
214
|
*/
|
|
159
|
-
|
|
215
|
+
available: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* stability is how mature the product is in this build.
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: toshi.workspace.v1.ProductStability stability = 11;
|
|
220
|
+
*/
|
|
221
|
+
stability: ProductStability;
|
|
222
|
+
/**
|
|
223
|
+
* removal_version is the version a deprecated product is removed in;
|
|
224
|
+
* empty for the other stabilities.
|
|
225
|
+
*
|
|
226
|
+
* @generated from field: string removal_version = 12;
|
|
227
|
+
*/
|
|
228
|
+
removalVersion: string;
|
|
160
229
|
};
|
|
161
230
|
/**
|
|
162
231
|
* DiscoveredProduct is one product the build includes.
|
|
@@ -202,13 +271,36 @@ export type DiscoveredProductJson = {
|
|
|
202
271
|
*/
|
|
203
272
|
state?: ProductStateJson;
|
|
204
273
|
/**
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
274
|
+
* surfaces are what the product adds to Toshi: the path its API is
|
|
275
|
+
* served at.
|
|
276
|
+
*
|
|
277
|
+
* @generated from field: toshi.workspace.v1.DiscoveredSurfaces surfaces = 8;
|
|
278
|
+
*/
|
|
279
|
+
surfaces?: DiscoveredSurfacesJson;
|
|
280
|
+
/**
|
|
281
|
+
* available reports whether the product is on for the workspace: the
|
|
282
|
+
* build includes it, the deployment's config, the workspace's plan and
|
|
283
|
+
* its settings all turn it on. A call to a product that is not available
|
|
284
|
+
* is refused with FAILED_PRECONDITION and the reason PRODUCT_UNAVAILABLE,
|
|
285
|
+
* whose metadata names the input that turned it off; the workspace's
|
|
286
|
+
* product settings show its plan's entitlement and its own setting.
|
|
208
287
|
*
|
|
209
|
-
* @generated from field:
|
|
288
|
+
* @generated from field: bool available = 10;
|
|
210
289
|
*/
|
|
211
|
-
|
|
290
|
+
available?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* stability is how mature the product is in this build.
|
|
293
|
+
*
|
|
294
|
+
* @generated from field: toshi.workspace.v1.ProductStability stability = 11;
|
|
295
|
+
*/
|
|
296
|
+
stability?: ProductStabilityJson;
|
|
297
|
+
/**
|
|
298
|
+
* removal_version is the version a deprecated product is removed in;
|
|
299
|
+
* empty for the other stabilities.
|
|
300
|
+
*
|
|
301
|
+
* @generated from field: string removal_version = 12;
|
|
302
|
+
*/
|
|
303
|
+
removalVersion?: string;
|
|
212
304
|
};
|
|
213
305
|
/**
|
|
214
306
|
* Describes the message toshi.workspace.v1.DiscoveredProduct.
|
|
@@ -217,6 +309,45 @@ export type DiscoveredProductJson = {
|
|
|
217
309
|
export declare const DiscoveredProductSchema: GenMessage<DiscoveredProduct, {
|
|
218
310
|
jsonType: DiscoveredProductJson;
|
|
219
311
|
}>;
|
|
312
|
+
/**
|
|
313
|
+
* DiscoveredSurfaces are what a product adds to Toshi, empty when it adds
|
|
314
|
+
* none. It mirrors products.proto's ProductSurfaces, field for field,
|
|
315
|
+
* because discovery.proto cannot import products.proto, which imports it.
|
|
316
|
+
*
|
|
317
|
+
* @generated from message toshi.workspace.v1.DiscoveredSurfaces
|
|
318
|
+
*/
|
|
319
|
+
export type DiscoveredSurfaces = Message<"toshi.workspace.v1.DiscoveredSurfaces"> & {
|
|
320
|
+
/**
|
|
321
|
+
* api is the path the control plane serves the product's API at, such
|
|
322
|
+
* as "/runners/".
|
|
323
|
+
*
|
|
324
|
+
* @generated from field: string api = 1;
|
|
325
|
+
*/
|
|
326
|
+
api: string;
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* DiscoveredSurfaces are what a product adds to Toshi, empty when it adds
|
|
330
|
+
* none. It mirrors products.proto's ProductSurfaces, field for field,
|
|
331
|
+
* because discovery.proto cannot import products.proto, which imports it.
|
|
332
|
+
*
|
|
333
|
+
* @generated from message toshi.workspace.v1.DiscoveredSurfaces
|
|
334
|
+
*/
|
|
335
|
+
export type DiscoveredSurfacesJson = {
|
|
336
|
+
/**
|
|
337
|
+
* api is the path the control plane serves the product's API at, such
|
|
338
|
+
* as "/runners/".
|
|
339
|
+
*
|
|
340
|
+
* @generated from field: string api = 1;
|
|
341
|
+
*/
|
|
342
|
+
api?: string;
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* Describes the message toshi.workspace.v1.DiscoveredSurfaces.
|
|
346
|
+
* Use `create(DiscoveredSurfacesSchema)` to create a new message.
|
|
347
|
+
*/
|
|
348
|
+
export declare const DiscoveredSurfacesSchema: GenMessage<DiscoveredSurfaces, {
|
|
349
|
+
jsonType: DiscoveredSurfacesJson;
|
|
350
|
+
}>;
|
|
220
351
|
/**
|
|
221
352
|
* ProductFeature is a typed key a product declares.
|
|
222
353
|
*
|
|
@@ -249,7 +380,9 @@ export type ProductFeature = Message<"toshi.workspace.v1.ProductFeature"> & {
|
|
|
249
380
|
/**
|
|
250
381
|
* entitlement is the most the workspace may have of the feature: the
|
|
251
382
|
* operator's override for the workspace, else its plan's value, else the
|
|
252
|
-
*
|
|
383
|
+
* value of the plan key it falls back to, else the feature's default
|
|
384
|
+
* (source). Unset when the config turns the product off or the build
|
|
385
|
+
* does not include it.
|
|
253
386
|
*
|
|
254
387
|
* @generated from field: toshi.workspace.v1.FeatureValue entitlement = 5;
|
|
255
388
|
*/
|
|
@@ -266,11 +399,42 @@ export type ProductFeature = Message<"toshi.workspace.v1.ProductFeature"> & {
|
|
|
266
399
|
/**
|
|
267
400
|
* effective is the value that applies: the setting when the feature is
|
|
268
401
|
* narrowable and the entitlement contains it, else the entitlement.
|
|
269
|
-
* Unset when the config turns the product off
|
|
402
|
+
* Unset when the config turns the product off or the build does not
|
|
403
|
+
* include it.
|
|
270
404
|
*
|
|
271
405
|
* @generated from field: toshi.workspace.v1.FeatureValue effective = 7;
|
|
272
406
|
*/
|
|
273
407
|
effective?: FeatureValue | undefined;
|
|
408
|
+
/**
|
|
409
|
+
* default_value is the feature's default in its product's manifest: the
|
|
410
|
+
* entitlement when no override, plan value or plan key gives one.
|
|
411
|
+
*
|
|
412
|
+
* @generated from field: toshi.workspace.v1.FeatureValue default_value = 8;
|
|
413
|
+
*/
|
|
414
|
+
defaultValue?: FeatureValue | undefined;
|
|
415
|
+
/**
|
|
416
|
+
* max bounds a count, or both ends of a range: no value of the feature
|
|
417
|
+
* is higher. 0 bounds nothing.
|
|
418
|
+
*
|
|
419
|
+
* @generated from field: int64 max = 9;
|
|
420
|
+
*/
|
|
421
|
+
max: bigint;
|
|
422
|
+
/**
|
|
423
|
+
* plan_key names the plan key a count falls back to, such as
|
|
424
|
+
* "preview_max_connections": a plan that sets the key and gives the
|
|
425
|
+
* feature no value of its own entitles the workspace to the key's value.
|
|
426
|
+
* Empty for a feature that falls back to none.
|
|
427
|
+
*
|
|
428
|
+
* @generated from field: string plan_key = 10;
|
|
429
|
+
*/
|
|
430
|
+
planKey: string;
|
|
431
|
+
/**
|
|
432
|
+
* source says where the entitlement comes from. Unspecified when the
|
|
433
|
+
* config turns the product off.
|
|
434
|
+
*
|
|
435
|
+
* @generated from field: toshi.workspace.v1.FeatureSource source = 11;
|
|
436
|
+
*/
|
|
437
|
+
source: FeatureSource;
|
|
274
438
|
};
|
|
275
439
|
/**
|
|
276
440
|
* ProductFeature is a typed key a product declares.
|
|
@@ -304,7 +468,9 @@ export type ProductFeatureJson = {
|
|
|
304
468
|
/**
|
|
305
469
|
* entitlement is the most the workspace may have of the feature: the
|
|
306
470
|
* operator's override for the workspace, else its plan's value, else the
|
|
307
|
-
*
|
|
471
|
+
* value of the plan key it falls back to, else the feature's default
|
|
472
|
+
* (source). Unset when the config turns the product off or the build
|
|
473
|
+
* does not include it.
|
|
308
474
|
*
|
|
309
475
|
* @generated from field: toshi.workspace.v1.FeatureValue entitlement = 5;
|
|
310
476
|
*/
|
|
@@ -321,11 +487,42 @@ export type ProductFeatureJson = {
|
|
|
321
487
|
/**
|
|
322
488
|
* effective is the value that applies: the setting when the feature is
|
|
323
489
|
* narrowable and the entitlement contains it, else the entitlement.
|
|
324
|
-
* Unset when the config turns the product off
|
|
490
|
+
* Unset when the config turns the product off or the build does not
|
|
491
|
+
* include it.
|
|
325
492
|
*
|
|
326
493
|
* @generated from field: toshi.workspace.v1.FeatureValue effective = 7;
|
|
327
494
|
*/
|
|
328
495
|
effective?: FeatureValueJson;
|
|
496
|
+
/**
|
|
497
|
+
* default_value is the feature's default in its product's manifest: the
|
|
498
|
+
* entitlement when no override, plan value or plan key gives one.
|
|
499
|
+
*
|
|
500
|
+
* @generated from field: toshi.workspace.v1.FeatureValue default_value = 8;
|
|
501
|
+
*/
|
|
502
|
+
defaultValue?: FeatureValueJson;
|
|
503
|
+
/**
|
|
504
|
+
* max bounds a count, or both ends of a range: no value of the feature
|
|
505
|
+
* is higher. 0 bounds nothing.
|
|
506
|
+
*
|
|
507
|
+
* @generated from field: int64 max = 9;
|
|
508
|
+
*/
|
|
509
|
+
max?: string;
|
|
510
|
+
/**
|
|
511
|
+
* plan_key names the plan key a count falls back to, such as
|
|
512
|
+
* "preview_max_connections": a plan that sets the key and gives the
|
|
513
|
+
* feature no value of its own entitles the workspace to the key's value.
|
|
514
|
+
* Empty for a feature that falls back to none.
|
|
515
|
+
*
|
|
516
|
+
* @generated from field: string plan_key = 10;
|
|
517
|
+
*/
|
|
518
|
+
planKey?: string;
|
|
519
|
+
/**
|
|
520
|
+
* source says where the entitlement comes from. Unspecified when the
|
|
521
|
+
* config turns the product off.
|
|
522
|
+
*
|
|
523
|
+
* @generated from field: toshi.workspace.v1.FeatureSource source = 11;
|
|
524
|
+
*/
|
|
525
|
+
source?: FeatureSourceJson;
|
|
329
526
|
};
|
|
330
527
|
/**
|
|
331
528
|
* Describes the message toshi.workspace.v1.ProductFeature.
|
|
@@ -556,56 +753,107 @@ export type ProductStateJson = "PRODUCT_STATE_UNSPECIFIED" | "PRODUCT_STATE_ENAB
|
|
|
556
753
|
*/
|
|
557
754
|
export declare const ProductStateSchema: GenEnum<ProductState, ProductStateJson>;
|
|
558
755
|
/**
|
|
559
|
-
*
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
756
|
+
* ProductStability is how mature a product is. A deployment's
|
|
757
|
+
* products.min_stability turns off a product below it, as the operator's
|
|
758
|
+
* switch does.
|
|
759
|
+
*
|
|
760
|
+
* @generated from enum toshi.workspace.v1.ProductStability
|
|
761
|
+
*/
|
|
762
|
+
export declare enum ProductStability {
|
|
763
|
+
/**
|
|
764
|
+
* @generated from enum value: PRODUCT_STABILITY_UNSPECIFIED = 0;
|
|
765
|
+
*/
|
|
766
|
+
UNSPECIFIED = 0,
|
|
767
|
+
/**
|
|
768
|
+
* May change or go away in any release.
|
|
769
|
+
*
|
|
770
|
+
* @generated from enum value: PRODUCT_STABILITY_ALPHA = 1;
|
|
771
|
+
*/
|
|
772
|
+
ALPHA = 1,
|
|
773
|
+
/**
|
|
774
|
+
* Complete; its configuration and API may still change between minor
|
|
775
|
+
* releases, with notice.
|
|
776
|
+
*
|
|
777
|
+
* @generated from enum value: PRODUCT_STABILITY_BETA = 2;
|
|
778
|
+
*/
|
|
779
|
+
BETA = 2,
|
|
780
|
+
/**
|
|
781
|
+
* Changes only compatibly within a major version.
|
|
782
|
+
*
|
|
783
|
+
* @generated from enum value: PRODUCT_STABILITY_STABLE = 3;
|
|
784
|
+
*/
|
|
785
|
+
STABLE = 3,
|
|
786
|
+
/**
|
|
787
|
+
* Works as it did until its removal version.
|
|
788
|
+
*
|
|
789
|
+
* @generated from enum value: PRODUCT_STABILITY_DEPRECATED = 4;
|
|
790
|
+
*/
|
|
791
|
+
DEPRECATED = 4
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* ProductStability is how mature a product is. A deployment's
|
|
795
|
+
* products.min_stability turns off a product below it, as the operator's
|
|
796
|
+
* switch does.
|
|
797
|
+
*
|
|
798
|
+
* @generated from enum toshi.workspace.v1.ProductStability
|
|
799
|
+
*/
|
|
800
|
+
export type ProductStabilityJson = "PRODUCT_STABILITY_UNSPECIFIED" | "PRODUCT_STABILITY_ALPHA" | "PRODUCT_STABILITY_BETA" | "PRODUCT_STABILITY_STABLE" | "PRODUCT_STABILITY_DEPRECATED";
|
|
801
|
+
/**
|
|
802
|
+
* Describes the enum toshi.workspace.v1.ProductStability.
|
|
803
|
+
*/
|
|
804
|
+
export declare const ProductStabilitySchema: GenEnum<ProductStability, ProductStabilityJson>;
|
|
805
|
+
/**
|
|
806
|
+
* FeatureSource is where a workspace's entitlement to a feature comes from,
|
|
807
|
+
* the first that applies in this order: the operator's override, the
|
|
808
|
+
* value its plan gives the feature, the plan key the feature falls back
|
|
809
|
+
* to, and the feature's default.
|
|
563
810
|
*
|
|
564
|
-
* @generated from enum toshi.workspace.v1.
|
|
811
|
+
* @generated from enum toshi.workspace.v1.FeatureSource
|
|
565
812
|
*/
|
|
566
|
-
export declare enum
|
|
813
|
+
export declare enum FeatureSource {
|
|
567
814
|
/**
|
|
568
|
-
* @generated from enum value:
|
|
815
|
+
* @generated from enum value: FEATURE_SOURCE_UNSPECIFIED = 0;
|
|
569
816
|
*/
|
|
570
817
|
UNSPECIFIED = 0,
|
|
571
818
|
/**
|
|
572
|
-
*
|
|
819
|
+
* The operator's override for the workspace.
|
|
573
820
|
*
|
|
574
|
-
* @generated from enum value:
|
|
821
|
+
* @generated from enum value: FEATURE_SOURCE_OVERRIDE = 1;
|
|
575
822
|
*/
|
|
576
|
-
|
|
823
|
+
OVERRIDE = 1,
|
|
577
824
|
/**
|
|
578
|
-
* The
|
|
825
|
+
* The value the workspace's plan gives the feature.
|
|
579
826
|
*
|
|
580
|
-
* @generated from enum value:
|
|
827
|
+
* @generated from enum value: FEATURE_SOURCE_PLAN = 2;
|
|
581
828
|
*/
|
|
582
|
-
|
|
829
|
+
PLAN = 2,
|
|
583
830
|
/**
|
|
584
|
-
* The
|
|
831
|
+
* The value of the plan key the feature falls back to, which the
|
|
832
|
+
* workspace's plan sets.
|
|
585
833
|
*
|
|
586
|
-
* @generated from enum value:
|
|
834
|
+
* @generated from enum value: FEATURE_SOURCE_PLAN_KEY = 3;
|
|
587
835
|
*/
|
|
588
|
-
|
|
836
|
+
PLAN_KEY = 3,
|
|
589
837
|
/**
|
|
590
|
-
* The
|
|
838
|
+
* The feature's default in its product's manifest.
|
|
591
839
|
*
|
|
592
|
-
* @generated from enum value:
|
|
840
|
+
* @generated from enum value: FEATURE_SOURCE_DEFAULT = 4;
|
|
593
841
|
*/
|
|
594
|
-
|
|
842
|
+
DEFAULT = 4
|
|
595
843
|
}
|
|
596
844
|
/**
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
* the
|
|
845
|
+
* FeatureSource is where a workspace's entitlement to a feature comes from,
|
|
846
|
+
* the first that applies in this order: the operator's override, the
|
|
847
|
+
* value its plan gives the feature, the plan key the feature falls back
|
|
848
|
+
* to, and the feature's default.
|
|
601
849
|
*
|
|
602
|
-
* @generated from enum toshi.workspace.v1.
|
|
850
|
+
* @generated from enum toshi.workspace.v1.FeatureSource
|
|
603
851
|
*/
|
|
604
|
-
export type
|
|
852
|
+
export type FeatureSourceJson = "FEATURE_SOURCE_UNSPECIFIED" | "FEATURE_SOURCE_OVERRIDE" | "FEATURE_SOURCE_PLAN" | "FEATURE_SOURCE_PLAN_KEY" | "FEATURE_SOURCE_DEFAULT";
|
|
605
853
|
/**
|
|
606
|
-
* Describes the enum toshi.workspace.v1.
|
|
854
|
+
* Describes the enum toshi.workspace.v1.FeatureSource.
|
|
607
855
|
*/
|
|
608
|
-
export declare const
|
|
856
|
+
export declare const FeatureSourceSchema: GenEnum<FeatureSource, FeatureSourceJson>;
|
|
609
857
|
/**
|
|
610
858
|
* ProductFeatureType is the type of a feature's value.
|
|
611
859
|
*
|