@pontive/server 1.27.0 → 1.29.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 +23 -3
- package/dist/{client-B3NStbMW.js → client-B5zZyWMn.js} +32 -31
- package/dist/client-B5zZyWMn.js.map +1 -0
- package/dist/client-BfPi8CfF.cjs +2 -0
- package/dist/client-BfPi8CfF.cjs.map +1 -0
- 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/generated/namespaces.d.cts +13 -13
- package/dist/management/generated/namespaces.d.ts +13 -13
- package/dist/management/generated/types.d.cts +15 -15
- package/dist/management/generated/types.d.ts +15 -15
- 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
- package/dist/client-B3NStbMW.js.map +0 -1
- package/dist/client-DdtDcUK9.cjs +0 -2
- package/dist/client-DdtDcUK9.cjs.map +0 -1
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
import { APIPromise, Core, PagePromise, RequestOptions } from '../core.js';
|
|
2
|
+
import type * as T from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Every namespace of the platform API.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PontiveNamespaces {
|
|
7
|
+
protected readonly core: Core;
|
|
8
|
+
/**
|
|
9
|
+
* An instance's auth domains.
|
|
10
|
+
*/
|
|
11
|
+
readonly domains: Domains;
|
|
12
|
+
/**
|
|
13
|
+
* Instances: an environment of a project, its members and its secret keys for the management API.
|
|
14
|
+
*/
|
|
15
|
+
readonly instances: Instances;
|
|
16
|
+
/**
|
|
17
|
+
* The plans a workspace can be on.
|
|
18
|
+
*/
|
|
19
|
+
readonly plans: Plans;
|
|
20
|
+
/**
|
|
21
|
+
* Projects: an application with its instances, and its members and invitations.
|
|
22
|
+
*/
|
|
23
|
+
readonly projects: Projects;
|
|
24
|
+
/**
|
|
25
|
+
* Workspaces: the credential's own workspace, its members, invitations, webhooks, billing and usage.
|
|
26
|
+
*/
|
|
27
|
+
readonly workspaces: Workspaces;
|
|
28
|
+
/** @internal */
|
|
29
|
+
constructor(core: Core);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* An instance's auth domains.
|
|
33
|
+
*/
|
|
34
|
+
export declare class Domains {
|
|
35
|
+
protected readonly core: Core;
|
|
36
|
+
/** @internal */
|
|
37
|
+
constructor(core: Core);
|
|
38
|
+
/**
|
|
39
|
+
* Create domain.
|
|
40
|
+
*
|
|
41
|
+
* Register a hostname against an instance. The domain starts pending and carries the DNS challenge
|
|
42
|
+
* that must be published before it can be activated.
|
|
43
|
+
*
|
|
44
|
+
* `POST /v1/domains` (CreateDomain)
|
|
45
|
+
*/
|
|
46
|
+
create(body: T.CreateDomainRequest, options?: RequestOptions): APIPromise<T.CreateDomainResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Delete domain.
|
|
49
|
+
*
|
|
50
|
+
* Remove a domain. Refused while any app or service account is still bound to it.
|
|
51
|
+
*
|
|
52
|
+
* `DELETE /v1/domains/{domain_id}` (DeleteDomain)
|
|
53
|
+
*/
|
|
54
|
+
delete(domainId: string, options?: RequestOptions): APIPromise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* List domains.
|
|
57
|
+
*
|
|
58
|
+
* Get a list of domains for an instance.
|
|
59
|
+
*
|
|
60
|
+
* `GET /v1/domains` (ListDomains)
|
|
61
|
+
*
|
|
62
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
63
|
+
*/
|
|
64
|
+
list(params: T.ListDomainsParams, options?: RequestOptions): PagePromise<T.Domain, T.ListDomainsResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Verify domain.
|
|
67
|
+
*
|
|
68
|
+
* Check the DNS TXT challenge for a domain and record the outcome. Does not activate the domain;
|
|
69
|
+
* activation is a separate call and is refused until verification has succeeded.
|
|
70
|
+
*
|
|
71
|
+
* `POST /v1/domains/{domain_id}/verify` (VerifyDomain)
|
|
72
|
+
*/
|
|
73
|
+
verify(domainId: string, options?: RequestOptions): APIPromise<T.VerifyDomainResponse>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Instances: an environment of a project, its members and its secret keys for the management API.
|
|
77
|
+
*/
|
|
78
|
+
export declare class Instances {
|
|
79
|
+
protected readonly core: Core;
|
|
80
|
+
/** @internal */
|
|
81
|
+
constructor(core: Core);
|
|
82
|
+
/**
|
|
83
|
+
* Create instance.
|
|
84
|
+
*
|
|
85
|
+
* Create an instance in a project. name and slug are required for non_production and must be omitted
|
|
86
|
+
* for production, which is always Production/production and limited to one per project.
|
|
87
|
+
*
|
|
88
|
+
* `POST /v1/instances` (CreateInstance)
|
|
89
|
+
*/
|
|
90
|
+
create(body: T.CreateInstanceRequest, options?: RequestOptions): APIPromise<T.Instance>;
|
|
91
|
+
/**
|
|
92
|
+
* Add an instance member.
|
|
93
|
+
*
|
|
94
|
+
* Grant roles on the instance to a member of its workspace (admin, developer, support or viewer). This
|
|
95
|
+
* is how a workspace member is given production access.
|
|
96
|
+
*
|
|
97
|
+
* `POST /v1/instances/{instance_id}/members` (CreateInstanceMember)
|
|
98
|
+
*/
|
|
99
|
+
createMember(instanceId: string, body: T.AddInstanceMemberRequest, options?: RequestOptions): APIPromise<T.GetMemberResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* Create a secret key.
|
|
102
|
+
*
|
|
103
|
+
* Create a secret key for the instance's management API. The answer carries its value once; it is
|
|
104
|
+
* never shown again. Needs instance:secret_keys.manage. An instance holds at most 10 active keys
|
|
105
|
+
* (secret_key_limit_reached); a deleted instance takes none (instance_deleted).
|
|
106
|
+
*
|
|
107
|
+
* `POST /v1/instances/{instance_id}/secret-keys` (CreateSecretKey)
|
|
108
|
+
*/
|
|
109
|
+
createSecretKey(instanceId: string, body: T.CreateSecretKeyRequest, options?: RequestOptions): APIPromise<T.SecretKey>;
|
|
110
|
+
/**
|
|
111
|
+
* Delete instance.
|
|
112
|
+
*
|
|
113
|
+
* Soft-delete an instance, recoverable for 30 days: it carries purge_scheduled_at, deleted_at plus 30
|
|
114
|
+
* days, and is purged after it. Requires {"confirm_delete": true}; without it the API returns 400
|
|
115
|
+
* confirmation_required. A project keeps at least one active instance: deleting its last one returns
|
|
116
|
+
* 409 last_active_instance. A token acting for a Pontive user (the Pontive MCP server) deletes a
|
|
117
|
+
* non_production instance only; the production one is refused with 403 actor_refused, to be deleted in
|
|
118
|
+
* the dashboard.
|
|
119
|
+
*
|
|
120
|
+
* `DELETE /v1/instances/{instance_id}` (DeleteInstance)
|
|
121
|
+
*/
|
|
122
|
+
delete(instanceId: string, body: T.DeleteInstanceRequest, options?: RequestOptions): APIPromise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Remove an instance member.
|
|
125
|
+
*
|
|
126
|
+
* Remove a member from the instance. They stay a member of the workspace, and of the project if they
|
|
127
|
+
* were one.
|
|
128
|
+
*
|
|
129
|
+
* `DELETE /v1/instances/{instance_id}/members/{user_id}` (DeleteInstanceMember)
|
|
130
|
+
*/
|
|
131
|
+
deleteMember(instanceId: string, userId: string, options?: RequestOptions): APIPromise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* Get instance.
|
|
134
|
+
*
|
|
135
|
+
* Get instance details by ID.
|
|
136
|
+
*
|
|
137
|
+
* `GET /v1/instances/{instance_id}` (GetInstance)
|
|
138
|
+
*/
|
|
139
|
+
get(instanceId: string, options?: RequestOptions): APIPromise<T.Instance>;
|
|
140
|
+
/**
|
|
141
|
+
* The caller's access to an instance.
|
|
142
|
+
*
|
|
143
|
+
* The platform permissions the caller holds on the instance, and the roles they hold on it directly.
|
|
144
|
+
*
|
|
145
|
+
* `GET /v1/instances/{instance_id}/access` (GetInstanceAccess)
|
|
146
|
+
*/
|
|
147
|
+
getAccess(instanceId: string, options?: RequestOptions): APIPromise<T.GetAccessResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Get a secret key.
|
|
150
|
+
*
|
|
151
|
+
* One of the instance's secret keys. Needs instance:read.
|
|
152
|
+
*
|
|
153
|
+
* `GET /v1/instances/{instance_id}/secret-keys/{secret_key_id}` (GetSecretKey)
|
|
154
|
+
*/
|
|
155
|
+
getSecretKey(instanceId: string, secretKeyId: string, options?: RequestOptions): APIPromise<T.SecretKey>;
|
|
156
|
+
/**
|
|
157
|
+
* List instances.
|
|
158
|
+
*
|
|
159
|
+
* List the instances of a project or a workspace. One of project_id or workspace_id is required, but
|
|
160
|
+
* for Pontive's staff, who list every instance. A token acting for a Pontive user through an actor
|
|
161
|
+
* (the Pontive MCP server) lists the instances the user's own roles reach, never a staff role's: those
|
|
162
|
+
* of the project or workspace named, else of every workspace the user belongs to.
|
|
163
|
+
*
|
|
164
|
+
* `GET /v1/instances` (ListInstances)
|
|
165
|
+
*
|
|
166
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
167
|
+
*/
|
|
168
|
+
list(params?: T.ListInstancesParams, options?: RequestOptions): PagePromise<T.Instance, T.ListInstancesResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* List an instance's members.
|
|
171
|
+
*
|
|
172
|
+
* List the users holding roles on the instance itself. Everyone else reaches it through its project
|
|
173
|
+
* and workspace.
|
|
174
|
+
*
|
|
175
|
+
* `GET /v1/instances/{instance_id}/members` (ListInstanceMembers)
|
|
176
|
+
*
|
|
177
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
178
|
+
*/
|
|
179
|
+
listMembers(instanceId: string, params?: T.ListInstanceMembersParams, options?: RequestOptions): PagePromise<T.Member, T.ListMembersResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* List secret keys.
|
|
182
|
+
*
|
|
183
|
+
* List the instance's secret keys. Revoked keys stay listed for 30 days. Needs instance:read.
|
|
184
|
+
*
|
|
185
|
+
* `GET /v1/instances/{instance_id}/secret-keys` (ListSecretKeys)
|
|
186
|
+
*
|
|
187
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
188
|
+
*/
|
|
189
|
+
listSecretKeys(instanceId: string, params?: T.ListSecretKeysParams, options?: RequestOptions): PagePromise<T.SecretKey, T.ListSecretKeysResponse>;
|
|
190
|
+
/**
|
|
191
|
+
* Pause instance.
|
|
192
|
+
*
|
|
193
|
+
* Pause an instance. A project keeps at least one active instance: pausing its last one returns 409
|
|
194
|
+
* last_active_instance.
|
|
195
|
+
*
|
|
196
|
+
* `POST /v1/instances/{instance_id}/pause` (PauseInstance)
|
|
197
|
+
*/
|
|
198
|
+
pause(instanceId: string, options?: RequestOptions): APIPromise<T.Instance>;
|
|
199
|
+
/**
|
|
200
|
+
* Purge instance.
|
|
201
|
+
*
|
|
202
|
+
* Permanently delete a deleted instance and all its data now, rather than at its purge_scheduled_at,
|
|
203
|
+
* and retire its host label. Cannot be undone.
|
|
204
|
+
*
|
|
205
|
+
* `POST /v1/instances/{instance_id}/purge` (PurgeInstance)
|
|
206
|
+
*/
|
|
207
|
+
purge(instanceId: string, options?: RequestOptions): APIPromise<void>;
|
|
208
|
+
/**
|
|
209
|
+
* Restore instance.
|
|
210
|
+
*
|
|
211
|
+
* Restore a soft-deleted instance within 30 days of its deletion, until its purge_scheduled_at (409
|
|
212
|
+
* restore_window_closed after, when it is purged).
|
|
213
|
+
*
|
|
214
|
+
* `POST /v1/instances/{instance_id}/restore` (RestoreInstance)
|
|
215
|
+
*/
|
|
216
|
+
restore(instanceId: string, options?: RequestOptions): APIPromise<T.Instance>;
|
|
217
|
+
/**
|
|
218
|
+
* Resume instance.
|
|
219
|
+
*
|
|
220
|
+
* Resume a paused instance.
|
|
221
|
+
*
|
|
222
|
+
* `POST /v1/instances/{instance_id}/resume` (ResumeInstance)
|
|
223
|
+
*/
|
|
224
|
+
resume(instanceId: string, options?: RequestOptions): APIPromise<T.Instance>;
|
|
225
|
+
/**
|
|
226
|
+
* Revoke a secret key.
|
|
227
|
+
*
|
|
228
|
+
* End a secret key and any still-valid previous value at once. Final: a revoked key cannot be
|
|
229
|
+
* reactivated. Needs instance:secret_keys.manage.
|
|
230
|
+
*
|
|
231
|
+
* `POST /v1/instances/{instance_id}/secret-keys/{secret_key_id}/revoke` (RevokeSecretKey)
|
|
232
|
+
*/
|
|
233
|
+
revokeSecretKey(instanceId: string, secretKeyId: string, options?: RequestOptions): APIPromise<T.SecretKey>;
|
|
234
|
+
/**
|
|
235
|
+
* Rotate a secret key.
|
|
236
|
+
*
|
|
237
|
+
* Replace a secret key's value, keeping the key. The answer carries the new value once. The current
|
|
238
|
+
* value keeps working for expire_previous_in seconds (0 to 604800, default 86400). Needs
|
|
239
|
+
* instance:secret_keys.manage.
|
|
240
|
+
*
|
|
241
|
+
* `POST /v1/instances/{instance_id}/secret-keys/{secret_key_id}/rotate` (RotateSecretKey)
|
|
242
|
+
*/
|
|
243
|
+
rotateSecretKey(instanceId: string, secretKeyId: string, body?: T.RotateSecretKeyRequest, options?: RequestOptions): APIPromise<T.SecretKey>;
|
|
244
|
+
/**
|
|
245
|
+
* Update instance.
|
|
246
|
+
*
|
|
247
|
+
* Update an instance. name is writable on non_production instances only; renaming the production
|
|
248
|
+
* instance returns instance_name_not_settable.
|
|
249
|
+
*
|
|
250
|
+
* `PATCH /v1/instances/{instance_id}` (UpdateInstance)
|
|
251
|
+
*/
|
|
252
|
+
update(instanceId: string, body: T.UpdateInstanceRequest, options?: RequestOptions): APIPromise<T.Instance>;
|
|
253
|
+
/**
|
|
254
|
+
* Change an instance member's roles.
|
|
255
|
+
*
|
|
256
|
+
* Replace the roles a member holds on the instance.
|
|
257
|
+
*
|
|
258
|
+
* `PATCH /v1/instances/{instance_id}/members/{user_id}` (UpdateInstanceMember)
|
|
259
|
+
*/
|
|
260
|
+
updateMember(instanceId: string, userId: string, body: T.UpdateInstanceMemberRolesRequest, options?: RequestOptions): APIPromise<T.GetMemberResponse>;
|
|
261
|
+
/**
|
|
262
|
+
* Update a secret key.
|
|
263
|
+
*
|
|
264
|
+
* Change a secret key's name, description or role. A role change takes effect within 30 seconds. Needs
|
|
265
|
+
* instance:secret_keys.manage.
|
|
266
|
+
*
|
|
267
|
+
* `PATCH /v1/instances/{instance_id}/secret-keys/{secret_key_id}` (UpdateSecretKey)
|
|
268
|
+
*/
|
|
269
|
+
updateSecretKey(instanceId: string, secretKeyId: string, body: T.UpdateSecretKeyRequest, options?: RequestOptions): APIPromise<T.SecretKey>;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* The plans a workspace can be on.
|
|
273
|
+
*/
|
|
274
|
+
export declare class Plans {
|
|
275
|
+
protected readonly core: Core;
|
|
276
|
+
/** @internal */
|
|
277
|
+
constructor(core: Core);
|
|
278
|
+
/**
|
|
279
|
+
* List plans.
|
|
280
|
+
*
|
|
281
|
+
* The public plan catalog, cheapest first — the offered plans, each with its base fee at both
|
|
282
|
+
* intervals, included projects and seats, allowances, caps, rates and modules — and the fixed
|
|
283
|
+
* charges (additional project, b2b uplift, FGA instance, custom domain, seat, paused project) at both
|
|
284
|
+
* intervals. Amounts are cents, read from Stripe. A retired plan is not listed; the workspaces on it
|
|
285
|
+
* keep it.
|
|
286
|
+
*
|
|
287
|
+
* `GET /v1/plans` (ListPlans)
|
|
288
|
+
*
|
|
289
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
290
|
+
*/
|
|
291
|
+
list(params?: T.ListPlansParams, options?: RequestOptions): PagePromise<T.Plan, T.ListPlansResponse>;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Projects: an application with its instances, and its members and invitations.
|
|
295
|
+
*/
|
|
296
|
+
export declare class Projects {
|
|
297
|
+
protected readonly core: Core;
|
|
298
|
+
/** @internal */
|
|
299
|
+
constructor(core: Core);
|
|
300
|
+
/**
|
|
301
|
+
* Create project.
|
|
302
|
+
*
|
|
303
|
+
* Create a new project in a workspace. The project is created with one non_production instance
|
|
304
|
+
* (Development, slug dev), returned in instances.
|
|
305
|
+
*
|
|
306
|
+
* `POST /v1/projects` (CreateProject)
|
|
307
|
+
*/
|
|
308
|
+
create(body: T.CreateProjectRequest, options?: RequestOptions): APIPromise<T.Project>;
|
|
309
|
+
/**
|
|
310
|
+
* Invite to a project.
|
|
311
|
+
*
|
|
312
|
+
* Invite people to the project by email. Invitees who are not workspace members join the workspace
|
|
313
|
+
* too, with no role there.
|
|
314
|
+
*
|
|
315
|
+
* `POST /v1/projects/{project_id}/invitations` (CreateProjectInvitations)
|
|
316
|
+
*/
|
|
317
|
+
createInvitations(projectId: string, body: T.InviteProjectMembersRequest, options?: RequestOptions): APIPromise<T.InviteMembersResponse>;
|
|
318
|
+
/**
|
|
319
|
+
* Add a project member.
|
|
320
|
+
*
|
|
321
|
+
* Grant roles on the project to a member of its workspace. Someone who is not a workspace member is
|
|
322
|
+
* invited instead.
|
|
323
|
+
*
|
|
324
|
+
* `POST /v1/projects/{project_id}/members` (CreateProjectMember)
|
|
325
|
+
*/
|
|
326
|
+
createMember(projectId: string, body: T.AddProjectMemberRequest, options?: RequestOptions): APIPromise<T.GetMemberResponse>;
|
|
327
|
+
/**
|
|
328
|
+
* Delete project.
|
|
329
|
+
*
|
|
330
|
+
* Soft-delete a project and every instance in it, recoverable for 30 days: it carries
|
|
331
|
+
* purge_scheduled_at, deleted_at plus 30 days, and is purged with its instances after it. Requires
|
|
332
|
+
* {"confirm_delete": true}; without it the API returns 400 confirmation_required.
|
|
333
|
+
*
|
|
334
|
+
* `DELETE /v1/projects/{project_id}` (DeleteProject)
|
|
335
|
+
*/
|
|
336
|
+
delete(projectId: string, body: T.DeleteProjectRequest, options?: RequestOptions): APIPromise<void>;
|
|
337
|
+
/**
|
|
338
|
+
* Delete a project invitation.
|
|
339
|
+
*
|
|
340
|
+
* Withdraw one of the project's invitations: it is deleted, and its link stops working.
|
|
341
|
+
*
|
|
342
|
+
* `DELETE /v1/projects/{project_id}/invitations/{invitation_id}` (DeleteProjectInvitation)
|
|
343
|
+
*/
|
|
344
|
+
deleteInvitation(projectId: string, invitationId: string, params?: T.DeleteProjectInvitationParams, options?: RequestOptions): APIPromise<void>;
|
|
345
|
+
/**
|
|
346
|
+
* Remove a project member.
|
|
347
|
+
*
|
|
348
|
+
* Remove a member from the project. They stay a member of the workspace.
|
|
349
|
+
*
|
|
350
|
+
* `DELETE /v1/projects/{project_id}/members/{user_id}` (DeleteProjectMember)
|
|
351
|
+
*/
|
|
352
|
+
deleteMember(projectId: string, userId: string, options?: RequestOptions): APIPromise<void>;
|
|
353
|
+
/**
|
|
354
|
+
* Get project.
|
|
355
|
+
*
|
|
356
|
+
* Get project details by ID or slug.
|
|
357
|
+
*
|
|
358
|
+
* `GET /v1/projects/{project_id}` (GetProject)
|
|
359
|
+
*/
|
|
360
|
+
get(projectId: string, options?: RequestOptions): APIPromise<T.Project>;
|
|
361
|
+
/**
|
|
362
|
+
* The caller's access to a project.
|
|
363
|
+
*
|
|
364
|
+
* The platform permissions the caller holds on the project, and the roles they hold on it directly.
|
|
365
|
+
*
|
|
366
|
+
* `GET /v1/projects/{project_id}/access` (GetProjectAccess)
|
|
367
|
+
*/
|
|
368
|
+
getAccess(projectId: string, options?: RequestOptions): APIPromise<T.GetAccessResponse>;
|
|
369
|
+
/**
|
|
370
|
+
* List projects.
|
|
371
|
+
*
|
|
372
|
+
* Get a list of projects for a workspace.
|
|
373
|
+
*
|
|
374
|
+
* `GET /v1/projects` (ListProjects)
|
|
375
|
+
*
|
|
376
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
377
|
+
*/
|
|
378
|
+
list(params?: T.ListProjectsParams, options?: RequestOptions): PagePromise<T.Project, T.ListProjectsResponse>;
|
|
379
|
+
/**
|
|
380
|
+
* List a project's invitations.
|
|
381
|
+
*
|
|
382
|
+
* List the invitations to the project.
|
|
383
|
+
*
|
|
384
|
+
* `GET /v1/projects/{project_id}/invitations` (ListProjectInvitations)
|
|
385
|
+
*
|
|
386
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
387
|
+
*/
|
|
388
|
+
listInvitations(projectId: string, params?: T.ListProjectInvitationsParams, options?: RequestOptions): PagePromise<T.Invitation, T.ListInvitationsResponse>;
|
|
389
|
+
/**
|
|
390
|
+
* List a project's members.
|
|
391
|
+
*
|
|
392
|
+
* List the users holding roles on the project itself. Workspace members reach every project through
|
|
393
|
+
* the workspace and are listed there.
|
|
394
|
+
*
|
|
395
|
+
* `GET /v1/projects/{project_id}/members` (ListProjectMembers)
|
|
396
|
+
*
|
|
397
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
398
|
+
*/
|
|
399
|
+
listMembers(projectId: string, params?: T.ListProjectMembersParams, options?: RequestOptions): PagePromise<T.Member, T.ListMembersResponse>;
|
|
400
|
+
/**
|
|
401
|
+
* Pause project.
|
|
402
|
+
*
|
|
403
|
+
* Pause a project.
|
|
404
|
+
*
|
|
405
|
+
* `POST /v1/projects/{project_id}/pause` (PauseProject)
|
|
406
|
+
*/
|
|
407
|
+
pause(projectId: string, options?: RequestOptions): APIPromise<T.Project>;
|
|
408
|
+
/**
|
|
409
|
+
* Purge project.
|
|
410
|
+
*
|
|
411
|
+
* Permanently delete a deleted project and its instances now, rather than at its purge_scheduled_at,
|
|
412
|
+
* and retire its slug and host labels. Cannot be undone.
|
|
413
|
+
*
|
|
414
|
+
* `POST /v1/projects/{project_id}/purge` (PurgeProject)
|
|
415
|
+
*/
|
|
416
|
+
purge(projectId: string, options?: RequestOptions): APIPromise<void>;
|
|
417
|
+
/**
|
|
418
|
+
* Resend a project invitation.
|
|
419
|
+
*
|
|
420
|
+
* Send one of the project's outstanding invitations again.
|
|
421
|
+
*
|
|
422
|
+
* `POST /v1/projects/{project_id}/invitations/{invitation_id}/resend` (ResendProjectInvitation)
|
|
423
|
+
*/
|
|
424
|
+
resendInvitation(projectId: string, invitationId: string, body?: T.ProjectInvitationRequest, options?: RequestOptions): APIPromise<T.GetInvitationResponse>;
|
|
425
|
+
/**
|
|
426
|
+
* Restore project.
|
|
427
|
+
*
|
|
428
|
+
* Restore a deleted project within 30 days of its deletion, until its purge_scheduled_at (409
|
|
429
|
+
* restore_window_closed after, when it is purged).
|
|
430
|
+
*
|
|
431
|
+
* `POST /v1/projects/{project_id}/restore` (RestoreProject)
|
|
432
|
+
*/
|
|
433
|
+
restore(projectId: string, options?: RequestOptions): APIPromise<T.Project>;
|
|
434
|
+
/**
|
|
435
|
+
* Resume project.
|
|
436
|
+
*
|
|
437
|
+
* Resume a paused project.
|
|
438
|
+
*
|
|
439
|
+
* `POST /v1/projects/{project_id}/resume` (ResumeProject)
|
|
440
|
+
*/
|
|
441
|
+
resume(projectId: string, options?: RequestOptions): APIPromise<T.Project>;
|
|
442
|
+
/**
|
|
443
|
+
* Update project.
|
|
444
|
+
*
|
|
445
|
+
* Update an existing project.
|
|
446
|
+
*
|
|
447
|
+
* `PATCH /v1/projects/{project_id}` (UpdateProject)
|
|
448
|
+
*/
|
|
449
|
+
update(projectId: string, body: T.UpdateProjectRequest, options?: RequestOptions): APIPromise<T.Project>;
|
|
450
|
+
/**
|
|
451
|
+
* Change a project member's roles.
|
|
452
|
+
*
|
|
453
|
+
* Replace the roles a member holds on the project (admin, developer or viewer)
|
|
454
|
+
*
|
|
455
|
+
* `PATCH /v1/projects/{project_id}/members/{user_id}` (UpdateProjectMember)
|
|
456
|
+
*/
|
|
457
|
+
updateMember(projectId: string, userId: string, body: T.UpdateProjectMemberRolesRequest, options?: RequestOptions): APIPromise<T.GetMemberResponse>;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Workspaces: the credential's own workspace, its members, invitations, webhooks, billing and usage.
|
|
461
|
+
*/
|
|
462
|
+
export declare class Workspaces {
|
|
463
|
+
protected readonly core: Core;
|
|
464
|
+
/**
|
|
465
|
+
* A workspace's webhooks: subscriptions, their deliveries, and its events.
|
|
466
|
+
*/
|
|
467
|
+
readonly webhooks: WorkspacesWebhooks;
|
|
468
|
+
/** @internal */
|
|
469
|
+
constructor(core: Core);
|
|
470
|
+
/**
|
|
471
|
+
* Invite members.
|
|
472
|
+
*
|
|
473
|
+
* Invite people to the workspace by email.
|
|
474
|
+
*
|
|
475
|
+
* `POST /v1/workspaces/{workspace_id}/invitations` (CreateWorkspaceInvitations)
|
|
476
|
+
*/
|
|
477
|
+
createInvitations(workspaceId: string, body: T.InviteMembersRequest, options?: RequestOptions): APIPromise<T.InviteMembersResponse>;
|
|
478
|
+
/**
|
|
479
|
+
* Delete an invitation.
|
|
480
|
+
*
|
|
481
|
+
* Withdraw an invitation: it is deleted, and its link stops working. An invitation exists only while
|
|
482
|
+
* it is open — accepting one deletes it too, and an expired one is purged.
|
|
483
|
+
*
|
|
484
|
+
* `DELETE /v1/workspaces/{workspace_id}/invitations/{invitation_id}` (DeleteWorkspaceInvitation)
|
|
485
|
+
*/
|
|
486
|
+
deleteInvitation(workspaceId: string, invitationId: string, params?: T.DeleteWorkspaceInvitationParams, options?: RequestOptions): APIPromise<void>;
|
|
487
|
+
/**
|
|
488
|
+
* Remove a member.
|
|
489
|
+
*
|
|
490
|
+
* Remove a member from the workspace. Removing an owner is an owner's; a token acting for a Pontive
|
|
491
|
+
* user (the Pontive MCP server) is refused it with 403 actor_refused, as ownership is the dashboard's.
|
|
492
|
+
*
|
|
493
|
+
* `DELETE /v1/workspaces/{workspace_id}/members/{user_id}` (DeleteWorkspaceMember)
|
|
494
|
+
*/
|
|
495
|
+
deleteMember(workspaceId: string, userId: string, options?: RequestOptions): APIPromise<void>;
|
|
496
|
+
/**
|
|
497
|
+
* Get workspace.
|
|
498
|
+
*
|
|
499
|
+
* One workspace. A deleted one answers 404 to its members and is returned, with status deleted and
|
|
500
|
+
* deleted_at, to Pontive's staff.
|
|
501
|
+
*
|
|
502
|
+
* `GET /v1/workspaces/{workspace_id}` (GetWorkspace)
|
|
503
|
+
*/
|
|
504
|
+
get(workspaceId: string, options?: RequestOptions): APIPromise<T.Workspace>;
|
|
505
|
+
/**
|
|
506
|
+
* The caller's access to a workspace.
|
|
507
|
+
*
|
|
508
|
+
* The platform permissions the caller holds on the workspace, and the roles they hold on it directly.
|
|
509
|
+
*
|
|
510
|
+
* `GET /v1/workspaces/{workspace_id}/access` (GetWorkspaceAccess)
|
|
511
|
+
*/
|
|
512
|
+
getAccess(workspaceId: string, options?: RequestOptions): APIPromise<T.GetAccessResponse>;
|
|
513
|
+
/**
|
|
514
|
+
* Get the billing account.
|
|
515
|
+
*
|
|
516
|
+
* The workspace's plan and billing interval, the plan a pending downgrade moves it to and when
|
|
517
|
+
* (scheduled_plan, scheduled_plan_at), what it holds (projects, seats, FGA instances, custom domains),
|
|
518
|
+
* what its plan grants, and the Free checklist. Pontive bills workspaces through billing-svc on the
|
|
519
|
+
* Directory instance: plan and interval changes, payment and invoices are billing's, in its portal on
|
|
520
|
+
* the dashboard's Billing page, not here. Any workspace member reads it.
|
|
521
|
+
*
|
|
522
|
+
* `GET /v1/workspaces/{workspace_id}/billing` (GetWorkspaceBilling)
|
|
523
|
+
*/
|
|
524
|
+
getBilling(workspaceId: string, options?: RequestOptions): APIPromise<T.BillingAccount>;
|
|
525
|
+
/**
|
|
526
|
+
* Workspace usage.
|
|
527
|
+
*
|
|
528
|
+
* The current calendar month: every meter pooled across the workspace's instances against its plan's
|
|
529
|
+
* allowances and caps, split by project; tracked token counts; each project and instance. Nothing is
|
|
530
|
+
* priced here. Trails real time by up to 15 minutes.
|
|
531
|
+
*
|
|
532
|
+
* `GET /v1/workspaces/{workspace_id}/usage` (GetWorkspaceUsage)
|
|
533
|
+
*/
|
|
534
|
+
getUsage(workspaceId: string, options?: RequestOptions): APIPromise<T.WorkspaceUsage>;
|
|
535
|
+
/**
|
|
536
|
+
* List workspaces.
|
|
537
|
+
*
|
|
538
|
+
* The caller's workspaces. A deleted workspace is gone to its members: it is listed, with status
|
|
539
|
+
* deleted, to Pontive's staff alone, who restore it; status=deleted lists only those.
|
|
540
|
+
*
|
|
541
|
+
* `GET /v1/workspaces` (ListWorkspaces)
|
|
542
|
+
*
|
|
543
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
544
|
+
*/
|
|
545
|
+
list(params?: T.ListWorkspacesParams, options?: RequestOptions): PagePromise<T.Workspace, T.ListWorkspacesResponse>;
|
|
546
|
+
/**
|
|
547
|
+
* List workspace invitations.
|
|
548
|
+
*
|
|
549
|
+
* Get a list of the workspace's invitations.
|
|
550
|
+
*
|
|
551
|
+
* `GET /v1/workspaces/{workspace_id}/invitations` (ListWorkspaceInvitations)
|
|
552
|
+
*
|
|
553
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
554
|
+
*/
|
|
555
|
+
listInvitations(workspaceId: string, params?: T.ListWorkspaceInvitationsParams, options?: RequestOptions): PagePromise<T.Invitation, T.ListInvitationsResponse>;
|
|
556
|
+
/**
|
|
557
|
+
* List a member's grants.
|
|
558
|
+
*
|
|
559
|
+
* The roles a workspace member holds on the workspace's projects and instances directly, on top of
|
|
560
|
+
* what their workspace role reaches by inheritance.
|
|
561
|
+
*
|
|
562
|
+
* `GET /v1/workspaces/{workspace_id}/members/{user_id}/grants` (ListWorkspaceMemberGrants)
|
|
563
|
+
*
|
|
564
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
565
|
+
*/
|
|
566
|
+
listMemberGrants(workspaceId: string, userId: string, params?: T.ListWorkspaceMemberGrantsParams, options?: RequestOptions): PagePromise<T.Grant, T.ListGrantsResponse>;
|
|
567
|
+
/**
|
|
568
|
+
* List workspace members.
|
|
569
|
+
*
|
|
570
|
+
* Get a list of the workspace's members.
|
|
571
|
+
*
|
|
572
|
+
* `GET /v1/workspaces/{workspace_id}/members` (ListWorkspaceMembers)
|
|
573
|
+
*
|
|
574
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
575
|
+
*/
|
|
576
|
+
listMembers(workspaceId: string, params?: T.ListWorkspaceMembersParams, options?: RequestOptions): PagePromise<T.Member, T.ListMembersResponse>;
|
|
577
|
+
/**
|
|
578
|
+
* Resend an invitation.
|
|
579
|
+
*
|
|
580
|
+
* Send an outstanding invitation again.
|
|
581
|
+
*
|
|
582
|
+
* `POST /v1/workspaces/{workspace_id}/invitations/{invitation_id}/resend` (ResendWorkspaceInvitation)
|
|
583
|
+
*/
|
|
584
|
+
resendInvitation(workspaceId: string, invitationId: string, body?: T.ResendInvitationRequest, options?: RequestOptions): APIPromise<T.GetInvitationResponse>;
|
|
585
|
+
/**
|
|
586
|
+
* Update workspace.
|
|
587
|
+
*
|
|
588
|
+
* Update an existing workspace. The name, description and metadata need workspace:manage; the billing
|
|
589
|
+
* contact needs workspace:billing.manage, and a request carrying only the billing contact needs
|
|
590
|
+
* nothing else, so a billing member sets where the invoices go. A token acting for a Pontive user (the
|
|
591
|
+
* Pontive MCP server) is refused the billing contact with 403 actor_refused: it is set in the
|
|
592
|
+
* dashboard.
|
|
593
|
+
*
|
|
594
|
+
* `PATCH /v1/workspaces/{workspace_id}` (UpdateWorkspace)
|
|
595
|
+
*/
|
|
596
|
+
update(workspaceId: string, body: T.UpdateWorkspaceRequest, options?: RequestOptions): APIPromise<T.Workspace>;
|
|
597
|
+
/**
|
|
598
|
+
* Update a member's roles.
|
|
599
|
+
*
|
|
600
|
+
* Replace the roles a member holds in the workspace. Granting owner, or changing an owner's roles, is
|
|
601
|
+
* an owner's; a token acting for a Pontive user (the Pontive MCP server) is refused it with 403
|
|
602
|
+
* actor_refused, as ownership is the dashboard's.
|
|
603
|
+
*
|
|
604
|
+
* `PATCH /v1/workspaces/{workspace_id}/members/{user_id}` (UpdateWorkspaceMember)
|
|
605
|
+
*/
|
|
606
|
+
updateMember(workspaceId: string, userId: string, body: T.UpdateMemberRolesRequest, options?: RequestOptions): APIPromise<T.GetMemberResponse>;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* A workspace's webhooks: subscriptions, their deliveries, and its events.
|
|
610
|
+
*/
|
|
611
|
+
export declare class WorkspacesWebhooks {
|
|
612
|
+
protected readonly core: Core;
|
|
613
|
+
/** @internal */
|
|
614
|
+
constructor(core: Core);
|
|
615
|
+
/**
|
|
616
|
+
* Create a workspace webhook.
|
|
617
|
+
*
|
|
618
|
+
* Register an endpoint for the workspace's events. The Standard Webhooks signing secret, whsec_…, is
|
|
619
|
+
* answered only here. The webhook is bound to the workspace in the path. Needs
|
|
620
|
+
* workspace:webhooks.manage.
|
|
621
|
+
*
|
|
622
|
+
* `POST /v1/workspaces/{workspace_id}/webhooks/subscriptions` (CreateWorkspaceWebhookSubscription)
|
|
623
|
+
*/
|
|
624
|
+
createSubscription(workspaceId: string, body: T.CreateSubscriptionRequest, options?: RequestOptions): APIPromise<T.Subscription>;
|
|
625
|
+
/**
|
|
626
|
+
* Delete a workspace webhook.
|
|
627
|
+
*
|
|
628
|
+
* Needs workspace:webhooks.manage.
|
|
629
|
+
*
|
|
630
|
+
* `DELETE /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}`
|
|
631
|
+
* (DeleteWorkspaceWebhookSubscription)
|
|
632
|
+
*/
|
|
633
|
+
deleteSubscription(workspaceId: string, subscriptionId: string, options?: RequestOptions): APIPromise<void>;
|
|
634
|
+
/**
|
|
635
|
+
* Get a workspace webhook's activity.
|
|
636
|
+
*
|
|
637
|
+
* The webhook's requests and failures per interval: one bucket per hour or UTC day of the window,
|
|
638
|
+
* oldest first, empty ones included. Needs workspace:webhooks.read.
|
|
639
|
+
*
|
|
640
|
+
* `GET /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}/activity`
|
|
641
|
+
* (GetWorkspaceWebhookActivity)
|
|
642
|
+
*/
|
|
643
|
+
getActivity(workspaceId: string, subscriptionId: string, params?: T.GetWorkspaceWebhookActivityParams, options?: RequestOptions): APIPromise<T.Activity>;
|
|
644
|
+
/**
|
|
645
|
+
* Get a workspace webhook's delivery.
|
|
646
|
+
*
|
|
647
|
+
* Needs workspace:webhooks.read. A delivery of another webhook is 404.
|
|
648
|
+
*
|
|
649
|
+
* `GET
|
|
650
|
+
* /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}/deliveries/{delivery_id}`
|
|
651
|
+
* (GetWorkspaceWebhookDelivery)
|
|
652
|
+
*/
|
|
653
|
+
getDelivery(workspaceId: string, subscriptionId: string, deliveryId: string, options?: RequestOptions): APIPromise<T.Delivery>;
|
|
654
|
+
/**
|
|
655
|
+
* Get one of the workspace's events.
|
|
656
|
+
*
|
|
657
|
+
* Needs workspace:webhooks.read. Another workspace's event is 404.
|
|
658
|
+
*
|
|
659
|
+
* `GET /v1/workspaces/{workspace_id}/webhooks/events/{event_id}` (GetWorkspaceWebhookEvent)
|
|
660
|
+
*/
|
|
661
|
+
getEvent(workspaceId: string, eventId: string, options?: RequestOptions): APIPromise<T.Event>;
|
|
662
|
+
/**
|
|
663
|
+
* Get a workspace webhook.
|
|
664
|
+
*
|
|
665
|
+
* Needs workspace:webhooks.read. Another workspace's webhook is 404.
|
|
666
|
+
*
|
|
667
|
+
* `GET /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}`
|
|
668
|
+
* (GetWorkspaceWebhookSubscription)
|
|
669
|
+
*/
|
|
670
|
+
getSubscription(workspaceId: string, subscriptionId: string, options?: RequestOptions): APIPromise<T.Subscription>;
|
|
671
|
+
/**
|
|
672
|
+
* List a workspace webhook's deliveries.
|
|
673
|
+
*
|
|
674
|
+
* The webhook's delivery attempts, walked by cursor as the events are. latest=true keeps each event's
|
|
675
|
+
* newest attempt: one row per event. Needs workspace:webhooks.read.
|
|
676
|
+
*
|
|
677
|
+
* `GET /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}/deliveries`
|
|
678
|
+
* (ListWorkspaceWebhookDeliveries)
|
|
679
|
+
*
|
|
680
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
681
|
+
*/
|
|
682
|
+
listDeliveries(workspaceId: string, subscriptionId: string, params?: T.ListWorkspaceWebhookDeliveriesParams, options?: RequestOptions): PagePromise<T.Delivery, T.ListDeliveriesResponse>;
|
|
683
|
+
/**
|
|
684
|
+
* List the workspace's webhook event types.
|
|
685
|
+
*
|
|
686
|
+
* The workspace catalog: the events a workspace's webhook can subscribe to, the webhook meta-events
|
|
687
|
+
* among them. Needs workspace:webhooks.read.
|
|
688
|
+
*
|
|
689
|
+
* `GET /v1/workspaces/{workspace_id}/webhooks/event-types` (ListWorkspaceWebhookEventTypes)
|
|
690
|
+
*
|
|
691
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
692
|
+
*/
|
|
693
|
+
listEventTypes(workspaceId: string, params?: T.ListWorkspaceWebhookEventTypesParams, options?: RequestOptions): PagePromise<T.EventType, T.ListEventTypesResponse>;
|
|
694
|
+
/**
|
|
695
|
+
* List the workspace's events.
|
|
696
|
+
*
|
|
697
|
+
* The workspace's events, walked by cursor: newest first, next_cursor passed as before to page back,
|
|
698
|
+
* null at the end, or as after to poll for what was created since, oldest first. Needs
|
|
699
|
+
* workspace:webhooks.read.
|
|
700
|
+
*
|
|
701
|
+
* `GET /v1/workspaces/{workspace_id}/webhooks/events` (ListWorkspaceWebhookEvents)
|
|
702
|
+
*
|
|
703
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
704
|
+
*/
|
|
705
|
+
listEvents(workspaceId: string, params?: T.ListWorkspaceWebhookEventsParams, options?: RequestOptions): PagePromise<T.Event, T.ListEventsResponse>;
|
|
706
|
+
/**
|
|
707
|
+
* List the workspace's webhooks.
|
|
708
|
+
*
|
|
709
|
+
* Needs workspace:webhooks.read.
|
|
710
|
+
*
|
|
711
|
+
* `GET /v1/workspaces/{workspace_id}/webhooks/subscriptions` (ListWorkspaceWebhookSubscriptions)
|
|
712
|
+
*
|
|
713
|
+
* Await it for the first page, or iterate it with `for await` for every item across pages.
|
|
714
|
+
*/
|
|
715
|
+
listSubscriptions(workspaceId: string, params?: T.ListWorkspaceWebhookSubscriptionsParams, options?: RequestOptions): PagePromise<T.Subscription, T.ListSubscriptionsResponse>;
|
|
716
|
+
/**
|
|
717
|
+
* Pause a workspace webhook.
|
|
718
|
+
*
|
|
719
|
+
* Stop delivering without losing the configuration. Needs workspace:webhooks.manage.
|
|
720
|
+
*
|
|
721
|
+
* `POST /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}/pause`
|
|
722
|
+
* (PauseWorkspaceWebhookSubscription)
|
|
723
|
+
*/
|
|
724
|
+
pauseSubscription(workspaceId: string, subscriptionId: string, options?: RequestOptions): APIPromise<T.Subscription>;
|
|
725
|
+
/**
|
|
726
|
+
* Resume a workspace webhook.
|
|
727
|
+
*
|
|
728
|
+
* Reactivate a paused, failing or disabled webhook. Needs workspace:webhooks.manage.
|
|
729
|
+
*
|
|
730
|
+
* `POST /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}/resume`
|
|
731
|
+
* (ResumeWorkspaceWebhookSubscription)
|
|
732
|
+
*/
|
|
733
|
+
resumeSubscription(workspaceId: string, subscriptionId: string, options?: RequestOptions): APIPromise<T.Subscription>;
|
|
734
|
+
/**
|
|
735
|
+
* Resend a workspace webhook's delivery.
|
|
736
|
+
*
|
|
737
|
+
* Resend the event from its newest attempt. A failed, errored or succeeded attempt gets a fresh
|
|
738
|
+
* attempt sent now; a pending one, a scheduled retry, is sent now instead of at its due time. An
|
|
739
|
+
* attempt being sent, or one that already has a successor, answers 409. Needs
|
|
740
|
+
* workspace:webhooks.manage.
|
|
741
|
+
*
|
|
742
|
+
* `POST
|
|
743
|
+
* /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}/deliveries/{delivery_id}/retry`
|
|
744
|
+
* (RetryWorkspaceWebhookDelivery)
|
|
745
|
+
*/
|
|
746
|
+
retryDelivery(workspaceId: string, subscriptionId: string, deliveryId: string, options?: RequestOptions): APIPromise<T.Delivery>;
|
|
747
|
+
/**
|
|
748
|
+
* Rotate a workspace webhook's signing secret.
|
|
749
|
+
*
|
|
750
|
+
* Mint a new signing secret, answered only here. The previous secret keeps signing beside it for
|
|
751
|
+
* expire_previous_in seconds: 0 to 604800, 86400 by default, 0 ending it now. Needs
|
|
752
|
+
* workspace:webhooks.manage.
|
|
753
|
+
*
|
|
754
|
+
* `POST /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}/rotate-secret`
|
|
755
|
+
* (RotateWorkspaceWebhookSecret)
|
|
756
|
+
*/
|
|
757
|
+
rotateSecret(workspaceId: string, subscriptionId: string, body?: T.RotateSecretRequest, options?: RequestOptions): APIPromise<T.Subscription>;
|
|
758
|
+
/**
|
|
759
|
+
* Update a workspace webhook.
|
|
760
|
+
*
|
|
761
|
+
* Change url, description, event_types, headers or metadata. Needs workspace:webhooks.manage.
|
|
762
|
+
*
|
|
763
|
+
* `PATCH /v1/workspaces/{workspace_id}/webhooks/subscriptions/{subscription_id}`
|
|
764
|
+
* (UpdateWorkspaceWebhookSubscription)
|
|
765
|
+
*/
|
|
766
|
+
updateSubscription(workspaceId: string, subscriptionId: string, body: T.UpdateSubscriptionRequest, options?: RequestOptions): APIPromise<T.Subscription>;
|
|
767
|
+
}
|