@toshicloud/sdk 0.6.0 → 0.7.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.
- package/README.md +39 -510
- package/dist/client.d.ts +6 -4
- package/dist/client.js +4 -2
- package/dist/gen/toshi/permission_pb.d.ts +12 -0
- package/dist/gen/toshi/permission_pb.js +14 -2
- package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +213 -19
- package/dist/gen/toshi/workspace/v1/connections_pb.js +97 -25
- package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +26 -26
- package/dist/gen/toshi/workspace/v1/domains_pb.js +4 -4
- package/dist/gen/toshi/workspace/v1/{channels_pb.d.ts → endpoints_pb.d.ts} +945 -822
- package/dist/gen/toshi/workspace/v1/endpoints_pb.js +488 -0
- package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +10 -10
- package/dist/gen/toshi/workspace/v1/grants_pb.js +3 -3
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +46 -22
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +110 -36
- package/dist/gen/toshi/workspace/v1/hosts_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/model_credentials_pb.d.ts +654 -0
- package/dist/gen/toshi/workspace/v1/model_credentials_pb.js +110 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +21 -2
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1 -1
- package/dist/gen/toshi/workspace/v1/roles_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +19 -2
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +28 -28
- package/dist/gen/toshi/workspace/v1/triggers_pb.js +6 -6
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +202 -202
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +46 -46
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +552 -29
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +85 -55
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +639 -119
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +174 -88
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +101 -4
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +20 -15
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/retry.js +33 -22
- package/dist/test/alarms.js +1 -1
- package/dist/test/procedures.js +35 -25
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/gen/toshi/workspace/v1/channels_pb.js +0 -483
|
@@ -12,7 +12,7 @@ export declare const file_toshi_workspace_v1_domains: GenFile;
|
|
|
12
12
|
*/
|
|
13
13
|
export type DomainRecord = Message<"toshi.workspace.v1.DomainRecord"> & {
|
|
14
14
|
/**
|
|
15
|
-
* CNAME or
|
|
15
|
+
* CNAME, TXT or MX. An MX value is its priority and host, such as "10 mail.example.com".
|
|
16
16
|
*
|
|
17
17
|
* @generated from field: string type = 1;
|
|
18
18
|
*/
|
|
@@ -37,7 +37,7 @@ export type DomainRecord = Message<"toshi.workspace.v1.DomainRecord"> & {
|
|
|
37
37
|
*/
|
|
38
38
|
export type DomainRecordJson = {
|
|
39
39
|
/**
|
|
40
|
-
* CNAME or
|
|
40
|
+
* CNAME, TXT or MX. An MX value is its priority and host, such as "10 mail.example.com".
|
|
41
41
|
*
|
|
42
42
|
* @generated from field: string type = 1;
|
|
43
43
|
*/
|
|
@@ -83,20 +83,20 @@ export type Domain = Message<"toshi.workspace.v1.Domain"> & {
|
|
|
83
83
|
*/
|
|
84
84
|
serviceId: string;
|
|
85
85
|
/**
|
|
86
|
-
* The service's http
|
|
87
|
-
* recipe; the front
|
|
86
|
+
* The service's http endpoint the domain serves, by its name in the
|
|
87
|
+
* recipe; the front endpoint's when the create named none.
|
|
88
88
|
*
|
|
89
|
-
* @generated from field: string
|
|
89
|
+
* @generated from field: string endpoint = 4;
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
endpoint: string;
|
|
92
92
|
/**
|
|
93
93
|
* @generated from field: toshi.workspace.v1.DomainState state = 5;
|
|
94
94
|
*/
|
|
95
95
|
state: DomainState;
|
|
96
96
|
/**
|
|
97
|
-
* The CNAME record to the
|
|
97
|
+
* The CNAME record to the endpoint's provided name, then the TXT record
|
|
98
98
|
* with the domain's token; only the TXT record while the service's
|
|
99
|
-
* current revision gives the
|
|
99
|
+
* current revision gives the endpoint no provided name.
|
|
100
100
|
*
|
|
101
101
|
* @generated from field: repeated toshi.workspace.v1.DomainRecord records = 6;
|
|
102
102
|
*/
|
|
@@ -164,20 +164,20 @@ export type DomainJson = {
|
|
|
164
164
|
*/
|
|
165
165
|
serviceId?: string;
|
|
166
166
|
/**
|
|
167
|
-
* The service's http
|
|
168
|
-
* recipe; the front
|
|
167
|
+
* The service's http endpoint the domain serves, by its name in the
|
|
168
|
+
* recipe; the front endpoint's when the create named none.
|
|
169
169
|
*
|
|
170
|
-
* @generated from field: string
|
|
170
|
+
* @generated from field: string endpoint = 4;
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
endpoint?: string;
|
|
173
173
|
/**
|
|
174
174
|
* @generated from field: toshi.workspace.v1.DomainState state = 5;
|
|
175
175
|
*/
|
|
176
176
|
state?: DomainStateJson;
|
|
177
177
|
/**
|
|
178
|
-
* The CNAME record to the
|
|
178
|
+
* The CNAME record to the endpoint's provided name, then the TXT record
|
|
179
179
|
* with the domain's token; only the TXT record while the service's
|
|
180
|
-
* current revision gives the
|
|
180
|
+
* current revision gives the endpoint no provided name.
|
|
181
181
|
*
|
|
182
182
|
* @generated from field: repeated toshi.workspace.v1.DomainRecord records = 6;
|
|
183
183
|
*/
|
|
@@ -250,12 +250,12 @@ export type CreateDomainRequest = Message<"toshi.workspace.v1.CreateDomainReques
|
|
|
250
250
|
*/
|
|
251
251
|
serviceId: string;
|
|
252
252
|
/**
|
|
253
|
-
* The http
|
|
254
|
-
*
|
|
253
|
+
* The http endpoint the domain serves; empty is the service's front
|
|
254
|
+
* endpoint, the one at the service's own name.
|
|
255
255
|
*
|
|
256
|
-
* @generated from field: string
|
|
256
|
+
* @generated from field: string endpoint = 4;
|
|
257
257
|
*/
|
|
258
|
-
|
|
258
|
+
endpoint: string;
|
|
259
259
|
/**
|
|
260
260
|
* The domain, in its Unicode or ASCII form.
|
|
261
261
|
*
|
|
@@ -286,12 +286,12 @@ export type CreateDomainRequestJson = {
|
|
|
286
286
|
*/
|
|
287
287
|
serviceId?: string;
|
|
288
288
|
/**
|
|
289
|
-
* The http
|
|
290
|
-
*
|
|
289
|
+
* The http endpoint the domain serves; empty is the service's front
|
|
290
|
+
* endpoint, the one at the service's own name.
|
|
291
291
|
*
|
|
292
|
-
* @generated from field: string
|
|
292
|
+
* @generated from field: string endpoint = 4;
|
|
293
293
|
*/
|
|
294
|
-
|
|
294
|
+
endpoint?: string;
|
|
295
295
|
/**
|
|
296
296
|
* The domain, in its Unicode or ASCII form.
|
|
297
297
|
*
|
|
@@ -774,9 +774,9 @@ export type DomainStateJson = "DOMAIN_STATE_UNSPECIFIED" | "DOMAIN_STATE_WAITING
|
|
|
774
774
|
export declare const DomainStateSchema: GenEnum<DomainState, DomainStateJson>;
|
|
775
775
|
/**
|
|
776
776
|
* DomainService manages customer domains: names a workspace owns at its
|
|
777
|
-
* own DNS provider and points at an http
|
|
778
|
-
* beside the
|
|
779
|
-
* records check out, a CNAME record to the
|
|
777
|
+
* own DNS provider and points at an http endpoint of one of its services,
|
|
778
|
+
* beside the endpoint's provided name. A domain serves once its two
|
|
779
|
+
* records check out, a CNAME record to the endpoint's provided name and a
|
|
780
780
|
* TXT record carrying the domain's token; its certificate is ordered at
|
|
781
781
|
* its first visit, or by IssueDomain, and renewed with no call. The
|
|
782
782
|
* caller's credential names the workspace; a domain of another workspace
|
|
@@ -789,7 +789,7 @@ export declare const DomainStateSchema: GenEnum<DomainState, DomainStateJson>;
|
|
|
789
789
|
*/
|
|
790
790
|
export declare const DomainService: GenService<{
|
|
791
791
|
/**
|
|
792
|
-
* CreateDomain adds a domain for an http
|
|
792
|
+
* CreateDomain adds a domain for an http endpoint of a service and
|
|
793
793
|
* returns it with the records to set. Only a name below a registered
|
|
794
794
|
* domain is taken (shop.example.com, not example.com), and no wildcard.
|
|
795
795
|
* A name the workspace already has is ALREADY_EXISTS; past the plan's
|
|
@@ -7,7 +7,7 @@ import { file_toshi_permission } from "../../permission_pb.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file toshi/workspace/v1/domains.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_toshi_workspace_v1_domains = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_toshi_workspace_v1_domains = /*@__PURE__*/ fileDesc("CiB0b3NoaS93b3Jrc3BhY2UvdjEvZG9tYWlucy5wcm90bxISdG9zaGkud29ya3NwYWNlLnYxIjkKDERvbWFpblJlY29yZBIMCgR0eXBlGAEgASgJEgwKBG5hbWUYAiABKAkSDQoFdmFsdWUYAyABKAki4AMKBkRvbWFpbhIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhIKCnNlcnZpY2VfaWQYAyABKAkSEAoIZW5kcG9pbnQYBCABKAkSLgoFc3RhdGUYBSABKA4yHy50b3NoaS53b3Jrc3BhY2UudjEuRG9tYWluU3RhdGUSMQoHcmVjb3JkcxgGIAMoCzIgLnRvc2hpLndvcmtzcGFjZS52MS5Eb21haW5SZWNvcmQSLgoKY2hlY2tlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdmVyaWZpZWRfYXQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjEKDWxhc3Rfb3JkZXJfYXQYCSABKAsyGi5nb29nbGUucHJvdG9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ubWVudBKAAQoLTGlzdERvbWFpbnMSJi50b3NoaS53b3Jrc3BhY2UudjEuTGlzdERvbWFpbnNSZXF1ZXN0GicudG9zaGkud29ya3NwYWNlLnYxLkxpc3REb21haW5zUmVzcG9uc2UiIMLzGA1zZXJ2aWNlcy5yZWFkyvMYC2Vudmlyb25tZW50EpgBCgxWZXJpZnlEb21haW4SJy50b3NoaS53b3Jrc3BhY2UudjEuVmVyaWZ5RG9tYWluUmVxdWVzdBooLnRvc2hpLndvcmtzcGFjZS52MS5WZXJpZnlEb21haW5SZXNwb25zZSI1wvMYDnNlcnZpY2VzLndyaXRlyvMYC2Vudmlyb25tZW500vMYEAoOZG9tYWluLmNoZWNrZWQSnQEKC0lzc3VlRG9tYWluEiYudG9zaGkud29ya3NwYWNlLnYxLklzc3VlRG9tYWluUmVxdWVzdBonLnRvc2hpLndvcmtzcGFjZS52MS5Jc3N1ZURvbWFpblJlc3BvbnNlIj3C8xgOc2VydmljZXMud3JpdGXK8xgLZW52aXJvbm1lbnTS8xgYChZkb21haW4uaXNzdWVfcmVxdWVzdGVkEoQBCgxEZWxldGVEb21haW4SJy50b3NoaS53b3Jrc3BhY2UudjEuRGVsZXRlRG9tYWluUmVxdWVzdBooLnRvc2hpLndvcmtzcGFjZS52MS5EZWxldGVEb21haW5SZXNwb25zZSIhwvMYDnNlcnZpY2VzLndyaXRlyvMYC2Vudmlyb25tZW50QiJaIGdvLnRvc2hpY2xvdWQuaW8vYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_toshi_permission]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message toshi.workspace.v1.DomainRecord.
|
|
13
13
|
* Use `create(DomainRecordSchema)` to create a new message.
|
|
@@ -136,9 +136,9 @@ export var DomainState;
|
|
|
136
136
|
export const DomainStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_domains, 0);
|
|
137
137
|
/**
|
|
138
138
|
* DomainService manages customer domains: names a workspace owns at its
|
|
139
|
-
* own DNS provider and points at an http
|
|
140
|
-
* beside the
|
|
141
|
-
* records check out, a CNAME record to the
|
|
139
|
+
* own DNS provider and points at an http endpoint of one of its services,
|
|
140
|
+
* beside the endpoint's provided name. A domain serves once its two
|
|
141
|
+
* records check out, a CNAME record to the endpoint's provided name and a
|
|
142
142
|
* TXT record carrying the domain's token; its certificate is ordered at
|
|
143
143
|
* its first visit, or by IssueDomain, and renewed with no call. The
|
|
144
144
|
* caller's credential names the workspace; a domain of another workspace
|