@vercel/sdk 1.6.2 → 1.6.3
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 +0 -10
- package/bin/mcp-server.js +1163 -2379
- package/bin/mcp-server.js.map +23 -38
- package/docs/sdks/integrations/README.md +0 -161
- package/docs/sdks/logdrains/README.md +0 -260
- package/esm/__tests__/integrations.test.js +5 -40
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/logdrains.test.js +7 -89
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/security.test.js +1 -14
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/projectsCreateProject.js +2 -2
- package/esm/funcs/projectsCreateProject.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/matchers.d.ts +3 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +10 -0
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/sdks.js +7 -2
- package/esm/lib/sdks.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +1 -11
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/authuser.d.ts +41 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +29 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +3 -3
- package/esm/models/canceldeploymentop.js +1 -1
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createlogdrainop.d.ts +51 -51
- package/esm/models/createlogdrainop.d.ts.map +1 -1
- package/esm/models/createlogdrainop.js +74 -75
- package/esm/models/createlogdrainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +46 -16
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +17 -5
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/exchangessotokenop.d.ts +34 -0
- package/esm/models/exchangessotokenop.d.ts.map +1 -1
- package/esm/models/exchangessotokenop.js +25 -0
- package/esm/models/exchangessotokenop.js.map +1 -1
- package/esm/models/getconfigurationsop.d.ts +19 -16
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +25 -27
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getcustomenvironmentop.d.ts +3 -0
- package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
- package/esm/models/getcustomenvironmentop.js.map +1 -1
- package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
- package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
- package/esm/models/getintegrationlogdrainsop.js +14 -13
- package/esm/models/getintegrationlogdrainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +46 -16
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +17 -5
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +9 -9
- package/esm/models/getteammembersop.js +3 -3
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +46 -16
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +17 -5
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +46 -16
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +17 -5
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +569 -512
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +703 -645
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/integrations.d.ts +0 -16
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +0 -20
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/logdrains.d.ts +0 -24
- package/esm/sdk/logdrains.d.ts.map +1 -1
- package/esm/sdk/logdrains.js +0 -30
- package/esm/sdk/logdrains.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/integrations.test.ts +9 -44
- package/src/__tests__/logdrains.test.ts +13 -95
- package/src/__tests__/security.test.ts +1 -14
- package/src/funcs/projectsCreateProject.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +8 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -11
- package/src/models/authuser.ts +74 -0
- package/src/models/canceldeploymentop.ts +1 -1
- package/src/models/createlogdrainop.ts +95 -112
- package/src/models/createprojectop.ts +42 -6
- package/src/models/exchangessotokenop.ts +44 -0
- package/src/models/getconfigurationsop.ts +34 -39
- package/src/models/getcustomenvironmentop.ts +3 -0
- package/src/models/getintegrationlogdrainsop.ts +15 -20
- package/src/models/getprojectsop.ts +42 -6
- package/src/models/getteammembersop.ts +3 -3
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
- package/src/models/updateprojectdatacacheop.ts +42 -6
- package/src/models/updateprojectop.ts +42 -6
- package/src/models/userevent.ts +1328 -1193
- package/src/sdk/integrations.ts +0 -44
- package/src/sdk/logdrains.ts +0 -66
- package/vercel-spec.json +341 -1272
- package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
- package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
- package/esm/funcs/integrationsGitNamespaces.js +0 -86
- package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
- package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
- package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
- package/esm/funcs/integrationsSearchRepo.js +0 -89
- package/esm/funcs/integrationsSearchRepo.js.map +0 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +0 -86
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
- package/esm/funcs/logDrainsGetAllLogDrains.js +0 -88
- package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js +0 -92
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
- package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
- package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
- package/esm/mcp-server/tools/integrationsGitNamespaces.js.map +0 -1
- package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
- package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
- package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
- package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
- package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
- package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/createconfigurablelogdrainop.js +0 -348
- package/esm/models/createconfigurablelogdrainop.js.map +0 -1
- package/esm/models/getalllogdrainsop.d.ts +0 -294
- package/esm/models/getalllogdrainsop.d.ts.map +0 -1
- package/esm/models/getalllogdrainsop.js +0 -231
- package/esm/models/getalllogdrainsop.js.map +0 -1
- package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
- package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/getconfigurablelogdrainop.js +0 -230
- package/esm/models/getconfigurablelogdrainop.js.map +0 -1
- package/esm/models/gitnamespacesop.d.ts +0 -126
- package/esm/models/gitnamespacesop.d.ts.map +0 -1
- package/esm/models/gitnamespacesop.js +0 -115
- package/esm/models/gitnamespacesop.js.map +0 -1
- package/esm/models/searchrepoop.d.ts +0 -421
- package/esm/models/searchrepoop.d.ts.map +0 -1
- package/esm/models/searchrepoop.js +0 -385
- package/esm/models/searchrepoop.js.map +0 -1
- package/src/funcs/integrationsGitNamespaces.ts +0 -185
- package/src/funcs/integrationsSearchRepo.ts +0 -181
- package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
- package/src/funcs/logDrainsGetAllLogDrains.ts +0 -187
- package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
- package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
- package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
- package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
- package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
- package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
- package/src/models/createconfigurablelogdrainop.ts +0 -652
- package/src/models/getalllogdrainsop.ts +0 -416
- package/src/models/getconfigurablelogdrainop.ts +0 -420
- package/src/models/gitnamespacesop.ts +0 -235
- package/src/models/searchrepoop.ts +0 -784
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
* [getConfigurations](#getconfigurations) - Get configurations for the authenticated user or team
|
|
10
10
|
* [getConfiguration](#getconfiguration) - Retrieve an integration configuration
|
|
11
11
|
* [deleteConfiguration](#deleteconfiguration) - Delete an integration configuration
|
|
12
|
-
* [gitNamespaces](#gitnamespaces) - List git namespaces by provider
|
|
13
|
-
* [searchRepo](#searchrepo) - List git repositories linked to namespace by provider
|
|
14
12
|
|
|
15
13
|
## updateIntegrationDeploymentAction
|
|
16
14
|
|
|
@@ -338,163 +336,4 @@ run();
|
|
|
338
336
|
| models.VercelBadRequestError | 400 | application/json |
|
|
339
337
|
| models.VercelForbiddenError | 401 | application/json |
|
|
340
338
|
| models.VercelNotFoundError | 404 | application/json |
|
|
341
|
-
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
342
|
-
|
|
343
|
-
## gitNamespaces
|
|
344
|
-
|
|
345
|
-
Lists git namespaces for a supported provider. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider is not provided, it will try to obtain it from the user that authenticated the request.
|
|
346
|
-
|
|
347
|
-
### Example Usage
|
|
348
|
-
|
|
349
|
-
```typescript
|
|
350
|
-
import { Vercel } from "@vercel/sdk";
|
|
351
|
-
|
|
352
|
-
const vercel = new Vercel({
|
|
353
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
354
|
-
});
|
|
355
|
-
|
|
356
|
-
async function run() {
|
|
357
|
-
const result = await vercel.integrations.gitNamespaces({
|
|
358
|
-
host: "ghes-test.now.systems",
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
// Handle the result
|
|
362
|
-
console.log(result);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
run();
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
### Standalone function
|
|
369
|
-
|
|
370
|
-
The standalone function version of this method:
|
|
371
|
-
|
|
372
|
-
```typescript
|
|
373
|
-
import { VercelCore } from "@vercel/sdk/core.js";
|
|
374
|
-
import { integrationsGitNamespaces } from "@vercel/sdk/funcs/integrationsGitNamespaces.js";
|
|
375
|
-
|
|
376
|
-
// Use `VercelCore` for best tree-shaking performance.
|
|
377
|
-
// You can create one instance of it to use across an application.
|
|
378
|
-
const vercel = new VercelCore({
|
|
379
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
380
|
-
});
|
|
381
|
-
|
|
382
|
-
async function run() {
|
|
383
|
-
const res = await integrationsGitNamespaces(vercel, {
|
|
384
|
-
host: "ghes-test.now.systems",
|
|
385
|
-
});
|
|
386
|
-
|
|
387
|
-
if (!res.ok) {
|
|
388
|
-
throw res.error;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
const { value: result } = res;
|
|
392
|
-
|
|
393
|
-
// Handle the result
|
|
394
|
-
console.log(result);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
run();
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
### Parameters
|
|
401
|
-
|
|
402
|
-
| Parameter | Type | Required | Description |
|
|
403
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
404
|
-
| `request` | [models.GitNamespacesRequest](../../models/gitnamespacesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
405
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
406
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
407
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
408
|
-
|
|
409
|
-
### Response
|
|
410
|
-
|
|
411
|
-
**Promise\<[models.GitNamespacesResponseBody[]](../../models/.md)\>**
|
|
412
|
-
|
|
413
|
-
### Errors
|
|
414
|
-
|
|
415
|
-
| Error Type | Status Code | Content Type |
|
|
416
|
-
| ---------------------------- | ---------------------------- | ---------------------------- |
|
|
417
|
-
| models.VercelBadRequestError | 400 | application/json |
|
|
418
|
-
| models.VercelForbiddenError | 401 | application/json |
|
|
419
|
-
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
420
|
-
|
|
421
|
-
## searchRepo
|
|
422
|
-
|
|
423
|
-
Lists git repositories linked to a namespace `id` for a supported provider. A specific namespace `id` can be obtained via the `git-namespaces` endpoint. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider or namespace is not provided, it will try to obtain it from the user that authenticated the request.
|
|
424
|
-
|
|
425
|
-
### Example Usage
|
|
426
|
-
|
|
427
|
-
```typescript
|
|
428
|
-
import { Vercel } from "@vercel/sdk";
|
|
429
|
-
|
|
430
|
-
const vercel = new Vercel({
|
|
431
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
async function run() {
|
|
435
|
-
const result = await vercel.integrations.searchRepo({
|
|
436
|
-
host: "ghes-test.now.systems",
|
|
437
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
438
|
-
slug: "my-team-url-slug",
|
|
439
|
-
});
|
|
440
|
-
|
|
441
|
-
// Handle the result
|
|
442
|
-
console.log(result);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
run();
|
|
446
|
-
```
|
|
447
|
-
|
|
448
|
-
### Standalone function
|
|
449
|
-
|
|
450
|
-
The standalone function version of this method:
|
|
451
|
-
|
|
452
|
-
```typescript
|
|
453
|
-
import { VercelCore } from "@vercel/sdk/core.js";
|
|
454
|
-
import { integrationsSearchRepo } from "@vercel/sdk/funcs/integrationsSearchRepo.js";
|
|
455
|
-
|
|
456
|
-
// Use `VercelCore` for best tree-shaking performance.
|
|
457
|
-
// You can create one instance of it to use across an application.
|
|
458
|
-
const vercel = new VercelCore({
|
|
459
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
460
|
-
});
|
|
461
|
-
|
|
462
|
-
async function run() {
|
|
463
|
-
const res = await integrationsSearchRepo(vercel, {
|
|
464
|
-
host: "ghes-test.now.systems",
|
|
465
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
466
|
-
slug: "my-team-url-slug",
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
if (!res.ok) {
|
|
470
|
-
throw res.error;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
const { value: result } = res;
|
|
474
|
-
|
|
475
|
-
// Handle the result
|
|
476
|
-
console.log(result);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
run();
|
|
480
|
-
```
|
|
481
|
-
|
|
482
|
-
### Parameters
|
|
483
|
-
|
|
484
|
-
| Parameter | Type | Required | Description |
|
|
485
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
486
|
-
| `request` | [models.SearchRepoRequest](../../models/searchreporequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
487
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
488
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
489
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
490
|
-
|
|
491
|
-
### Response
|
|
492
|
-
|
|
493
|
-
**Promise\<[models.SearchRepoResponseBody](../../models/searchreporesponsebody.md)\>**
|
|
494
|
-
|
|
495
|
-
### Errors
|
|
496
|
-
|
|
497
|
-
| Error Type | Status Code | Content Type |
|
|
498
|
-
| ---------------------------- | ---------------------------- | ---------------------------- |
|
|
499
|
-
| models.VercelBadRequestError | 400 | application/json |
|
|
500
339
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -5,97 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [getConfigurableLogDrain](#getconfigurablelogdrain) - Retrieves a Configurable Log Drain
|
|
9
8
|
* [deleteConfigurableLogDrain](#deleteconfigurablelogdrain) - Deletes a Configurable Log Drain
|
|
10
|
-
* [getAllLogDrains](#getalllogdrains) - Retrieves a list of all the Log Drains
|
|
11
|
-
* [createConfigurableLogDrain](#createconfigurablelogdrain) - Creates a Configurable Log Drain
|
|
12
9
|
* [getIntegrationLogDrains](#getintegrationlogdrains) - Retrieves a list of Integration log drains
|
|
13
10
|
* [createLogDrain](#createlogdrain) - Creates a new Integration Log Drain
|
|
14
11
|
* [deleteIntegrationLogDrain](#deleteintegrationlogdrain) - Deletes the Integration log drain with the provided `id`
|
|
15
12
|
|
|
16
|
-
## getConfigurableLogDrain
|
|
17
|
-
|
|
18
|
-
Retrieves a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
|
|
19
|
-
|
|
20
|
-
### Example Usage
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { Vercel } from "@vercel/sdk";
|
|
24
|
-
|
|
25
|
-
const vercel = new Vercel({
|
|
26
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
async function run() {
|
|
30
|
-
const result = await vercel.logDrains.getConfigurableLogDrain({
|
|
31
|
-
id: "<id>",
|
|
32
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
33
|
-
slug: "my-team-url-slug",
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
// Handle the result
|
|
37
|
-
console.log(result);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
run();
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Standalone function
|
|
44
|
-
|
|
45
|
-
The standalone function version of this method:
|
|
46
|
-
|
|
47
|
-
```typescript
|
|
48
|
-
import { VercelCore } from "@vercel/sdk/core.js";
|
|
49
|
-
import { logDrainsGetConfigurableLogDrain } from "@vercel/sdk/funcs/logDrainsGetConfigurableLogDrain.js";
|
|
50
|
-
|
|
51
|
-
// Use `VercelCore` for best tree-shaking performance.
|
|
52
|
-
// You can create one instance of it to use across an application.
|
|
53
|
-
const vercel = new VercelCore({
|
|
54
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
async function run() {
|
|
58
|
-
const res = await logDrainsGetConfigurableLogDrain(vercel, {
|
|
59
|
-
id: "<id>",
|
|
60
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
61
|
-
slug: "my-team-url-slug",
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
if (!res.ok) {
|
|
65
|
-
throw res.error;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const { value: result } = res;
|
|
69
|
-
|
|
70
|
-
// Handle the result
|
|
71
|
-
console.log(result);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
run();
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### Parameters
|
|
78
|
-
|
|
79
|
-
| Parameter | Type | Required | Description |
|
|
80
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
81
|
-
| `request` | [models.GetConfigurableLogDrainRequest](../../models/getconfigurablelogdrainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
82
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
83
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
84
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
85
|
-
|
|
86
|
-
### Response
|
|
87
|
-
|
|
88
|
-
**Promise\<[models.GetConfigurableLogDrainResponseBody](../../models/getconfigurablelogdrainresponsebody.md)\>**
|
|
89
|
-
|
|
90
|
-
### Errors
|
|
91
|
-
|
|
92
|
-
| Error Type | Status Code | Content Type |
|
|
93
|
-
| ---------------------------- | ---------------------------- | ---------------------------- |
|
|
94
|
-
| models.VercelBadRequestError | 400 | application/json |
|
|
95
|
-
| models.VercelForbiddenError | 401 | application/json |
|
|
96
|
-
| models.VercelNotFoundError | 404 | application/json |
|
|
97
|
-
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
98
|
-
|
|
99
13
|
## deleteConfigurableLogDrain
|
|
100
14
|
|
|
101
15
|
Deletes a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be deleted.
|
|
@@ -177,180 +91,6 @@ run();
|
|
|
177
91
|
| models.VercelNotFoundError | 404 | application/json |
|
|
178
92
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
179
93
|
|
|
180
|
-
## getAllLogDrains
|
|
181
|
-
|
|
182
|
-
Retrieves a list of all the Log Drains owned by the account. This endpoint must be called with an account AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated account can be accessed.
|
|
183
|
-
|
|
184
|
-
### Example Usage
|
|
185
|
-
|
|
186
|
-
```typescript
|
|
187
|
-
import { Vercel } from "@vercel/sdk";
|
|
188
|
-
|
|
189
|
-
const vercel = new Vercel({
|
|
190
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
async function run() {
|
|
194
|
-
const result = await vercel.logDrains.getAllLogDrains({
|
|
195
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
196
|
-
slug: "my-team-url-slug",
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
// Handle the result
|
|
200
|
-
console.log(result);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
run();
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### Standalone function
|
|
207
|
-
|
|
208
|
-
The standalone function version of this method:
|
|
209
|
-
|
|
210
|
-
```typescript
|
|
211
|
-
import { VercelCore } from "@vercel/sdk/core.js";
|
|
212
|
-
import { logDrainsGetAllLogDrains } from "@vercel/sdk/funcs/logDrainsGetAllLogDrains.js";
|
|
213
|
-
|
|
214
|
-
// Use `VercelCore` for best tree-shaking performance.
|
|
215
|
-
// You can create one instance of it to use across an application.
|
|
216
|
-
const vercel = new VercelCore({
|
|
217
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
async function run() {
|
|
221
|
-
const res = await logDrainsGetAllLogDrains(vercel, {
|
|
222
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
223
|
-
slug: "my-team-url-slug",
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
if (!res.ok) {
|
|
227
|
-
throw res.error;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
const { value: result } = res;
|
|
231
|
-
|
|
232
|
-
// Handle the result
|
|
233
|
-
console.log(result);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
run();
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
### Parameters
|
|
240
|
-
|
|
241
|
-
| Parameter | Type | Required | Description |
|
|
242
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
243
|
-
| `request` | [models.GetAllLogDrainsRequest](../../models/getalllogdrainsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
244
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
245
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
246
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
247
|
-
|
|
248
|
-
### Response
|
|
249
|
-
|
|
250
|
-
**Promise\<[models.GetAllLogDrainsResponseBody[]](../../models/.md)\>**
|
|
251
|
-
|
|
252
|
-
### Errors
|
|
253
|
-
|
|
254
|
-
| Error Type | Status Code | Content Type |
|
|
255
|
-
| ---------------------------- | ---------------------------- | ---------------------------- |
|
|
256
|
-
| models.VercelBadRequestError | 400 | application/json |
|
|
257
|
-
| models.VercelForbiddenError | 401 | application/json |
|
|
258
|
-
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
259
|
-
|
|
260
|
-
## createConfigurableLogDrain
|
|
261
|
-
|
|
262
|
-
Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
|
|
263
|
-
|
|
264
|
-
### Example Usage
|
|
265
|
-
|
|
266
|
-
```typescript
|
|
267
|
-
import { Vercel } from "@vercel/sdk";
|
|
268
|
-
|
|
269
|
-
const vercel = new Vercel({
|
|
270
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
async function run() {
|
|
274
|
-
const result = await vercel.logDrains.createConfigurableLogDrain({
|
|
275
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
276
|
-
slug: "my-team-url-slug",
|
|
277
|
-
requestBody: {
|
|
278
|
-
deliveryFormat: "json",
|
|
279
|
-
url: "https://sugary-technician.name",
|
|
280
|
-
sources: [
|
|
281
|
-
"external",
|
|
282
|
-
],
|
|
283
|
-
},
|
|
284
|
-
});
|
|
285
|
-
|
|
286
|
-
// Handle the result
|
|
287
|
-
console.log(result);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
run();
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
### Standalone function
|
|
294
|
-
|
|
295
|
-
The standalone function version of this method:
|
|
296
|
-
|
|
297
|
-
```typescript
|
|
298
|
-
import { VercelCore } from "@vercel/sdk/core.js";
|
|
299
|
-
import { logDrainsCreateConfigurableLogDrain } from "@vercel/sdk/funcs/logDrainsCreateConfigurableLogDrain.js";
|
|
300
|
-
|
|
301
|
-
// Use `VercelCore` for best tree-shaking performance.
|
|
302
|
-
// You can create one instance of it to use across an application.
|
|
303
|
-
const vercel = new VercelCore({
|
|
304
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
305
|
-
});
|
|
306
|
-
|
|
307
|
-
async function run() {
|
|
308
|
-
const res = await logDrainsCreateConfigurableLogDrain(vercel, {
|
|
309
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
310
|
-
slug: "my-team-url-slug",
|
|
311
|
-
requestBody: {
|
|
312
|
-
deliveryFormat: "json",
|
|
313
|
-
url: "https://sugary-technician.name",
|
|
314
|
-
sources: [
|
|
315
|
-
"external",
|
|
316
|
-
],
|
|
317
|
-
},
|
|
318
|
-
});
|
|
319
|
-
|
|
320
|
-
if (!res.ok) {
|
|
321
|
-
throw res.error;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
const { value: result } = res;
|
|
325
|
-
|
|
326
|
-
// Handle the result
|
|
327
|
-
console.log(result);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
run();
|
|
331
|
-
```
|
|
332
|
-
|
|
333
|
-
### Parameters
|
|
334
|
-
|
|
335
|
-
| Parameter | Type | Required | Description |
|
|
336
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
337
|
-
| `request` | [models.CreateConfigurableLogDrainRequest](../../models/createconfigurablelogdrainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
338
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
339
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
340
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
341
|
-
|
|
342
|
-
### Response
|
|
343
|
-
|
|
344
|
-
**Promise\<[models.CreateConfigurableLogDrainResponseBody](../../models/createconfigurablelogdrainresponsebody.md)\>**
|
|
345
|
-
|
|
346
|
-
### Errors
|
|
347
|
-
|
|
348
|
-
| Error Type | Status Code | Content Type |
|
|
349
|
-
| ---------------------------- | ---------------------------- | ---------------------------- |
|
|
350
|
-
| models.VercelBadRequestError | 400 | application/json |
|
|
351
|
-
| models.VercelForbiddenError | 401 | application/json |
|
|
352
|
-
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
353
|
-
|
|
354
94
|
## getIntegrationLogDrains
|
|
355
95
|
|
|
356
96
|
Retrieves a list of all Integration log drains that are defined for the authenticated user or team. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import { expect, test } from "vitest";
|
|
4
|
+
import { assert, expect, it, test } from "vitest";
|
|
5
5
|
import { Vercel } from "../index.js";
|
|
6
6
|
import { createTestHTTPClient } from "./testclient.js";
|
|
7
7
|
test("Integrations Get Configuration", async () => {
|
|
@@ -54,45 +54,10 @@ test("Integrations Delete Configuration", async () => {
|
|
|
54
54
|
slug: "my-team-url-slug",
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const vercel = new Vercel({
|
|
60
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
61
|
-
httpClient: testHttpClient,
|
|
62
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
63
|
-
});
|
|
64
|
-
const result = await vercel.integrations.gitNamespaces({
|
|
65
|
-
host: "ghes-test.now.systems",
|
|
66
|
-
});
|
|
67
|
-
expect(result).toBeDefined();
|
|
68
|
-
expect(result).toEqual([
|
|
69
|
-
{
|
|
70
|
-
provider: "<value>",
|
|
71
|
-
slug: "<value>",
|
|
72
|
-
id: "8350.19",
|
|
73
|
-
ownerType: "<value>",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
provider: "<value>",
|
|
77
|
-
slug: "<value>",
|
|
78
|
-
id: "4647.99",
|
|
79
|
-
ownerType: "<value>",
|
|
80
|
-
},
|
|
81
|
-
]);
|
|
57
|
+
it.skip("Integrations Git Namespaces", async () => {
|
|
58
|
+
assert.fail("incomplete test found please make sure to address the following errors: [`workflow step gitNamespaces.test referencing operation gitNamespaces not found in document`]");
|
|
82
59
|
});
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const vercel = new Vercel({
|
|
86
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
87
|
-
httpClient: testHttpClient,
|
|
88
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
89
|
-
});
|
|
90
|
-
const result = await vercel.integrations.searchRepo({
|
|
91
|
-
host: "ghes-test.now.systems",
|
|
92
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
93
|
-
slug: "my-team-url-slug",
|
|
94
|
-
});
|
|
95
|
-
expect(result).toBeDefined();
|
|
96
|
-
expect(result).toEqual({});
|
|
60
|
+
it.skip("Integrations Search Repo", async () => {
|
|
61
|
+
assert.fail("incomplete test found please make sure to address the following errors: [`workflow step searchRepo.test referencing operation searchRepo not found in document`]");
|
|
97
62
|
});
|
|
98
63
|
//# sourceMappingURL=integrations.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.test.js","sourceRoot":"","sources":["../../src/__tests__/integrations.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"integrations.test.js","sourceRoot":"","sources":["../../src/__tests__/integrations.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;IAChD,MAAM,cAAc,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;IAEhE,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC;QACxB,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,wBAAwB;QACrE,UAAU,EAAE,cAAc;QAC1B,WAAW,EAAE,0BAA0B;KACxC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,gBAAgB,CAAC;QACxD,EAAE,EAAE,+BAA+B;QACnC,MAAM,EAAE,+BAA+B;QACvC,IAAI,EAAE,kBAAkB;KACzB,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,aAAa;QACxB,EAAE,EAAE,+BAA+B;QACnC,aAAa,EAAE,8BAA8B;QAC7C,OAAO,EAAE,0BAA0B;QACnC,QAAQ,EAAE;YACR,kCAAkC;SACnC;QACD,MAAM,EAAE,aAAa;QACrB,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,+BAA+B;QACvC,IAAI,EAAE,2BAA2B;QACjC,SAAS,EAAE,aAAa;QACxB,MAAM,EAAE,0BAA0B;QAClC,MAAM,EAAE;YACN,cAAc;YACd,sBAAsB;SACvB;QACD,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,aAAa;QACxB,iBAAiB,EAAE,aAAa;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;IACnD,MAAM,cAAc,GAAG,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;IAEnE,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC;QACxB,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,wBAAwB;QACrE,UAAU,EAAE,cAAc;QAC1B,WAAW,EAAE,0BAA0B;KACxC,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAAC;QAC5C,EAAE,EAAE,MAAM;QACV,MAAM,EAAE,+BAA+B;QACvC,IAAI,EAAE,kBAAkB;KACzB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,IAAI,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;IAChD,MAAM,CAAC,IAAI,CACT,wKAAwK,CACzK,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,IAAI,CAAC,0BAA0B,EAAE,KAAK,IAAI,EAAE;IAC7C,MAAM,CAAC,IAAI,CACT,kKAAkK,CACnK,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import { expect, test } from "vitest";
|
|
4
|
+
import { assert, expect, it, test } from "vitest";
|
|
5
5
|
import { Vercel } from "../index.js";
|
|
6
6
|
import { createTestHTTPClient } from "./testclient.js";
|
|
7
7
|
test("Logdrains Get Integration Log Drains", async () => {
|
|
@@ -106,34 +106,8 @@ test("Logdrains Delete Integration Log Drain", async () => {
|
|
|
106
106
|
slug: "my-team-url-slug",
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
const vercel = new Vercel({
|
|
112
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
113
|
-
httpClient: testHttpClient,
|
|
114
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
115
|
-
});
|
|
116
|
-
const result = await vercel.logDrains.getConfigurableLogDrain({
|
|
117
|
-
id: "<id>",
|
|
118
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
119
|
-
slug: "my-team-url-slug",
|
|
120
|
-
});
|
|
121
|
-
expect(result).toBeDefined();
|
|
122
|
-
expect(result).toEqual({
|
|
123
|
-
environments: [
|
|
124
|
-
"production",
|
|
125
|
-
"production",
|
|
126
|
-
],
|
|
127
|
-
id: "<id>",
|
|
128
|
-
createdAt: 9979.70,
|
|
129
|
-
deletedAt: 2589.89,
|
|
130
|
-
updatedAt: 1929.64,
|
|
131
|
-
url: "https://pleasant-beret.com/",
|
|
132
|
-
name: "<value>",
|
|
133
|
-
ownerId: "<id>",
|
|
134
|
-
deliveryFormat: "json",
|
|
135
|
-
secret: "<value>",
|
|
136
|
-
});
|
|
109
|
+
it.skip("Logdrains Get Configurable Log Drain", async () => {
|
|
110
|
+
assert.fail("incomplete test found please make sure to address the following errors: [`workflow step getConfigurableLogDrain.test referencing operation getConfigurableLogDrain not found in document`]");
|
|
137
111
|
});
|
|
138
112
|
test("Logdrains Delete Configurable Log Drain", async () => {
|
|
139
113
|
const testHttpClient = createTestHTTPClient("deleteConfigurableLogDrain");
|
|
@@ -148,66 +122,10 @@ test("Logdrains Delete Configurable Log Drain", async () => {
|
|
|
148
122
|
slug: "my-team-url-slug",
|
|
149
123
|
});
|
|
150
124
|
});
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
const vercel = new Vercel({
|
|
154
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
155
|
-
httpClient: testHttpClient,
|
|
156
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
157
|
-
});
|
|
158
|
-
const result = await vercel.logDrains.getAllLogDrains({
|
|
159
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
160
|
-
slug: "my-team-url-slug",
|
|
161
|
-
});
|
|
162
|
-
expect(result).toBeDefined();
|
|
163
|
-
expect(result).toEqual([
|
|
164
|
-
{
|
|
165
|
-
environments: [
|
|
166
|
-
"production",
|
|
167
|
-
],
|
|
168
|
-
id: "<id>",
|
|
169
|
-
createdAt: 5878.41,
|
|
170
|
-
deletedAt: 1366.34,
|
|
171
|
-
updatedAt: 8559.11,
|
|
172
|
-
url: "https://perfumed-director.net/",
|
|
173
|
-
name: "<value>",
|
|
174
|
-
ownerId: "<id>",
|
|
175
|
-
deliveryFormat: "json",
|
|
176
|
-
},
|
|
177
|
-
]);
|
|
125
|
+
it.skip("Logdrains Get All Log Drains", async () => {
|
|
126
|
+
assert.fail("incomplete test found please make sure to address the following errors: [`workflow step getAllLogDrains.test referencing operation getAllLogDrains not found in document`]");
|
|
178
127
|
});
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
const vercel = new Vercel({
|
|
182
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
183
|
-
httpClient: testHttpClient,
|
|
184
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
185
|
-
});
|
|
186
|
-
const result = await vercel.logDrains.createConfigurableLogDrain({
|
|
187
|
-
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
188
|
-
slug: "my-team-url-slug",
|
|
189
|
-
requestBody: {
|
|
190
|
-
deliveryFormat: "json",
|
|
191
|
-
url: "https://sugary-technician.name",
|
|
192
|
-
sources: [
|
|
193
|
-
"external",
|
|
194
|
-
],
|
|
195
|
-
},
|
|
196
|
-
});
|
|
197
|
-
expect(result).toBeDefined();
|
|
198
|
-
expect(result).toEqual({
|
|
199
|
-
environments: [
|
|
200
|
-
"preview",
|
|
201
|
-
"production",
|
|
202
|
-
],
|
|
203
|
-
id: "<id>",
|
|
204
|
-
createdAt: 911.21,
|
|
205
|
-
deletedAt: 5254.68,
|
|
206
|
-
updatedAt: 3248.86,
|
|
207
|
-
url: "https://close-dividend.biz",
|
|
208
|
-
name: "<value>",
|
|
209
|
-
ownerId: "<id>",
|
|
210
|
-
deliveryFormat: "json",
|
|
211
|
-
});
|
|
128
|
+
it.skip("Logdrains Create Configurable Log Drain", async () => {
|
|
129
|
+
assert.fail("incomplete test found please make sure to address the following errors: [`workflow step createConfigurableLogDrain.test referencing operation createConfigurableLogDrain not found in document`]");
|
|
212
130
|
});
|
|
213
131
|
//# sourceMappingURL=logdrains.test.js.map
|