@pontive/server 1.27.0 → 1.28.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/dist/{client-DdtDcUK9.cjs → client-BkRsOrbo.cjs} +2 -2
- package/dist/{client-DdtDcUK9.cjs.map → client-BkRsOrbo.cjs.map} +1 -1
- package/dist/{client-B3NStbMW.js → client-DhAfqKrD.js} +4 -3
- package/dist/{client-B3NStbMW.js.map → client-DhAfqKrD.js.map} +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1371 -439
- package/dist/index.js.map +1 -1
- package/dist/management.cjs +1 -1
- package/dist/management.js +1 -1
- package/dist/platform/client.d.cts +49 -0
- package/dist/platform/client.d.ts +49 -0
- package/dist/platform/core.d.cts +1 -0
- package/dist/platform/core.d.ts +1 -0
- package/dist/platform/generated/namespaces.d.cts +767 -0
- package/dist/platform/generated/namespaces.d.ts +767 -0
- package/dist/platform/generated/types.d.cts +2075 -0
- package/dist/platform/generated/types.d.ts +2075 -0
- package/dist/platform/index.d.cts +6 -0
- package/dist/platform/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2075 @@
|
|
|
1
|
+
export interface Activity {
|
|
2
|
+
buckets?: ActivityBucket[];
|
|
3
|
+
from?: string;
|
|
4
|
+
interval?: "hour" | "day";
|
|
5
|
+
object?: string;
|
|
6
|
+
period?: "24h" | "7d" | "30d";
|
|
7
|
+
subscription_id?: string;
|
|
8
|
+
to?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ActivityBucket {
|
|
11
|
+
attempts?: number;
|
|
12
|
+
failed?: number;
|
|
13
|
+
start?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AddInstanceMemberRequest {
|
|
16
|
+
/**
|
|
17
|
+
* The roles to hold on the instance required: true enum: admin,developer,support,viewer
|
|
18
|
+
*/
|
|
19
|
+
roles?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* The user to add. They must already be a member of the instance's workspace; anyone else is invited
|
|
22
|
+
* to the workspace or project first. required: true
|
|
23
|
+
*/
|
|
24
|
+
user_id?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AddProjectMemberRequest {
|
|
27
|
+
/**
|
|
28
|
+
* The roles to hold on the project required: true enum: admin,developer,viewer
|
|
29
|
+
*/
|
|
30
|
+
roles?: string[];
|
|
31
|
+
/**
|
|
32
|
+
* The user to add. They must already be a member of the project's workspace; anyone else is invited
|
|
33
|
+
* instead. required: true
|
|
34
|
+
*/
|
|
35
|
+
user_id?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface Base {
|
|
38
|
+
paid?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface BillingAccount {
|
|
41
|
+
/**
|
|
42
|
+
* monthly or annual: the contract's billing frequency on a paid plan.
|
|
43
|
+
*/
|
|
44
|
+
billing_interval?: "monthly" | "annual";
|
|
45
|
+
custom_domains?: number;
|
|
46
|
+
entitlements?: WorkspaceEntitlement;
|
|
47
|
+
/**
|
|
48
|
+
* Production instances with Fine-Grained Authorization on, and custom auth domains.
|
|
49
|
+
*/
|
|
50
|
+
fga_instances?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the workspace is on a paid plan.
|
|
53
|
+
*/
|
|
54
|
+
has_subscription?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The workspace's plan, and when it last changed. It follows the package of the workspace's contract
|
|
57
|
+
* on the directory instance, changed in billing's portal on the Billing page.
|
|
58
|
+
*/
|
|
59
|
+
plan?: string;
|
|
60
|
+
plan_changed_at?: string;
|
|
61
|
+
projects?: ProjectCounts;
|
|
62
|
+
/**
|
|
63
|
+
* The plan of the contract's pending change: a downgrade waiting for the end of the period or the
|
|
64
|
+
* term. A pending change of billing interval alone is none. Null while none is pending.
|
|
65
|
+
*/
|
|
66
|
+
scheduled_plan?: string;
|
|
67
|
+
/**
|
|
68
|
+
* When the scheduled plan applies; null with no scheduled plan.
|
|
69
|
+
*/
|
|
70
|
+
scheduled_plan_at?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The Free checklist (pontive-spec 10, Downgrade to Free): while a downgrade to Free is pending, what
|
|
73
|
+
* the workspace would hold that Free cannot; while a move to Free keeps it paused, what still does.
|
|
74
|
+
* Null otherwise.
|
|
75
|
+
*/
|
|
76
|
+
scheduled_plan_blockers?: Blocker[];
|
|
77
|
+
seats?: SeatCounts;
|
|
78
|
+
workspace_id?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs
|
|
82
|
+
* workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.
|
|
83
|
+
*/
|
|
84
|
+
export interface BillingContact {
|
|
85
|
+
/**
|
|
86
|
+
* The address of the billing contact
|
|
87
|
+
*/
|
|
88
|
+
address?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The city of the billing contact
|
|
91
|
+
*/
|
|
92
|
+
city?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The company name of the billing contact
|
|
95
|
+
*/
|
|
96
|
+
company_name?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The country of the billing contact
|
|
99
|
+
*/
|
|
100
|
+
country?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The email of the billing contact
|
|
103
|
+
*/
|
|
104
|
+
email?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The name of the billing contact
|
|
107
|
+
*/
|
|
108
|
+
name?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The phone of the billing contact
|
|
111
|
+
*/
|
|
112
|
+
phone?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The state of the billing contact
|
|
115
|
+
*/
|
|
116
|
+
state?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The tax ID of the billing contact
|
|
119
|
+
*/
|
|
120
|
+
tax_id?: string;
|
|
121
|
+
/**
|
|
122
|
+
* The tax rate of the billing contact
|
|
123
|
+
*/
|
|
124
|
+
tax_rate?: string;
|
|
125
|
+
/**
|
|
126
|
+
* The zip code of the billing contact
|
|
127
|
+
*/
|
|
128
|
+
zip?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface Blocker {
|
|
131
|
+
count?: number;
|
|
132
|
+
kind?: "seats" | "fga_instances" | "custom_domains";
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The per-instance capability switches
|
|
136
|
+
*/
|
|
137
|
+
export interface Capabilities {
|
|
138
|
+
billing?: Capability;
|
|
139
|
+
fga?: Capability;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Fine-Grained Authorization: custom resource types and everything built on them.
|
|
143
|
+
*/
|
|
144
|
+
export interface Capability {
|
|
145
|
+
/**
|
|
146
|
+
* Whether the capability is enabled
|
|
147
|
+
*/
|
|
148
|
+
enabled?: boolean;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Compliance tags of the project
|
|
152
|
+
*/
|
|
153
|
+
export interface ComplianceTags {
|
|
154
|
+
GDPR?: boolean;
|
|
155
|
+
HIPAA?: boolean;
|
|
156
|
+
}
|
|
157
|
+
export interface CreateDomainRequest {
|
|
158
|
+
/**
|
|
159
|
+
* The hostname, e.g. auth.acme.com
|
|
160
|
+
*/
|
|
161
|
+
domain: string;
|
|
162
|
+
/**
|
|
163
|
+
* The ID of the instance to add the domain to
|
|
164
|
+
*/
|
|
165
|
+
instance_id: string;
|
|
166
|
+
}
|
|
167
|
+
export interface CreateDomainResponse {
|
|
168
|
+
domain?: Domain;
|
|
169
|
+
/**
|
|
170
|
+
* The object type
|
|
171
|
+
*/
|
|
172
|
+
object?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface CreateInstanceRequest {
|
|
175
|
+
/**
|
|
176
|
+
* The description of the instance (0-500 chars)
|
|
177
|
+
*/
|
|
178
|
+
description?: string;
|
|
179
|
+
/**
|
|
180
|
+
* The environment of the instance. A project holds at most one production instance.
|
|
181
|
+
*/
|
|
182
|
+
environment: "production" | "non_production";
|
|
183
|
+
metadata?: Record<string, string>;
|
|
184
|
+
/**
|
|
185
|
+
* The name of the instance (1-100 chars). Required for non_production; must be omitted for production
|
|
186
|
+
* (instance_name_not_settable).
|
|
187
|
+
*/
|
|
188
|
+
name?: string;
|
|
189
|
+
/**
|
|
190
|
+
* The ID of the project to create the instance in
|
|
191
|
+
*/
|
|
192
|
+
project_id: string;
|
|
193
|
+
/**
|
|
194
|
+
* The slug of the instance (2-20 chars). Required for non_production; must be omitted for production
|
|
195
|
+
* (instance_name_not_settable).
|
|
196
|
+
*/
|
|
197
|
+
slug?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface CreateProjectRequest {
|
|
200
|
+
/**
|
|
201
|
+
* The description of the project (0-500 chars)
|
|
202
|
+
*/
|
|
203
|
+
description?: string;
|
|
204
|
+
metadata?: Record<string, string>;
|
|
205
|
+
/**
|
|
206
|
+
* The name of the project (1-100 chars)
|
|
207
|
+
*/
|
|
208
|
+
name: string;
|
|
209
|
+
/**
|
|
210
|
+
* The region where the project is deployed
|
|
211
|
+
*/
|
|
212
|
+
region?: "us" | "eu" | "au";
|
|
213
|
+
/**
|
|
214
|
+
* The tenancy mode of the project: b2b (organizations) or b2c. Required and immutable once the project
|
|
215
|
+
* is created.
|
|
216
|
+
*/
|
|
217
|
+
tenancy_mode: "b2b" | "b2c";
|
|
218
|
+
/**
|
|
219
|
+
* The ID of the workspace the project is created in
|
|
220
|
+
*/
|
|
221
|
+
workspace_id: string;
|
|
222
|
+
}
|
|
223
|
+
export interface CreateSecretKeyRequest {
|
|
224
|
+
/**
|
|
225
|
+
* What the key is for (0–500 characters); null or absent for none
|
|
226
|
+
*/
|
|
227
|
+
description?: string;
|
|
228
|
+
/**
|
|
229
|
+
* When the key stops working; null for never. Must be in the future.
|
|
230
|
+
*/
|
|
231
|
+
expires_at?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Names the caller, e.g. billing-worker (1–100 characters) required: true
|
|
234
|
+
*/
|
|
235
|
+
name?: string;
|
|
236
|
+
/**
|
|
237
|
+
* The key's authority on its instance required: true enum: admin,developer,support,viewer
|
|
238
|
+
*/
|
|
239
|
+
role?: "admin" | "developer" | "support" | "viewer";
|
|
240
|
+
}
|
|
241
|
+
export interface CreateSubscriptionRequest {
|
|
242
|
+
description?: string;
|
|
243
|
+
event_types?: string[];
|
|
244
|
+
headers?: Record<string, string>;
|
|
245
|
+
metadata?: Record<string, string>;
|
|
246
|
+
url?: string;
|
|
247
|
+
}
|
|
248
|
+
export interface DeleteInstanceRequest {
|
|
249
|
+
/**
|
|
250
|
+
* Must be true; without it the API returns 400 confirmation_required.
|
|
251
|
+
*/
|
|
252
|
+
confirm_delete?: boolean;
|
|
253
|
+
}
|
|
254
|
+
export interface DeleteProjectRequest {
|
|
255
|
+
/**
|
|
256
|
+
* Must be true; without it the API returns 400 confirmation_required. Deleting a project soft-deletes
|
|
257
|
+
* every instance in it.
|
|
258
|
+
*/
|
|
259
|
+
confirm_delete?: boolean;
|
|
260
|
+
}
|
|
261
|
+
export interface Delivery {
|
|
262
|
+
attempt_number?: number;
|
|
263
|
+
attempted_at?: string;
|
|
264
|
+
/**
|
|
265
|
+
* CreatedAt is when the attempt was scheduled; AttemptedAt is when its request was made, absent while
|
|
266
|
+
* it is pending or inflight.
|
|
267
|
+
*/
|
|
268
|
+
created_at?: string;
|
|
269
|
+
delivered_at?: string;
|
|
270
|
+
duration_ms?: number;
|
|
271
|
+
error?: string;
|
|
272
|
+
event_id?: string;
|
|
273
|
+
/**
|
|
274
|
+
* EventType is the event's type; absent once the event has aged out.
|
|
275
|
+
*/
|
|
276
|
+
event_type?: string;
|
|
277
|
+
id?: string;
|
|
278
|
+
next_retry_at?: string;
|
|
279
|
+
object?: string;
|
|
280
|
+
request?: DeliveryRequestInfo;
|
|
281
|
+
response?: DeliveryResponseInfo;
|
|
282
|
+
response_code?: number;
|
|
283
|
+
/**
|
|
284
|
+
* RetriedBy is the id of the attempt that superseded this one; absent until a successor exists.
|
|
285
|
+
*/
|
|
286
|
+
retried_by?: string;
|
|
287
|
+
status?: "pending" | "inflight" | "success" | "failed" | "error";
|
|
288
|
+
subscription_id?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Trigger says why the request is made: automatic for the event's first delivery and the retry ladder,
|
|
291
|
+
* manual for a Resend or a scheduled retry sent now.
|
|
292
|
+
*/
|
|
293
|
+
trigger?: "automatic" | "manual";
|
|
294
|
+
}
|
|
295
|
+
export interface DeliveryRequestInfo {
|
|
296
|
+
headers?: Record<string, string>;
|
|
297
|
+
method?: string;
|
|
298
|
+
url?: string;
|
|
299
|
+
}
|
|
300
|
+
export interface DeliveryResponseInfo {
|
|
301
|
+
body_preview?: string;
|
|
302
|
+
code?: number;
|
|
303
|
+
headers?: Record<string, string>;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* The created domain. It starts pending, carrying the challenge that must be published before it can
|
|
307
|
+
* be activated.
|
|
308
|
+
*/
|
|
309
|
+
export interface Domain {
|
|
310
|
+
/**
|
|
311
|
+
* The time when the domain was created
|
|
312
|
+
*/
|
|
313
|
+
created_at?: string;
|
|
314
|
+
/**
|
|
315
|
+
* The name of the domain
|
|
316
|
+
*/
|
|
317
|
+
domain?: string;
|
|
318
|
+
/**
|
|
319
|
+
* The ID of the domain
|
|
320
|
+
*/
|
|
321
|
+
id?: string;
|
|
322
|
+
/**
|
|
323
|
+
* The ID of the instance the domain is associated with
|
|
324
|
+
*/
|
|
325
|
+
instance_id?: string;
|
|
326
|
+
ssl?: DomainSSL;
|
|
327
|
+
/**
|
|
328
|
+
* The status of the domain
|
|
329
|
+
*/
|
|
330
|
+
status?: string;
|
|
331
|
+
/**
|
|
332
|
+
* The type of the domain. Always "auth_server".
|
|
333
|
+
*/
|
|
334
|
+
type?: "auth_server";
|
|
335
|
+
/**
|
|
336
|
+
* The time when the domain was last updated
|
|
337
|
+
*/
|
|
338
|
+
updated_at?: string;
|
|
339
|
+
usage?: DomainUsage;
|
|
340
|
+
verification?: DomainVerification;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* The pagination information
|
|
344
|
+
*/
|
|
345
|
+
export interface DomainPagination {
|
|
346
|
+
/**
|
|
347
|
+
* The number of items per page
|
|
348
|
+
*/
|
|
349
|
+
limit?: number;
|
|
350
|
+
/**
|
|
351
|
+
* The page number
|
|
352
|
+
*/
|
|
353
|
+
page?: number;
|
|
354
|
+
/**
|
|
355
|
+
* The total number of items
|
|
356
|
+
*/
|
|
357
|
+
total?: number;
|
|
358
|
+
/**
|
|
359
|
+
* The number of pages
|
|
360
|
+
*/
|
|
361
|
+
total_pages?: number;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* The SSL information for the domain
|
|
365
|
+
*/
|
|
366
|
+
export interface DomainSSL {
|
|
367
|
+
/**
|
|
368
|
+
* Whether the SSL certificate is auto-renewed
|
|
369
|
+
*/
|
|
370
|
+
auto_renew?: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* The time when the SSL certificate expires; null before it is issued
|
|
373
|
+
*/
|
|
374
|
+
expires_at?: string;
|
|
375
|
+
/**
|
|
376
|
+
* The time when the SSL certificate was issued; null before it is
|
|
377
|
+
*/
|
|
378
|
+
issued_at?: string;
|
|
379
|
+
/**
|
|
380
|
+
* The issuer of the SSL certificate
|
|
381
|
+
*/
|
|
382
|
+
issuer?: string;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* The usage information for the domain
|
|
386
|
+
*/
|
|
387
|
+
export interface DomainUsage {
|
|
388
|
+
/**
|
|
389
|
+
* The number of apps using the domain
|
|
390
|
+
*/
|
|
391
|
+
apps_count?: number;
|
|
392
|
+
/**
|
|
393
|
+
* The number of service accounts using the domain
|
|
394
|
+
*/
|
|
395
|
+
service_accounts_count?: number;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* The verification information for the domain
|
|
399
|
+
*/
|
|
400
|
+
export interface DomainVerification {
|
|
401
|
+
/**
|
|
402
|
+
* The value that must appear as a TXT record at Target. Without this the customer can see which record
|
|
403
|
+
* to create but not what to put in it, so it is required for the verification flow to be completable
|
|
404
|
+
* at all.
|
|
405
|
+
*/
|
|
406
|
+
challenge?: string;
|
|
407
|
+
/**
|
|
408
|
+
* The time when the domain was last checked; null before the first check
|
|
409
|
+
*/
|
|
410
|
+
last_check_at?: string;
|
|
411
|
+
/**
|
|
412
|
+
* The error message from the last check
|
|
413
|
+
*/
|
|
414
|
+
last_check_error?: string;
|
|
415
|
+
/**
|
|
416
|
+
* The method used to verify the domain: "dns_txt" for a customer hostname, "platform" for one the
|
|
417
|
+
* platform itself owns
|
|
418
|
+
*/
|
|
419
|
+
method?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The DNS record name the proof is published at, e.g. _pontive-challenge.auth.acme.com
|
|
422
|
+
*/
|
|
423
|
+
target?: string;
|
|
424
|
+
/**
|
|
425
|
+
* The time when the domain was verified; null until it is
|
|
426
|
+
*/
|
|
427
|
+
verified_at?: string;
|
|
428
|
+
}
|
|
429
|
+
export interface Event {
|
|
430
|
+
created_at?: string;
|
|
431
|
+
/**
|
|
432
|
+
* Data is the event's payload: the workspace, project, instance or member object. Empty once the
|
|
433
|
+
* payload is purged by retention.
|
|
434
|
+
*/
|
|
435
|
+
data?: Record<string, unknown>;
|
|
436
|
+
id?: string;
|
|
437
|
+
object?: string;
|
|
438
|
+
source?: "system" | "custom" | "meta" | "test";
|
|
439
|
+
type?: string;
|
|
440
|
+
}
|
|
441
|
+
export interface EventType {
|
|
442
|
+
created_at?: string;
|
|
443
|
+
description?: string;
|
|
444
|
+
name?: string;
|
|
445
|
+
object?: string;
|
|
446
|
+
type?: "system" | "custom";
|
|
447
|
+
updated_at?: string;
|
|
448
|
+
}
|
|
449
|
+
export interface GetAccessResponse {
|
|
450
|
+
/**
|
|
451
|
+
* On a workspace, for a caller who does not manage its members: the ids of its projects whose members
|
|
452
|
+
* they manage (project:members.manage), directly or by inheritance. Absent for whoever manages the
|
|
453
|
+
* workspace's members, who manages every project's.
|
|
454
|
+
*/
|
|
455
|
+
managed_projects?: string[];
|
|
456
|
+
/**
|
|
457
|
+
* The object type
|
|
458
|
+
*/
|
|
459
|
+
object?: string;
|
|
460
|
+
/**
|
|
461
|
+
* The platform permission keys the caller holds, through any role — held on the object or inherited
|
|
462
|
+
* from above it
|
|
463
|
+
*/
|
|
464
|
+
permissions?: string[];
|
|
465
|
+
/**
|
|
466
|
+
* The roles the caller holds on the object itself; empty for someone reaching it by inheritance alone
|
|
467
|
+
*/
|
|
468
|
+
roles?: string[];
|
|
469
|
+
/**
|
|
470
|
+
* The staff role the caller reaches it with, if any enum:
|
|
471
|
+
* pontive_support,pontive_admin,pontive_release
|
|
472
|
+
*/
|
|
473
|
+
staff_role?: string;
|
|
474
|
+
}
|
|
475
|
+
export interface GetInvitationResponse {
|
|
476
|
+
/**
|
|
477
|
+
* The time when the invitation was created
|
|
478
|
+
*/
|
|
479
|
+
created_at?: string;
|
|
480
|
+
/**
|
|
481
|
+
* The time when the invitation expires
|
|
482
|
+
*/
|
|
483
|
+
expires_at?: string;
|
|
484
|
+
/**
|
|
485
|
+
* The unique identifier of the invitation
|
|
486
|
+
*/
|
|
487
|
+
id?: string;
|
|
488
|
+
/**
|
|
489
|
+
* The user who sent the invitation
|
|
490
|
+
*/
|
|
491
|
+
invited_by?: string;
|
|
492
|
+
/**
|
|
493
|
+
* The email address the invitation was sent to
|
|
494
|
+
*/
|
|
495
|
+
invitee_email?: string;
|
|
496
|
+
/**
|
|
497
|
+
* The time when the invitation was last sent
|
|
498
|
+
*/
|
|
499
|
+
last_sent_at?: string;
|
|
500
|
+
/**
|
|
501
|
+
* The message included with the invitation
|
|
502
|
+
*/
|
|
503
|
+
message?: string;
|
|
504
|
+
/**
|
|
505
|
+
* The object type
|
|
506
|
+
*/
|
|
507
|
+
object?: string;
|
|
508
|
+
project?: InvitationProject;
|
|
509
|
+
/**
|
|
510
|
+
* For an invitation to a project, the roles the invitee will hold on it. The invitee joins the
|
|
511
|
+
* workspace too, with no role there unless Roles names one. enum: admin,developer,viewer
|
|
512
|
+
*/
|
|
513
|
+
project_roles?: string[];
|
|
514
|
+
/**
|
|
515
|
+
* How many times the invitation has been resent
|
|
516
|
+
*/
|
|
517
|
+
resend_count?: number;
|
|
518
|
+
/**
|
|
519
|
+
* The roles the invitee will hold on the workspace once they accept enum: admin,billing,developer
|
|
520
|
+
*/
|
|
521
|
+
roles?: string[];
|
|
522
|
+
}
|
|
523
|
+
export interface GetMemberResponse {
|
|
524
|
+
/**
|
|
525
|
+
* The email address of the member
|
|
526
|
+
*/
|
|
527
|
+
email?: string;
|
|
528
|
+
/**
|
|
529
|
+
* Whether the member's email address has been verified
|
|
530
|
+
*/
|
|
531
|
+
email_verified?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* The family name of the member
|
|
534
|
+
*/
|
|
535
|
+
family_name?: string;
|
|
536
|
+
/**
|
|
537
|
+
* The given name of the member
|
|
538
|
+
*/
|
|
539
|
+
given_name?: string;
|
|
540
|
+
/**
|
|
541
|
+
* The time when the member joined the workspace
|
|
542
|
+
*/
|
|
543
|
+
joined_at?: string;
|
|
544
|
+
/**
|
|
545
|
+
* The time when the member was last active
|
|
546
|
+
*/
|
|
547
|
+
last_active_at?: string;
|
|
548
|
+
/**
|
|
549
|
+
* The display name of the member
|
|
550
|
+
*/
|
|
551
|
+
name?: string;
|
|
552
|
+
/**
|
|
553
|
+
* The object type
|
|
554
|
+
*/
|
|
555
|
+
object?: string;
|
|
556
|
+
/**
|
|
557
|
+
* The profile picture of the member
|
|
558
|
+
*/
|
|
559
|
+
picture?: string;
|
|
560
|
+
/**
|
|
561
|
+
* The roles the member holds on the workspace, project or instance the list is of. A workspace member
|
|
562
|
+
* holds owner, admin, billing or developer — or none, for someone added to one of its projects or
|
|
563
|
+
* instances alone. A project member holds admin, developer or viewer; an instance member admin,
|
|
564
|
+
* developer, support or viewer.
|
|
565
|
+
*/
|
|
566
|
+
roles?: string[];
|
|
567
|
+
/**
|
|
568
|
+
* The status of the member's account
|
|
569
|
+
*/
|
|
570
|
+
status?: string;
|
|
571
|
+
/**
|
|
572
|
+
* The unique identifier of the user
|
|
573
|
+
*/
|
|
574
|
+
user_id?: string;
|
|
575
|
+
}
|
|
576
|
+
export interface Grant {
|
|
577
|
+
/**
|
|
578
|
+
* The instance's environment enum: production,non_production
|
|
579
|
+
*/
|
|
580
|
+
environment?: string;
|
|
581
|
+
/**
|
|
582
|
+
* The instance granted on, for a grant on an instance
|
|
583
|
+
*/
|
|
584
|
+
instance_id?: string;
|
|
585
|
+
/**
|
|
586
|
+
* The instance's name
|
|
587
|
+
*/
|
|
588
|
+
instance_name?: string;
|
|
589
|
+
/**
|
|
590
|
+
* When the grant was made
|
|
591
|
+
*/
|
|
592
|
+
joined_at?: string;
|
|
593
|
+
/**
|
|
594
|
+
* The object type
|
|
595
|
+
*/
|
|
596
|
+
object?: string;
|
|
597
|
+
/**
|
|
598
|
+
* The project: the one granted on, or the instance's
|
|
599
|
+
*/
|
|
600
|
+
project_id?: string;
|
|
601
|
+
/**
|
|
602
|
+
* The project's name
|
|
603
|
+
*/
|
|
604
|
+
project_name?: string;
|
|
605
|
+
/**
|
|
606
|
+
* What the grant is on enum: project,instance
|
|
607
|
+
*/
|
|
608
|
+
resource_type?: string;
|
|
609
|
+
/**
|
|
610
|
+
* The roles held there
|
|
611
|
+
*/
|
|
612
|
+
roles?: string[];
|
|
613
|
+
}
|
|
614
|
+
export interface Instance {
|
|
615
|
+
/**
|
|
616
|
+
* All active auth-server domains, canonical first
|
|
617
|
+
*/
|
|
618
|
+
auth_server_domains?: string[];
|
|
619
|
+
capabilities?: Capabilities;
|
|
620
|
+
/**
|
|
621
|
+
* The time when the instance was created
|
|
622
|
+
*/
|
|
623
|
+
created_at?: string;
|
|
624
|
+
/**
|
|
625
|
+
* The time when the instance was deleted, if applicable
|
|
626
|
+
*/
|
|
627
|
+
deleted_at?: string;
|
|
628
|
+
/**
|
|
629
|
+
* The description of the instance
|
|
630
|
+
*/
|
|
631
|
+
description?: string;
|
|
632
|
+
/**
|
|
633
|
+
* The primary (canonical) auth domain
|
|
634
|
+
*/
|
|
635
|
+
domain?: string;
|
|
636
|
+
/**
|
|
637
|
+
* The effective status: the project's status overrides the instance's own while the project is not
|
|
638
|
+
* active
|
|
639
|
+
*/
|
|
640
|
+
effective_status?: "active" | "paused" | "deleted";
|
|
641
|
+
/**
|
|
642
|
+
* The environment of the instance, fixed at creation
|
|
643
|
+
*/
|
|
644
|
+
environment?: "production" | "non_production";
|
|
645
|
+
/**
|
|
646
|
+
* The unique identifier of the instance
|
|
647
|
+
*/
|
|
648
|
+
id?: string;
|
|
649
|
+
metadata?: Record<string, string>;
|
|
650
|
+
/**
|
|
651
|
+
* The name of the instance. Always "Production" for the production instance.
|
|
652
|
+
*/
|
|
653
|
+
name?: string;
|
|
654
|
+
/**
|
|
655
|
+
* The object type
|
|
656
|
+
*/
|
|
657
|
+
object?: string;
|
|
658
|
+
/**
|
|
659
|
+
* The time when the instance was paused, if applicable
|
|
660
|
+
*/
|
|
661
|
+
paused_at?: string;
|
|
662
|
+
/**
|
|
663
|
+
* The ID of the project the instance belongs to
|
|
664
|
+
*/
|
|
665
|
+
project_id?: string;
|
|
666
|
+
/**
|
|
667
|
+
* When a deleted instance's restore window ends, deleted_at plus 30 days: it can be restored until
|
|
668
|
+
* then, and is purged after (route review D30). Null unless the instance's own status is is deleted.
|
|
669
|
+
* An instance of a deleted project goes with it, at the project's purge_scheduled_at.
|
|
670
|
+
*/
|
|
671
|
+
purge_scheduled_at?: string;
|
|
672
|
+
/**
|
|
673
|
+
* The region, inherited from the project
|
|
674
|
+
*/
|
|
675
|
+
region?: "us" | "eu" | "au";
|
|
676
|
+
/**
|
|
677
|
+
* The ID of the shard the instance is deployed on
|
|
678
|
+
*/
|
|
679
|
+
shard_id?: string;
|
|
680
|
+
/**
|
|
681
|
+
* The slug of the instance. Always "production" for the production instance. Immutable.
|
|
682
|
+
*/
|
|
683
|
+
slug?: string;
|
|
684
|
+
/**
|
|
685
|
+
* The instance's own status
|
|
686
|
+
*/
|
|
687
|
+
status?: "active" | "paused" | "deleted";
|
|
688
|
+
/**
|
|
689
|
+
* The read-only tenancy mode, inherited from the project
|
|
690
|
+
*/
|
|
691
|
+
tenancy_mode?: "b2b" | "b2c";
|
|
692
|
+
/**
|
|
693
|
+
* The time when the instance was last updated
|
|
694
|
+
*/
|
|
695
|
+
updated_at?: string;
|
|
696
|
+
/**
|
|
697
|
+
* The ID of the workspace that owns the project
|
|
698
|
+
*/
|
|
699
|
+
workspace_id?: string;
|
|
700
|
+
}
|
|
701
|
+
export interface InstanceLine {
|
|
702
|
+
custom_domains?: number;
|
|
703
|
+
environment?: string;
|
|
704
|
+
fga?: boolean;
|
|
705
|
+
instance_id?: string;
|
|
706
|
+
meters?: Record<string, number>;
|
|
707
|
+
name?: string;
|
|
708
|
+
reported_at?: string;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Pagination information
|
|
712
|
+
*/
|
|
713
|
+
export interface InstancePagination {
|
|
714
|
+
/**
|
|
715
|
+
* Number of records per page
|
|
716
|
+
*/
|
|
717
|
+
limit?: number;
|
|
718
|
+
/**
|
|
719
|
+
* Current page number
|
|
720
|
+
*/
|
|
721
|
+
page?: number;
|
|
722
|
+
/**
|
|
723
|
+
* Total number of records
|
|
724
|
+
*/
|
|
725
|
+
total?: number;
|
|
726
|
+
/**
|
|
727
|
+
* Total number of pages
|
|
728
|
+
*/
|
|
729
|
+
total_pages?: number;
|
|
730
|
+
}
|
|
731
|
+
export interface InstanceSummary {
|
|
732
|
+
/**
|
|
733
|
+
* The environment of the instance
|
|
734
|
+
*/
|
|
735
|
+
environment?: "production" | "non_production";
|
|
736
|
+
/**
|
|
737
|
+
* The unique identifier of the instance
|
|
738
|
+
*/
|
|
739
|
+
id?: string;
|
|
740
|
+
/**
|
|
741
|
+
* The name of the instance
|
|
742
|
+
*/
|
|
743
|
+
name?: string;
|
|
744
|
+
/**
|
|
745
|
+
* The slug of the instance
|
|
746
|
+
*/
|
|
747
|
+
slug?: string;
|
|
748
|
+
/**
|
|
749
|
+
* The effective status of the instance
|
|
750
|
+
*/
|
|
751
|
+
status?: "active" | "paused" | "deleted";
|
|
752
|
+
}
|
|
753
|
+
export interface Invitation {
|
|
754
|
+
/**
|
|
755
|
+
* The time when the invitation was created
|
|
756
|
+
*/
|
|
757
|
+
created_at?: string;
|
|
758
|
+
/**
|
|
759
|
+
* The time when the invitation expires
|
|
760
|
+
*/
|
|
761
|
+
expires_at?: string;
|
|
762
|
+
/**
|
|
763
|
+
* The unique identifier of the invitation
|
|
764
|
+
*/
|
|
765
|
+
id?: string;
|
|
766
|
+
/**
|
|
767
|
+
* The user who sent the invitation
|
|
768
|
+
*/
|
|
769
|
+
invited_by?: string;
|
|
770
|
+
/**
|
|
771
|
+
* The email address the invitation was sent to
|
|
772
|
+
*/
|
|
773
|
+
invitee_email?: string;
|
|
774
|
+
/**
|
|
775
|
+
* The time when the invitation was last sent
|
|
776
|
+
*/
|
|
777
|
+
last_sent_at?: string;
|
|
778
|
+
/**
|
|
779
|
+
* The message included with the invitation
|
|
780
|
+
*/
|
|
781
|
+
message?: string;
|
|
782
|
+
/**
|
|
783
|
+
* The object type
|
|
784
|
+
*/
|
|
785
|
+
object?: string;
|
|
786
|
+
project?: InvitationProject;
|
|
787
|
+
/**
|
|
788
|
+
* For an invitation to a project, the roles the invitee will hold on it. The invitee joins the
|
|
789
|
+
* workspace too, with no role there unless Roles names one. enum: admin,developer,viewer
|
|
790
|
+
*/
|
|
791
|
+
project_roles?: string[];
|
|
792
|
+
/**
|
|
793
|
+
* How many times the invitation has been resent
|
|
794
|
+
*/
|
|
795
|
+
resend_count?: number;
|
|
796
|
+
/**
|
|
797
|
+
* The roles the invitee will hold on the workspace once they accept enum: admin,billing,developer
|
|
798
|
+
*/
|
|
799
|
+
roles?: string[];
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* For an invitation to a project, the project; absent on one to the workspace alone.
|
|
803
|
+
*/
|
|
804
|
+
export interface InvitationProject {
|
|
805
|
+
/**
|
|
806
|
+
* The ID of the project
|
|
807
|
+
*/
|
|
808
|
+
id?: string;
|
|
809
|
+
/**
|
|
810
|
+
* The name of the project
|
|
811
|
+
*/
|
|
812
|
+
name?: string;
|
|
813
|
+
}
|
|
814
|
+
export interface InviteMembersRequest {
|
|
815
|
+
/**
|
|
816
|
+
* The email addresses to invite required: true
|
|
817
|
+
*/
|
|
818
|
+
emails?: string[];
|
|
819
|
+
/**
|
|
820
|
+
* An optional message included in the invitation email
|
|
821
|
+
*/
|
|
822
|
+
message?: string;
|
|
823
|
+
/**
|
|
824
|
+
* The roles the invitees will hold once they accept. `owner` cannot be granted by invitation —
|
|
825
|
+
* ownership moves through transfer-ownership. enum: admin,billing,developer
|
|
826
|
+
*/
|
|
827
|
+
roles?: string[];
|
|
828
|
+
}
|
|
829
|
+
export interface InviteMembersResponse {
|
|
830
|
+
/**
|
|
831
|
+
* The invitations sent: new ones, and live ones an address already held, reissued with this request's
|
|
832
|
+
* roles and a new link (resend_count > 0)
|
|
833
|
+
*/
|
|
834
|
+
data?: Invitation[];
|
|
835
|
+
/**
|
|
836
|
+
* The object type
|
|
837
|
+
*/
|
|
838
|
+
object?: string;
|
|
839
|
+
/**
|
|
840
|
+
* The addresses that got no invitation, and why. Skipping is not an error: a request whose every
|
|
841
|
+
* address was skipped still succeeds.
|
|
842
|
+
*/
|
|
843
|
+
skipped?: SkippedInvitee[];
|
|
844
|
+
}
|
|
845
|
+
export interface InviteProjectMembersRequest {
|
|
846
|
+
/**
|
|
847
|
+
* The email addresses to invite required: true
|
|
848
|
+
*/
|
|
849
|
+
emails?: string[];
|
|
850
|
+
/**
|
|
851
|
+
* An optional message included in the invitation email
|
|
852
|
+
*/
|
|
853
|
+
message?: string;
|
|
854
|
+
/**
|
|
855
|
+
* The roles the invitees will hold on the project once they accept. They join the project's workspace
|
|
856
|
+
* too, with no role there. required: true enum: admin,developer,viewer
|
|
857
|
+
*/
|
|
858
|
+
roles?: string[];
|
|
859
|
+
}
|
|
860
|
+
export interface ListDeliveriesResponse {
|
|
861
|
+
data?: Delivery[];
|
|
862
|
+
next_cursor?: string;
|
|
863
|
+
object?: string;
|
|
864
|
+
}
|
|
865
|
+
export interface ListDomainsResponse {
|
|
866
|
+
/**
|
|
867
|
+
* The list of domains
|
|
868
|
+
*/
|
|
869
|
+
data?: Domain[];
|
|
870
|
+
/**
|
|
871
|
+
* The object type
|
|
872
|
+
*/
|
|
873
|
+
object?: string;
|
|
874
|
+
pagination?: DomainPagination;
|
|
875
|
+
}
|
|
876
|
+
export interface ListEventTypesResponse {
|
|
877
|
+
data?: EventType[];
|
|
878
|
+
object?: string;
|
|
879
|
+
pagination?: PagingPagination;
|
|
880
|
+
}
|
|
881
|
+
export interface ListEventsResponse {
|
|
882
|
+
data?: Event[];
|
|
883
|
+
next_cursor?: string;
|
|
884
|
+
object?: string;
|
|
885
|
+
}
|
|
886
|
+
export interface ListGrantsResponse {
|
|
887
|
+
/**
|
|
888
|
+
* The grants, projects first, then instances, each by name
|
|
889
|
+
*/
|
|
890
|
+
data?: Grant[];
|
|
891
|
+
/**
|
|
892
|
+
* The object type
|
|
893
|
+
*/
|
|
894
|
+
object?: string;
|
|
895
|
+
pagination?: PagingPagination;
|
|
896
|
+
}
|
|
897
|
+
export interface ListInstancesResponse {
|
|
898
|
+
/**
|
|
899
|
+
* List of instances
|
|
900
|
+
*/
|
|
901
|
+
data?: Instance[];
|
|
902
|
+
/**
|
|
903
|
+
* The object type
|
|
904
|
+
*/
|
|
905
|
+
object?: string;
|
|
906
|
+
pagination?: InstancePagination;
|
|
907
|
+
}
|
|
908
|
+
export interface ListInvitationsResponse {
|
|
909
|
+
/**
|
|
910
|
+
* List of invitations
|
|
911
|
+
*/
|
|
912
|
+
data?: Invitation[];
|
|
913
|
+
/**
|
|
914
|
+
* The object type
|
|
915
|
+
*/
|
|
916
|
+
object?: string;
|
|
917
|
+
pagination?: MemberPagination;
|
|
918
|
+
}
|
|
919
|
+
export interface ListMembersResponse {
|
|
920
|
+
/**
|
|
921
|
+
* List of members
|
|
922
|
+
*/
|
|
923
|
+
data?: Member[];
|
|
924
|
+
/**
|
|
925
|
+
* The object type
|
|
926
|
+
*/
|
|
927
|
+
object?: string;
|
|
928
|
+
pagination?: MemberPagination;
|
|
929
|
+
}
|
|
930
|
+
export interface ListPlansResponse {
|
|
931
|
+
data?: Plan[];
|
|
932
|
+
/**
|
|
933
|
+
* The object type: list
|
|
934
|
+
*/
|
|
935
|
+
object?: string;
|
|
936
|
+
pagination?: PagingPagination;
|
|
937
|
+
}
|
|
938
|
+
export interface ListProjectsResponse {
|
|
939
|
+
/**
|
|
940
|
+
* List of projects
|
|
941
|
+
*/
|
|
942
|
+
data?: Project[];
|
|
943
|
+
/**
|
|
944
|
+
* The object type
|
|
945
|
+
*/
|
|
946
|
+
object?: string;
|
|
947
|
+
pagination?: ProjectPagination;
|
|
948
|
+
}
|
|
949
|
+
export interface ListSecretKeysResponse {
|
|
950
|
+
/**
|
|
951
|
+
* The keys
|
|
952
|
+
*/
|
|
953
|
+
data?: SecretKey[];
|
|
954
|
+
/**
|
|
955
|
+
* Always "list"
|
|
956
|
+
*/
|
|
957
|
+
object?: string;
|
|
958
|
+
pagination?: SecretkeyPagination;
|
|
959
|
+
}
|
|
960
|
+
export interface ListSubscriptionsResponse {
|
|
961
|
+
data?: Subscription[];
|
|
962
|
+
object?: string;
|
|
963
|
+
pagination?: PagingPagination;
|
|
964
|
+
}
|
|
965
|
+
export interface ListWorkspacesResponse {
|
|
966
|
+
/**
|
|
967
|
+
* List of workspaces
|
|
968
|
+
*/
|
|
969
|
+
data?: Workspace[];
|
|
970
|
+
/**
|
|
971
|
+
* The object type
|
|
972
|
+
*/
|
|
973
|
+
object?: string;
|
|
974
|
+
pagination?: WorkspacePagination;
|
|
975
|
+
}
|
|
976
|
+
export interface Member {
|
|
977
|
+
/**
|
|
978
|
+
* The email address of the member
|
|
979
|
+
*/
|
|
980
|
+
email?: string;
|
|
981
|
+
/**
|
|
982
|
+
* Whether the member's email address has been verified
|
|
983
|
+
*/
|
|
984
|
+
email_verified?: boolean;
|
|
985
|
+
/**
|
|
986
|
+
* The family name of the member
|
|
987
|
+
*/
|
|
988
|
+
family_name?: string;
|
|
989
|
+
/**
|
|
990
|
+
* The given name of the member
|
|
991
|
+
*/
|
|
992
|
+
given_name?: string;
|
|
993
|
+
/**
|
|
994
|
+
* The time when the member joined the workspace
|
|
995
|
+
*/
|
|
996
|
+
joined_at?: string;
|
|
997
|
+
/**
|
|
998
|
+
* The time when the member was last active
|
|
999
|
+
*/
|
|
1000
|
+
last_active_at?: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* The display name of the member
|
|
1003
|
+
*/
|
|
1004
|
+
name?: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* The object type
|
|
1007
|
+
*/
|
|
1008
|
+
object?: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* The profile picture of the member
|
|
1011
|
+
*/
|
|
1012
|
+
picture?: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* The roles the member holds on the workspace, project or instance the list is of. A workspace member
|
|
1015
|
+
* holds owner, admin, billing or developer — or none, for someone added to one of its projects or
|
|
1016
|
+
* instances alone. A project member holds admin, developer or viewer; an instance member admin,
|
|
1017
|
+
* developer, support or viewer.
|
|
1018
|
+
*/
|
|
1019
|
+
roles?: string[];
|
|
1020
|
+
/**
|
|
1021
|
+
* The status of the member's account
|
|
1022
|
+
*/
|
|
1023
|
+
status?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* The unique identifier of the user
|
|
1026
|
+
*/
|
|
1027
|
+
user_id?: string;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Pagination information
|
|
1031
|
+
*/
|
|
1032
|
+
export interface MemberPagination {
|
|
1033
|
+
/**
|
|
1034
|
+
* Number of records per page
|
|
1035
|
+
*/
|
|
1036
|
+
limit?: number;
|
|
1037
|
+
/**
|
|
1038
|
+
* Current page number
|
|
1039
|
+
*/
|
|
1040
|
+
page?: number;
|
|
1041
|
+
/**
|
|
1042
|
+
* Total number of records
|
|
1043
|
+
*/
|
|
1044
|
+
total?: number;
|
|
1045
|
+
/**
|
|
1046
|
+
* Total number of pages
|
|
1047
|
+
*/
|
|
1048
|
+
total_pages?: number;
|
|
1049
|
+
}
|
|
1050
|
+
export interface MeterPrice {
|
|
1051
|
+
/**
|
|
1052
|
+
* A hard limit (quota_exceeded); null where there is none.
|
|
1053
|
+
*/
|
|
1054
|
+
cap?: number;
|
|
1055
|
+
/**
|
|
1056
|
+
* The allowance before the meter bills; null where it is not billed.
|
|
1057
|
+
*/
|
|
1058
|
+
included?: number;
|
|
1059
|
+
/**
|
|
1060
|
+
* The unit the meter bills in beyond the allowance.
|
|
1061
|
+
*/
|
|
1062
|
+
per?: number;
|
|
1063
|
+
}
|
|
1064
|
+
export interface MeterUsage {
|
|
1065
|
+
by_project?: Record<string, number>;
|
|
1066
|
+
cap?: number;
|
|
1067
|
+
included?: number;
|
|
1068
|
+
usage?: number;
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Pagination information
|
|
1072
|
+
*/
|
|
1073
|
+
export interface PagingPagination {
|
|
1074
|
+
/**
|
|
1075
|
+
* The page size
|
|
1076
|
+
*/
|
|
1077
|
+
limit?: number;
|
|
1078
|
+
/**
|
|
1079
|
+
* The page number, from 1
|
|
1080
|
+
*/
|
|
1081
|
+
page?: number;
|
|
1082
|
+
/**
|
|
1083
|
+
* The number of items in the whole list
|
|
1084
|
+
*/
|
|
1085
|
+
total?: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* The number of pages
|
|
1088
|
+
*/
|
|
1089
|
+
total_pages?: number;
|
|
1090
|
+
}
|
|
1091
|
+
export interface Period {
|
|
1092
|
+
end?: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* Source is "calendar" (the UTC calendar month) or "contract" (the usage period of the workspace's
|
|
1095
|
+
* contract on the directory instance, SourceContract).
|
|
1096
|
+
*/
|
|
1097
|
+
source?: string;
|
|
1098
|
+
start?: string;
|
|
1099
|
+
}
|
|
1100
|
+
export interface Plan {
|
|
1101
|
+
/**
|
|
1102
|
+
* How long the workspace's instances keep their audit log's standard entries and their request log, in
|
|
1103
|
+
* hours.
|
|
1104
|
+
*/
|
|
1105
|
+
audit_log_retention_hours?: number;
|
|
1106
|
+
base?: Base;
|
|
1107
|
+
description?: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* What the pricing table says about the plan beyond its numbers, written as what the plan adds to the
|
|
1110
|
+
* one below it.
|
|
1111
|
+
*/
|
|
1112
|
+
highlights?: string[];
|
|
1113
|
+
id?: string;
|
|
1114
|
+
/**
|
|
1115
|
+
* Projects and seats the base fee covers.
|
|
1116
|
+
*/
|
|
1117
|
+
included_projects?: number;
|
|
1118
|
+
included_seats?: number;
|
|
1119
|
+
/**
|
|
1120
|
+
* Bounds each project's non-production instances; null is unlimited.
|
|
1121
|
+
*/
|
|
1122
|
+
max_non_prod_instances?: number;
|
|
1123
|
+
/**
|
|
1124
|
+
* Modules enable-able in any instance of the workspace.
|
|
1125
|
+
*/
|
|
1126
|
+
modules_available?: string[];
|
|
1127
|
+
/**
|
|
1128
|
+
* Modules enable-able in non-production instances only.
|
|
1129
|
+
*/
|
|
1130
|
+
modules_non_production?: string[];
|
|
1131
|
+
name?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Whether a workspace may move to the plan. A retired plan keeps serving the workspaces on it.
|
|
1134
|
+
*/
|
|
1135
|
+
offered?: boolean;
|
|
1136
|
+
/**
|
|
1137
|
+
* Orders plans by price; a move to a lower rank is a downgrade.
|
|
1138
|
+
*/
|
|
1139
|
+
rank?: number;
|
|
1140
|
+
request_log_retention_hours?: number;
|
|
1141
|
+
/**
|
|
1142
|
+
* Each meter's allowance or cap, by meter key, pooled across the workspace's instances. A meter absent
|
|
1143
|
+
* is measured and shown, never gated.
|
|
1144
|
+
*/
|
|
1145
|
+
usage?: Record<string, MeterPrice>;
|
|
1146
|
+
}
|
|
1147
|
+
export interface Project {
|
|
1148
|
+
charges?: ProjectCharges;
|
|
1149
|
+
compliance_tags?: ComplianceTags;
|
|
1150
|
+
/**
|
|
1151
|
+
* The time when the project was created
|
|
1152
|
+
*/
|
|
1153
|
+
created_at?: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* The time when the project was deleted, if applicable
|
|
1156
|
+
*/
|
|
1157
|
+
deleted_at?: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* The description of the project
|
|
1160
|
+
*/
|
|
1161
|
+
description?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* The unique identifier of the project
|
|
1164
|
+
*/
|
|
1165
|
+
id?: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Read-only summary of the project's instances, oldest first
|
|
1168
|
+
*/
|
|
1169
|
+
instances?: InstanceSummary[];
|
|
1170
|
+
metadata?: Record<string, string>;
|
|
1171
|
+
/**
|
|
1172
|
+
* The name of the project
|
|
1173
|
+
*/
|
|
1174
|
+
name?: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* The object type
|
|
1177
|
+
*/
|
|
1178
|
+
object?: string;
|
|
1179
|
+
/**
|
|
1180
|
+
* The time when the project was paused, if applicable
|
|
1181
|
+
*/
|
|
1182
|
+
paused_at?: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* When a deleted project's restore window ends, deleted_at plus 30 days: it can be restored until
|
|
1185
|
+
* then, and is purged after (route review D30). Null unless the project is deleted.
|
|
1186
|
+
*/
|
|
1187
|
+
purge_scheduled_at?: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* The region where the project and all its instances are deployed
|
|
1190
|
+
*/
|
|
1191
|
+
region?: "us" | "eu" | "au";
|
|
1192
|
+
/**
|
|
1193
|
+
* The slug of the project. Client-supplied, permanent, globally unique and never reused.
|
|
1194
|
+
*/
|
|
1195
|
+
slug?: string;
|
|
1196
|
+
/**
|
|
1197
|
+
* The current status of the project
|
|
1198
|
+
*/
|
|
1199
|
+
status?: "active" | "paused" | "deleted";
|
|
1200
|
+
/**
|
|
1201
|
+
* The project's tenancy mode, chosen at creation and immutable. Every instance inherits it.
|
|
1202
|
+
*/
|
|
1203
|
+
tenancy_mode?: "b2b" | "b2c";
|
|
1204
|
+
/**
|
|
1205
|
+
* The time when the project was last updated
|
|
1206
|
+
*/
|
|
1207
|
+
updated_at?: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* The ID of the workspace that owns this project
|
|
1210
|
+
*/
|
|
1211
|
+
workspace_id?: string;
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* What the project started billing per month, on the project a create returns and nowhere else:
|
|
1215
|
+
* nothing on Free or in one of the plan's included slots; else the additional-project fee and, on a
|
|
1216
|
+
* b2b project, the uplift (pontive-spec 10). Absent where the installation bills nothing.
|
|
1217
|
+
*/
|
|
1218
|
+
export interface ProjectCharges {
|
|
1219
|
+
/**
|
|
1220
|
+
* Whether the project took one of the plan's included slots.
|
|
1221
|
+
*/
|
|
1222
|
+
included?: boolean;
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Projects: the plan's included slots, the live ones, those beyond the slots, the b2b ones, the paused
|
|
1226
|
+
* ones.
|
|
1227
|
+
*/
|
|
1228
|
+
export interface ProjectCounts {
|
|
1229
|
+
additional?: number;
|
|
1230
|
+
b2b?: number;
|
|
1231
|
+
included?: number;
|
|
1232
|
+
live?: number;
|
|
1233
|
+
paused?: number;
|
|
1234
|
+
}
|
|
1235
|
+
export interface ProjectInvitationRequest {
|
|
1236
|
+
/**
|
|
1237
|
+
* An optional message replacing the original (resend)
|
|
1238
|
+
*/
|
|
1239
|
+
message?: string;
|
|
1240
|
+
}
|
|
1241
|
+
export interface ProjectLine {
|
|
1242
|
+
included?: boolean;
|
|
1243
|
+
instances?: InstanceLine[];
|
|
1244
|
+
name?: string;
|
|
1245
|
+
project_id?: string;
|
|
1246
|
+
status?: string;
|
|
1247
|
+
tenancy_mode?: string;
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* Pagination information
|
|
1251
|
+
*/
|
|
1252
|
+
export interface ProjectPagination {
|
|
1253
|
+
/**
|
|
1254
|
+
* Number of records per page
|
|
1255
|
+
*/
|
|
1256
|
+
limit?: number;
|
|
1257
|
+
/**
|
|
1258
|
+
* Current page number
|
|
1259
|
+
*/
|
|
1260
|
+
page?: number;
|
|
1261
|
+
/**
|
|
1262
|
+
* Total number of records
|
|
1263
|
+
*/
|
|
1264
|
+
total?: number;
|
|
1265
|
+
/**
|
|
1266
|
+
* Total number of pages
|
|
1267
|
+
*/
|
|
1268
|
+
total_pages?: number;
|
|
1269
|
+
}
|
|
1270
|
+
export interface ResendInvitationRequest {
|
|
1271
|
+
/**
|
|
1272
|
+
* An optional message replacing the original
|
|
1273
|
+
*/
|
|
1274
|
+
message?: string;
|
|
1275
|
+
}
|
|
1276
|
+
export interface RotateSecretKeyRequest {
|
|
1277
|
+
/**
|
|
1278
|
+
* How long the current value keeps working, in seconds: 0 (ends it now) to 604800 (7 days). Defaults
|
|
1279
|
+
* to 86400 (24 hours).
|
|
1280
|
+
*/
|
|
1281
|
+
expire_previous_in?: number;
|
|
1282
|
+
}
|
|
1283
|
+
export interface RotateSecretRequest {
|
|
1284
|
+
/**
|
|
1285
|
+
* ExpirePreviousIn is how long the previous signing secret keeps signing beside the new one, in
|
|
1286
|
+
* seconds: 0 to 604800; absent is 86400, and 0 ends it now.
|
|
1287
|
+
*/
|
|
1288
|
+
expire_previous_in?: number;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* Seats: the members, and the plan's included seats. A pending invitation holds no seat.
|
|
1292
|
+
*/
|
|
1293
|
+
export interface SeatCounts {
|
|
1294
|
+
current?: number;
|
|
1295
|
+
included?: number;
|
|
1296
|
+
}
|
|
1297
|
+
export interface SecretKey {
|
|
1298
|
+
created_at?: string;
|
|
1299
|
+
created_by?: SecretKeyCreator;
|
|
1300
|
+
/**
|
|
1301
|
+
* What the key is for
|
|
1302
|
+
*/
|
|
1303
|
+
description?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* The instance's environment
|
|
1306
|
+
*/
|
|
1307
|
+
environment?: "production" | "non_production";
|
|
1308
|
+
/**
|
|
1309
|
+
* When the key stops working; null for never
|
|
1310
|
+
*/
|
|
1311
|
+
expires_at?: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* The key's id; safe to log
|
|
1314
|
+
*/
|
|
1315
|
+
id?: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* The only instance the key works on
|
|
1318
|
+
*/
|
|
1319
|
+
instance_id?: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* Updated at most once a minute
|
|
1322
|
+
*/
|
|
1323
|
+
last_used_at?: string;
|
|
1324
|
+
leak?: SecretKeyLeak;
|
|
1325
|
+
/**
|
|
1326
|
+
* Names the caller
|
|
1327
|
+
*/
|
|
1328
|
+
name?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* Always "secret_key"
|
|
1331
|
+
*/
|
|
1332
|
+
object?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* The value, masked
|
|
1335
|
+
*/
|
|
1336
|
+
preview?: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* When the rolled-out value stops working
|
|
1339
|
+
*/
|
|
1340
|
+
previous_expires_at?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* The rolled-out value's preview while it still works
|
|
1343
|
+
*/
|
|
1344
|
+
previous_preview?: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* The project's region
|
|
1347
|
+
*/
|
|
1348
|
+
region?: string;
|
|
1349
|
+
revoked_at?: string;
|
|
1350
|
+
/**
|
|
1351
|
+
* The key's authority on its instance
|
|
1352
|
+
*/
|
|
1353
|
+
role?: "admin" | "developer" | "support" | "viewer";
|
|
1354
|
+
/**
|
|
1355
|
+
* active, revoked or expired
|
|
1356
|
+
*/
|
|
1357
|
+
status?: "active" | "revoked" | "expired";
|
|
1358
|
+
updated_at?: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* The full value: on create and roll answers only. It is never shown again.
|
|
1361
|
+
*/
|
|
1362
|
+
value?: string;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Who created it
|
|
1366
|
+
*/
|
|
1367
|
+
export interface SecretKeyCreator {
|
|
1368
|
+
email?: string;
|
|
1369
|
+
id?: string;
|
|
1370
|
+
name?: string;
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* Set while a leaked value still works
|
|
1374
|
+
*/
|
|
1375
|
+
export interface SecretKeyLeak {
|
|
1376
|
+
/**
|
|
1377
|
+
* When it was found
|
|
1378
|
+
*/
|
|
1379
|
+
detected_at?: string;
|
|
1380
|
+
/**
|
|
1381
|
+
* Where it was found: {"url": …} for GitHub, {"origin": …} for a browser
|
|
1382
|
+
*/
|
|
1383
|
+
evidence?: Record<string, string>;
|
|
1384
|
+
/**
|
|
1385
|
+
* github_secret_scanning or browser_use
|
|
1386
|
+
*/
|
|
1387
|
+
source?: "github_secret_scanning" | "browser_use";
|
|
1388
|
+
/**
|
|
1389
|
+
* Which value leaked: the current one's or the previous one's preview
|
|
1390
|
+
*/
|
|
1391
|
+
value_preview?: string;
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Pagination information
|
|
1395
|
+
*/
|
|
1396
|
+
export interface SecretkeyPagination {
|
|
1397
|
+
/**
|
|
1398
|
+
* Number of records per page
|
|
1399
|
+
*/
|
|
1400
|
+
limit?: number;
|
|
1401
|
+
/**
|
|
1402
|
+
* Current page number
|
|
1403
|
+
*/
|
|
1404
|
+
page?: number;
|
|
1405
|
+
/**
|
|
1406
|
+
* Total number of records
|
|
1407
|
+
*/
|
|
1408
|
+
total?: number;
|
|
1409
|
+
/**
|
|
1410
|
+
* Total number of pages
|
|
1411
|
+
*/
|
|
1412
|
+
total_pages?: number;
|
|
1413
|
+
}
|
|
1414
|
+
export interface SkippedInvitee {
|
|
1415
|
+
email?: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* already_member: a member already. An invite does not change a member's roles.
|
|
1418
|
+
*/
|
|
1419
|
+
reason?: "already_member";
|
|
1420
|
+
}
|
|
1421
|
+
export interface Subscription {
|
|
1422
|
+
created_at?: string;
|
|
1423
|
+
description?: string;
|
|
1424
|
+
event_types?: string[];
|
|
1425
|
+
headers?: Record<string, string>;
|
|
1426
|
+
id?: string;
|
|
1427
|
+
last_failure?: SubscriptionLastFailure;
|
|
1428
|
+
metadata?: Record<string, string>;
|
|
1429
|
+
object?: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* Secret is the plaintext Standard Webhooks signing secret, whsec_…: present only in the create and
|
|
1432
|
+
* rotate-secret answers, never readable again.
|
|
1433
|
+
*/
|
|
1434
|
+
secret?: string;
|
|
1435
|
+
secret_preview?: string;
|
|
1436
|
+
stats?: SubscriptionStats;
|
|
1437
|
+
status?: "active" | "paused" | "failing" | "disabled";
|
|
1438
|
+
updated_at?: string;
|
|
1439
|
+
url?: string;
|
|
1440
|
+
}
|
|
1441
|
+
export interface SubscriptionLastFailure {
|
|
1442
|
+
error?: string;
|
|
1443
|
+
response_code?: number;
|
|
1444
|
+
timestamp?: string;
|
|
1445
|
+
}
|
|
1446
|
+
export interface SubscriptionStats {
|
|
1447
|
+
last_24h?: SubscriptionStatsLast24h;
|
|
1448
|
+
}
|
|
1449
|
+
export interface SubscriptionStatsLast24h {
|
|
1450
|
+
delivered?: number;
|
|
1451
|
+
failed?: number;
|
|
1452
|
+
}
|
|
1453
|
+
export interface UpdateInstanceMemberRolesRequest {
|
|
1454
|
+
/**
|
|
1455
|
+
* The roles to hold on the instance, replacing the member's current ones required: true enum:
|
|
1456
|
+
* admin,developer,support,viewer
|
|
1457
|
+
*/
|
|
1458
|
+
roles?: string[];
|
|
1459
|
+
}
|
|
1460
|
+
export interface UpdateInstanceRequest {
|
|
1461
|
+
/**
|
|
1462
|
+
* The new description
|
|
1463
|
+
*/
|
|
1464
|
+
description?: string;
|
|
1465
|
+
metadata?: Record<string, string>;
|
|
1466
|
+
/**
|
|
1467
|
+
* The new name. non_production only; renaming the production instance returns
|
|
1468
|
+
* instance_name_not_settable.
|
|
1469
|
+
*/
|
|
1470
|
+
name?: string;
|
|
1471
|
+
}
|
|
1472
|
+
export interface UpdateMemberRolesRequest {
|
|
1473
|
+
/**
|
|
1474
|
+
* The roles to grant, replacing the member's current ones. An empty list leaves them a member holding
|
|
1475
|
+
* no role: belonging to the workspace for the sake of what they hold on its projects and instances.
|
|
1476
|
+
* required: true enum: owner,admin,billing,developer
|
|
1477
|
+
*/
|
|
1478
|
+
roles?: string[];
|
|
1479
|
+
}
|
|
1480
|
+
export interface UpdateProjectMemberRolesRequest {
|
|
1481
|
+
/**
|
|
1482
|
+
* The roles to hold on the project, replacing the member's current ones required: true enum:
|
|
1483
|
+
* admin,developer,viewer
|
|
1484
|
+
*/
|
|
1485
|
+
roles?: string[];
|
|
1486
|
+
}
|
|
1487
|
+
export interface UpdateProjectRequest {
|
|
1488
|
+
/**
|
|
1489
|
+
* The new description for the project
|
|
1490
|
+
*/
|
|
1491
|
+
description?: string;
|
|
1492
|
+
metadata?: Record<string, string>;
|
|
1493
|
+
/**
|
|
1494
|
+
* The new name for the project minLength: 1 maxLength: 255
|
|
1495
|
+
*/
|
|
1496
|
+
name?: string;
|
|
1497
|
+
}
|
|
1498
|
+
export interface UpdateSecretKeyRequest {
|
|
1499
|
+
/**
|
|
1500
|
+
* A new description; null clears it, and leaving it out keeps it
|
|
1501
|
+
*/
|
|
1502
|
+
description?: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* A new name (1–100 characters)
|
|
1505
|
+
*/
|
|
1506
|
+
name?: string;
|
|
1507
|
+
/**
|
|
1508
|
+
* A new role enum: admin,developer,support,viewer
|
|
1509
|
+
*/
|
|
1510
|
+
role?: "admin" | "developer" | "support" | "viewer";
|
|
1511
|
+
}
|
|
1512
|
+
export interface UpdateSubscriptionRequest {
|
|
1513
|
+
description?: string;
|
|
1514
|
+
event_types?: string[];
|
|
1515
|
+
headers?: Record<string, string>;
|
|
1516
|
+
metadata?: Record<string, string>;
|
|
1517
|
+
url?: string;
|
|
1518
|
+
}
|
|
1519
|
+
export interface UpdateWorkspaceRequest {
|
|
1520
|
+
billing_contact?: BillingContact;
|
|
1521
|
+
/**
|
|
1522
|
+
* The new description for the workspace
|
|
1523
|
+
*/
|
|
1524
|
+
description?: string;
|
|
1525
|
+
metadata?: Record<string, string>;
|
|
1526
|
+
/**
|
|
1527
|
+
* The new name for the workspace minLength: 1 maxLength: 255
|
|
1528
|
+
*/
|
|
1529
|
+
name?: string;
|
|
1530
|
+
}
|
|
1531
|
+
export interface VerifyDomainResponse {
|
|
1532
|
+
domain?: Domain;
|
|
1533
|
+
/**
|
|
1534
|
+
* The object type
|
|
1535
|
+
*/
|
|
1536
|
+
object?: string;
|
|
1537
|
+
}
|
|
1538
|
+
export interface Workspace {
|
|
1539
|
+
billing_contact?: BillingContact;
|
|
1540
|
+
/**
|
|
1541
|
+
* When the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.
|
|
1542
|
+
*/
|
|
1543
|
+
canceled_at?: string;
|
|
1544
|
+
/**
|
|
1545
|
+
* The time when the workspace was created
|
|
1546
|
+
*/
|
|
1547
|
+
created_at?: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* The time when the workspace was deleted
|
|
1550
|
+
*/
|
|
1551
|
+
deleted_at?: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* When a cancelled workspace is deleted unless it is restored first, canceled_at plus 30 days: its
|
|
1554
|
+
* owner restores it until then. Set only on a cancelled workspace.
|
|
1555
|
+
*/
|
|
1556
|
+
deletion_scheduled_at?: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* The description of the workspace
|
|
1559
|
+
*/
|
|
1560
|
+
description?: string;
|
|
1561
|
+
/**
|
|
1562
|
+
* The unique identifier of the workspace
|
|
1563
|
+
*/
|
|
1564
|
+
id?: string;
|
|
1565
|
+
metadata?: Record<string, string>;
|
|
1566
|
+
/**
|
|
1567
|
+
* The name of the workspace
|
|
1568
|
+
*/
|
|
1569
|
+
name?: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* The object type
|
|
1572
|
+
*/
|
|
1573
|
+
object?: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* When a deleted workspace's restore window ends, deleted_at plus 60 days: it can be restored until
|
|
1576
|
+
* then (route review D30). Set only on a deleted workspace.
|
|
1577
|
+
*/
|
|
1578
|
+
purge_scheduled_at?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* The slug of the workspace
|
|
1581
|
+
*/
|
|
1582
|
+
slug?: string;
|
|
1583
|
+
/**
|
|
1584
|
+
* The current status of the workspace enum: active,pastdue,suspended,canceled,deleted
|
|
1585
|
+
*/
|
|
1586
|
+
status?: string;
|
|
1587
|
+
/**
|
|
1588
|
+
* System marks a workspace Pontive keeps for itself, shown to Pontive's staff only: holding, the
|
|
1589
|
+
* installation's one holding workspace, which owns the unclaimed development instances until they are
|
|
1590
|
+
* claimed (pontive-spec 47 §4.2). Absent for every customer workspace.
|
|
1591
|
+
*/
|
|
1592
|
+
system?: "holding";
|
|
1593
|
+
/**
|
|
1594
|
+
* The time when the workspace was last updated
|
|
1595
|
+
*/
|
|
1596
|
+
updated_at?: string;
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* What the workspace's plan grants, as the console shows it.
|
|
1600
|
+
*/
|
|
1601
|
+
export interface WorkspaceEntitlement {
|
|
1602
|
+
/**
|
|
1603
|
+
* How long the audit log's standard entries and the request log are kept, in hours.
|
|
1604
|
+
*/
|
|
1605
|
+
audit_log_retention_hours?: number;
|
|
1606
|
+
/**
|
|
1607
|
+
* Projects and seats the plan includes.
|
|
1608
|
+
*/
|
|
1609
|
+
included_projects?: number;
|
|
1610
|
+
included_seats?: number;
|
|
1611
|
+
/**
|
|
1612
|
+
* Bounds each project's non-production instances; null is unlimited.
|
|
1613
|
+
*/
|
|
1614
|
+
max_non_prod_instances?: number;
|
|
1615
|
+
modules_available?: string[];
|
|
1616
|
+
modules_non_production?: string[];
|
|
1617
|
+
name?: string;
|
|
1618
|
+
plan?: string;
|
|
1619
|
+
request_log_retention_hours?: number;
|
|
1620
|
+
usage?: Record<string, MeterPrice>;
|
|
1621
|
+
}
|
|
1622
|
+
/**
|
|
1623
|
+
* Pagination information
|
|
1624
|
+
*/
|
|
1625
|
+
export interface WorkspacePagination {
|
|
1626
|
+
/**
|
|
1627
|
+
* Number of records per page
|
|
1628
|
+
*/
|
|
1629
|
+
limit?: number;
|
|
1630
|
+
/**
|
|
1631
|
+
* Current page number
|
|
1632
|
+
*/
|
|
1633
|
+
page?: number;
|
|
1634
|
+
/**
|
|
1635
|
+
* Total number of records
|
|
1636
|
+
*/
|
|
1637
|
+
total?: number;
|
|
1638
|
+
/**
|
|
1639
|
+
* Total number of pages
|
|
1640
|
+
*/
|
|
1641
|
+
total_pages?: number;
|
|
1642
|
+
}
|
|
1643
|
+
export interface WorkspaceUsage {
|
|
1644
|
+
billing_interval?: "monthly" | "annual";
|
|
1645
|
+
/**
|
|
1646
|
+
* Meters is every meter pooled across the workspace's instances, production and non-production alike,
|
|
1647
|
+
* against the plan's allowances.
|
|
1648
|
+
*/
|
|
1649
|
+
meters?: Record<string, MeterUsage>;
|
|
1650
|
+
period?: Period;
|
|
1651
|
+
plan?: "free";
|
|
1652
|
+
projects?: ProjectLine[];
|
|
1653
|
+
reported_at?: string;
|
|
1654
|
+
/**
|
|
1655
|
+
* Tracked holds measured-only counters: tokens issued, by kind.
|
|
1656
|
+
*/
|
|
1657
|
+
tracked?: Record<string, number>;
|
|
1658
|
+
workspace_id?: string;
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* The parameters of `ListDomains`.
|
|
1662
|
+
*/
|
|
1663
|
+
export interface ListDomainsParams {
|
|
1664
|
+
/**
|
|
1665
|
+
* Instance ID
|
|
1666
|
+
*/
|
|
1667
|
+
instance_id: string;
|
|
1668
|
+
/**
|
|
1669
|
+
* Page number
|
|
1670
|
+
*/
|
|
1671
|
+
page?: number;
|
|
1672
|
+
/**
|
|
1673
|
+
* Page size (default 25, at most 100)
|
|
1674
|
+
*/
|
|
1675
|
+
limit?: number;
|
|
1676
|
+
/**
|
|
1677
|
+
* Sort order
|
|
1678
|
+
*/
|
|
1679
|
+
sort?: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* Search
|
|
1682
|
+
*/
|
|
1683
|
+
search?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* Type
|
|
1686
|
+
*/
|
|
1687
|
+
type?: "auth_server";
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* The parameters of `ListInstances`.
|
|
1691
|
+
*/
|
|
1692
|
+
export interface ListInstancesParams {
|
|
1693
|
+
/**
|
|
1694
|
+
* Filter by project ID
|
|
1695
|
+
*/
|
|
1696
|
+
project_id?: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* Filter by workspace ID
|
|
1699
|
+
*/
|
|
1700
|
+
workspace_id?: string;
|
|
1701
|
+
/**
|
|
1702
|
+
* Filter by environment
|
|
1703
|
+
*/
|
|
1704
|
+
environment?: "production" | "non_production";
|
|
1705
|
+
/**
|
|
1706
|
+
* Filter by the instance's own status
|
|
1707
|
+
*/
|
|
1708
|
+
status?: "active" | "paused" | "deleted";
|
|
1709
|
+
/**
|
|
1710
|
+
* Page number
|
|
1711
|
+
*/
|
|
1712
|
+
page?: number;
|
|
1713
|
+
/**
|
|
1714
|
+
* Page size (default 25, at most 100)
|
|
1715
|
+
*/
|
|
1716
|
+
limit?: number;
|
|
1717
|
+
/**
|
|
1718
|
+
* Sort order
|
|
1719
|
+
*/
|
|
1720
|
+
sort?: string;
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* The parameters of `ListInstanceMembers`.
|
|
1724
|
+
*/
|
|
1725
|
+
export interface ListInstanceMembersParams {
|
|
1726
|
+
/**
|
|
1727
|
+
* Search term matched against name and email
|
|
1728
|
+
*/
|
|
1729
|
+
search?: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* Filter by role
|
|
1732
|
+
*/
|
|
1733
|
+
roles?: string[];
|
|
1734
|
+
/**
|
|
1735
|
+
* Page number
|
|
1736
|
+
*/
|
|
1737
|
+
page?: number;
|
|
1738
|
+
/**
|
|
1739
|
+
* Page size (default 25, at most 100)
|
|
1740
|
+
*/
|
|
1741
|
+
limit?: number;
|
|
1742
|
+
/**
|
|
1743
|
+
* Sort order
|
|
1744
|
+
*/
|
|
1745
|
+
sort?: string;
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* The parameters of `ListSecretKeys`.
|
|
1749
|
+
*/
|
|
1750
|
+
export interface ListSecretKeysParams {
|
|
1751
|
+
/**
|
|
1752
|
+
* Page number
|
|
1753
|
+
*/
|
|
1754
|
+
page?: number;
|
|
1755
|
+
/**
|
|
1756
|
+
* Page size (default 25, at most 100)
|
|
1757
|
+
*/
|
|
1758
|
+
limit?: number;
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* The parameters of `ListPlans`.
|
|
1762
|
+
*/
|
|
1763
|
+
export interface ListPlansParams {
|
|
1764
|
+
/**
|
|
1765
|
+
* Page number
|
|
1766
|
+
*/
|
|
1767
|
+
page?: number;
|
|
1768
|
+
/**
|
|
1769
|
+
* Page size (default 25, at most 100)
|
|
1770
|
+
*/
|
|
1771
|
+
limit?: number;
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* The parameters of `ListProjects`.
|
|
1775
|
+
*/
|
|
1776
|
+
export interface ListProjectsParams {
|
|
1777
|
+
/**
|
|
1778
|
+
* Workspace ID
|
|
1779
|
+
*/
|
|
1780
|
+
workspace_id?: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* Filter by status
|
|
1783
|
+
*/
|
|
1784
|
+
status?: "active" | "paused" | "deleted";
|
|
1785
|
+
/**
|
|
1786
|
+
* Filter by region
|
|
1787
|
+
*/
|
|
1788
|
+
region?: "us" | "eu" | "au";
|
|
1789
|
+
/**
|
|
1790
|
+
* Page number
|
|
1791
|
+
*/
|
|
1792
|
+
page?: number;
|
|
1793
|
+
/**
|
|
1794
|
+
* Page size (default 25, at most 100)
|
|
1795
|
+
*/
|
|
1796
|
+
limit?: number;
|
|
1797
|
+
/**
|
|
1798
|
+
* Sort order
|
|
1799
|
+
*/
|
|
1800
|
+
sort?: string;
|
|
1801
|
+
/**
|
|
1802
|
+
* Search term (name depending on implementation)
|
|
1803
|
+
*/
|
|
1804
|
+
search?: string;
|
|
1805
|
+
}
|
|
1806
|
+
/**
|
|
1807
|
+
* The parameters of `ListProjectInvitations`.
|
|
1808
|
+
*/
|
|
1809
|
+
export interface ListProjectInvitationsParams {
|
|
1810
|
+
/**
|
|
1811
|
+
* Search term matched against the invitee email
|
|
1812
|
+
*/
|
|
1813
|
+
search?: string;
|
|
1814
|
+
/**
|
|
1815
|
+
* Page number
|
|
1816
|
+
*/
|
|
1817
|
+
page?: number;
|
|
1818
|
+
/**
|
|
1819
|
+
* Page size (default 25, at most 100)
|
|
1820
|
+
*/
|
|
1821
|
+
limit?: number;
|
|
1822
|
+
/**
|
|
1823
|
+
* Sort order
|
|
1824
|
+
*/
|
|
1825
|
+
sort?: string;
|
|
1826
|
+
}
|
|
1827
|
+
/**
|
|
1828
|
+
* The parameters of `DeleteProjectInvitation`.
|
|
1829
|
+
*/
|
|
1830
|
+
export interface DeleteProjectInvitationParams {
|
|
1831
|
+
/**
|
|
1832
|
+
* Notify the invitee that the invitation was withdrawn
|
|
1833
|
+
*/
|
|
1834
|
+
notify_invitee?: boolean;
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* The parameters of `ListProjectMembers`.
|
|
1838
|
+
*/
|
|
1839
|
+
export interface ListProjectMembersParams {
|
|
1840
|
+
/**
|
|
1841
|
+
* Search term matched against name and email
|
|
1842
|
+
*/
|
|
1843
|
+
search?: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* Filter by role
|
|
1846
|
+
*/
|
|
1847
|
+
roles?: string[];
|
|
1848
|
+
/**
|
|
1849
|
+
* Page number
|
|
1850
|
+
*/
|
|
1851
|
+
page?: number;
|
|
1852
|
+
/**
|
|
1853
|
+
* Page size (default 25, at most 100)
|
|
1854
|
+
*/
|
|
1855
|
+
limit?: number;
|
|
1856
|
+
/**
|
|
1857
|
+
* Sort order
|
|
1858
|
+
*/
|
|
1859
|
+
sort?: string;
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* The parameters of `ListWorkspaces`.
|
|
1863
|
+
*/
|
|
1864
|
+
export interface ListWorkspacesParams {
|
|
1865
|
+
/**
|
|
1866
|
+
* Filter by status
|
|
1867
|
+
*/
|
|
1868
|
+
status?: "active" | "pastdue" | "suspended" | "canceled" | "deleted";
|
|
1869
|
+
/**
|
|
1870
|
+
* Filter by plan
|
|
1871
|
+
*/
|
|
1872
|
+
plan?: "free" | "pro" | "enterprise";
|
|
1873
|
+
/**
|
|
1874
|
+
* Page number
|
|
1875
|
+
*/
|
|
1876
|
+
page?: number;
|
|
1877
|
+
/**
|
|
1878
|
+
* Page size (default 25, at most 100)
|
|
1879
|
+
*/
|
|
1880
|
+
limit?: number;
|
|
1881
|
+
/**
|
|
1882
|
+
* Sort order
|
|
1883
|
+
*/
|
|
1884
|
+
sort?: string;
|
|
1885
|
+
/**
|
|
1886
|
+
* Search term (slug,description,name depending on implementation)
|
|
1887
|
+
*/
|
|
1888
|
+
search?: string;
|
|
1889
|
+
}
|
|
1890
|
+
/**
|
|
1891
|
+
* The parameters of `ListWorkspaceInvitations`.
|
|
1892
|
+
*/
|
|
1893
|
+
export interface ListWorkspaceInvitationsParams {
|
|
1894
|
+
/**
|
|
1895
|
+
* Search term matched against the invitee email
|
|
1896
|
+
*/
|
|
1897
|
+
search?: string;
|
|
1898
|
+
/**
|
|
1899
|
+
* Page number
|
|
1900
|
+
*/
|
|
1901
|
+
page?: number;
|
|
1902
|
+
/**
|
|
1903
|
+
* Page size (default 25, at most 100)
|
|
1904
|
+
*/
|
|
1905
|
+
limit?: number;
|
|
1906
|
+
/**
|
|
1907
|
+
* Sort order
|
|
1908
|
+
*/
|
|
1909
|
+
sort?: string;
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* The parameters of `DeleteWorkspaceInvitation`.
|
|
1913
|
+
*/
|
|
1914
|
+
export interface DeleteWorkspaceInvitationParams {
|
|
1915
|
+
/**
|
|
1916
|
+
* Notify the invitee that the invitation was withdrawn
|
|
1917
|
+
*/
|
|
1918
|
+
notify_invitee?: boolean;
|
|
1919
|
+
}
|
|
1920
|
+
/**
|
|
1921
|
+
* The parameters of `ListWorkspaceMembers`.
|
|
1922
|
+
*/
|
|
1923
|
+
export interface ListWorkspaceMembersParams {
|
|
1924
|
+
/**
|
|
1925
|
+
* Search term matched against name and email
|
|
1926
|
+
*/
|
|
1927
|
+
search?: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* Filter by role
|
|
1930
|
+
*/
|
|
1931
|
+
roles?: string[];
|
|
1932
|
+
/**
|
|
1933
|
+
* Page number
|
|
1934
|
+
*/
|
|
1935
|
+
page?: number;
|
|
1936
|
+
/**
|
|
1937
|
+
* Page size (default 25, at most 100)
|
|
1938
|
+
*/
|
|
1939
|
+
limit?: number;
|
|
1940
|
+
/**
|
|
1941
|
+
* Sort order
|
|
1942
|
+
*/
|
|
1943
|
+
sort?: string;
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* The parameters of `ListWorkspaceMemberGrants`.
|
|
1947
|
+
*/
|
|
1948
|
+
export interface ListWorkspaceMemberGrantsParams {
|
|
1949
|
+
/**
|
|
1950
|
+
* Page number
|
|
1951
|
+
*/
|
|
1952
|
+
page?: number;
|
|
1953
|
+
/**
|
|
1954
|
+
* Page size (default 25, at most 100)
|
|
1955
|
+
*/
|
|
1956
|
+
limit?: number;
|
|
1957
|
+
}
|
|
1958
|
+
/**
|
|
1959
|
+
* The parameters of `ListWorkspaceWebhookEventTypes`.
|
|
1960
|
+
*/
|
|
1961
|
+
export interface ListWorkspaceWebhookEventTypesParams {
|
|
1962
|
+
/**
|
|
1963
|
+
* Partial name match
|
|
1964
|
+
*/
|
|
1965
|
+
name?: string;
|
|
1966
|
+
/**
|
|
1967
|
+
* Page number
|
|
1968
|
+
*/
|
|
1969
|
+
page?: number;
|
|
1970
|
+
/**
|
|
1971
|
+
* Items per page
|
|
1972
|
+
*/
|
|
1973
|
+
limit?: number;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* The parameters of `ListWorkspaceWebhookEvents`.
|
|
1977
|
+
*/
|
|
1978
|
+
export interface ListWorkspaceWebhookEventsParams {
|
|
1979
|
+
/**
|
|
1980
|
+
* Filter by event type
|
|
1981
|
+
*/
|
|
1982
|
+
type?: string;
|
|
1983
|
+
/**
|
|
1984
|
+
* RFC 3339: created at or after
|
|
1985
|
+
*/
|
|
1986
|
+
from?: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* RFC 3339: created before
|
|
1989
|
+
*/
|
|
1990
|
+
to?: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* Cursor: events created after it, oldest first
|
|
1993
|
+
*/
|
|
1994
|
+
after?: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* Cursor: older events, newest first
|
|
1997
|
+
*/
|
|
1998
|
+
before?: string;
|
|
1999
|
+
/**
|
|
2000
|
+
* Items per page
|
|
2001
|
+
*/
|
|
2002
|
+
limit?: number;
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* The parameters of `ListWorkspaceWebhookSubscriptions`.
|
|
2006
|
+
*/
|
|
2007
|
+
export interface ListWorkspaceWebhookSubscriptionsParams {
|
|
2008
|
+
/**
|
|
2009
|
+
* Filter by status: active, paused, failing or disabled
|
|
2010
|
+
*/
|
|
2011
|
+
status?: string;
|
|
2012
|
+
/**
|
|
2013
|
+
* Sort field; prefix with - for descending. Allowed: created_at, updated_at, status, url. Default:
|
|
2014
|
+
* -created_at
|
|
2015
|
+
*/
|
|
2016
|
+
sort?: string;
|
|
2017
|
+
/**
|
|
2018
|
+
* Page number
|
|
2019
|
+
*/
|
|
2020
|
+
page?: number;
|
|
2021
|
+
/**
|
|
2022
|
+
* Items per page
|
|
2023
|
+
*/
|
|
2024
|
+
limit?: number;
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* The parameters of `GetWorkspaceWebhookActivity`.
|
|
2028
|
+
*/
|
|
2029
|
+
export interface GetWorkspaceWebhookActivityParams {
|
|
2030
|
+
/**
|
|
2031
|
+
* 24h, 7d or 30d; 7d by default
|
|
2032
|
+
*/
|
|
2033
|
+
period?: string;
|
|
2034
|
+
/**
|
|
2035
|
+
* hour or day; by default hour for 24h and day otherwise
|
|
2036
|
+
*/
|
|
2037
|
+
interval?: string;
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* The parameters of `ListWorkspaceWebhookDeliveries`.
|
|
2041
|
+
*/
|
|
2042
|
+
export interface ListWorkspaceWebhookDeliveriesParams {
|
|
2043
|
+
/**
|
|
2044
|
+
* Filter by status: pending, inflight, success, failed or error
|
|
2045
|
+
*/
|
|
2046
|
+
status?: string;
|
|
2047
|
+
/**
|
|
2048
|
+
* Filter by event, evt_…
|
|
2049
|
+
*/
|
|
2050
|
+
event_id?: string;
|
|
2051
|
+
/**
|
|
2052
|
+
* Only each event's newest attempt
|
|
2053
|
+
*/
|
|
2054
|
+
latest?: boolean;
|
|
2055
|
+
/**
|
|
2056
|
+
* RFC 3339: created at or after
|
|
2057
|
+
*/
|
|
2058
|
+
from?: string;
|
|
2059
|
+
/**
|
|
2060
|
+
* RFC 3339: created before
|
|
2061
|
+
*/
|
|
2062
|
+
to?: string;
|
|
2063
|
+
/**
|
|
2064
|
+
* Cursor: attempts made after it, oldest first
|
|
2065
|
+
*/
|
|
2066
|
+
after?: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* Cursor: older attempts, newest first
|
|
2069
|
+
*/
|
|
2070
|
+
before?: string;
|
|
2071
|
+
/**
|
|
2072
|
+
* Items per page
|
|
2073
|
+
*/
|
|
2074
|
+
limit?: number;
|
|
2075
|
+
}
|