@vercel/sdk 1.6.0 → 1.6.2
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 +4 -2
- package/bin/mcp-server.js +965 -707
- package/bin/mcp-server.js.map +29 -26
- package/docs/sdks/marketplace/README.md +0 -81
- package/docs/sdks/projects/README.md +162 -0
- package/docs/sdks/security/README.md +8 -2
- package/esm/__tests__/marketplace.test.js +3 -13
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +26 -0
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/security.test.js +14 -1
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/deploymentsUploadFile.js +2 -1
- package/esm/funcs/deploymentsUploadFile.js.map +1 -1
- package/esm/funcs/projectsPauseProject.d.ts +18 -0
- package/esm/funcs/projectsPauseProject.d.ts.map +1 -0
- package/esm/funcs/{marketplaceQueryExperimentationItems.js → projectsPauseProject.js} +21 -13
- package/esm/funcs/projectsPauseProject.js.map +1 -0
- package/esm/funcs/projectsUnpauseProject.d.ts +18 -0
- package/esm/funcs/projectsUnpauseProject.d.ts.map +1 -0
- package/esm/funcs/projectsUnpauseProject.js +92 -0
- package/esm/funcs/projectsUnpauseProject.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/prompts.d.ts.map +1 -1
- package/esm/mcp-server/prompts.js +5 -1
- package/esm/mcp-server/prompts.js.map +1 -1
- package/esm/mcp-server/resources.d.ts.map +1 -1
- package/esm/mcp-server/resources.js +10 -2
- package/esm/mcp-server/resources.js.map +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +6 -5
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/projectsPauseProject.d.ts +7 -0
- package/esm/mcp-server/tools/projectsPauseProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/projectsPauseProject.js +27 -0
- package/esm/mcp-server/tools/projectsPauseProject.js.map +1 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.d.ts +7 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.js +27 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.js.map +1 -0
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +4 -3
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/authuser.d.ts +17 -66
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +10 -74
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/createprojectop.d.ts +1 -1
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +4 -4
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +306 -0
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +296 -0
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +64 -0
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +64 -0
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/pauseprojectop.d.ts +42 -0
- package/esm/models/pauseprojectop.d.ts.map +1 -0
- package/esm/models/pauseprojectop.js +35 -0
- package/esm/models/pauseprojectop.js.map +1 -0
- package/esm/models/unpauseprojectop.d.ts +42 -0
- package/esm/models/unpauseprojectop.d.ts.map +1 -0
- package/esm/models/unpauseprojectop.js +35 -0
- package/esm/models/unpauseprojectop.js.map +1 -0
- package/esm/models/updateprojectop.d.ts +1 -1
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +4 -4
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/uploadfileop.d.ts +2 -0
- package/esm/models/uploadfileop.d.ts.map +1 -1
- package/esm/models/uploadfileop.js +14 -0
- package/esm/models/uploadfileop.js.map +1 -1
- package/esm/models/userevent.d.ts +11 -63
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +10 -74
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +0 -8
- package/esm/sdk/marketplace.d.ts.map +1 -1
- package/esm/sdk/marketplace.js +0 -10
- package/esm/sdk/marketplace.js.map +1 -1
- package/esm/sdk/projects.d.ts +16 -0
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js +20 -0
- package/esm/sdk/projects.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/marketplace.test.ts +5 -15
- package/src/__tests__/projects.test.ts +32 -0
- package/src/__tests__/security.test.ts +14 -1
- package/src/funcs/deploymentsUploadFile.ts +2 -1
- package/src/funcs/projectsPauseProject.ts +190 -0
- package/src/funcs/{marketplaceQueryExperimentationItems.ts → projectsUnpauseProject.ts} +30 -23
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +7 -5
- package/src/mcp-server/tools/projectsPauseProject.ts +35 -0
- package/src/mcp-server/tools/projectsUnpauseProject.ts +35 -0
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/authuser.ts +29 -166
- package/src/models/createprojectop.ts +5 -5
- package/src/models/getconfigurationop.ts +579 -0
- package/src/models/importresourceop.ts +141 -0
- package/src/models/pauseprojectop.ts +83 -0
- package/src/models/unpauseprojectop.ts +83 -0
- package/src/models/updateprojectop.ts +5 -5
- package/src/models/uploadfileop.ts +26 -0
- package/src/models/userevent.ts +23 -174
- package/src/sdk/marketplace.ts +0 -22
- package/src/sdk/projects.ts +38 -0
- package/vercel-spec.json +426 -229
- package/esm/funcs/marketplaceQueryExperimentationItems.d.ts +0 -18
- package/esm/funcs/marketplaceQueryExperimentationItems.d.ts.map +0 -1
- package/esm/funcs/marketplaceQueryExperimentationItems.js.map +0 -1
- package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts +0 -7
- package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts.map +0 -1
- package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js +0 -28
- package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js.map +0 -1
- package/esm/models/queryexperimentationitemsop.d.ts +0 -148
- package/esm/models/queryexperimentationitemsop.d.ts.map +0 -1
- package/esm/models/queryexperimentationitemsop.js +0 -125
- package/esm/models/queryexperimentationitemsop.js.map +0 -1
- package/src/mcp-server/tools/marketplaceQueryExperimentationItems.ts +0 -39
- package/src/models/queryexperimentationitemsop.ts +0 -287
|
@@ -35,6 +35,80 @@ export const ProjectSelection = {
|
|
|
35
35
|
*/
|
|
36
36
|
export type ProjectSelection = ClosedEnum<typeof ProjectSelection>;
|
|
37
37
|
|
|
38
|
+
export const TransferRequestKind = {
|
|
39
|
+
TransferFromMarketplace: "transfer-from-marketplace",
|
|
40
|
+
} as const;
|
|
41
|
+
export type TransferRequestKind = ClosedEnum<typeof TransferRequestKind>;
|
|
42
|
+
|
|
43
|
+
export type TransferRequestRequester = {
|
|
44
|
+
name: string;
|
|
45
|
+
email?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type TransferRequest2 = {
|
|
49
|
+
kind: TransferRequestKind;
|
|
50
|
+
requestId: string;
|
|
51
|
+
transferId: string;
|
|
52
|
+
requester: TransferRequestRequester;
|
|
53
|
+
createdAt: number;
|
|
54
|
+
expiresAt: number;
|
|
55
|
+
discardedAt?: number | undefined;
|
|
56
|
+
discardedBy?: string | undefined;
|
|
57
|
+
approvedAt?: number | undefined;
|
|
58
|
+
approvedBy?: string | undefined;
|
|
59
|
+
authorizationId?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const Kind = {
|
|
63
|
+
TransferToMarketplace: "transfer-to-marketplace",
|
|
64
|
+
} as const;
|
|
65
|
+
export type Kind = ClosedEnum<typeof Kind>;
|
|
66
|
+
|
|
67
|
+
export const TransferRequestType = {
|
|
68
|
+
Subscription: "subscription",
|
|
69
|
+
Prepayment: "prepayment",
|
|
70
|
+
} as const;
|
|
71
|
+
export type TransferRequestType = ClosedEnum<typeof TransferRequestType>;
|
|
72
|
+
|
|
73
|
+
export const TransferRequestScope = {
|
|
74
|
+
Installation: "installation",
|
|
75
|
+
Resource: "resource",
|
|
76
|
+
} as const;
|
|
77
|
+
export type TransferRequestScope = ClosedEnum<typeof TransferRequestScope>;
|
|
78
|
+
|
|
79
|
+
export type TransferRequestBillingPlan = {
|
|
80
|
+
id: string;
|
|
81
|
+
type: TransferRequestType;
|
|
82
|
+
scope?: TransferRequestScope | undefined;
|
|
83
|
+
name: string;
|
|
84
|
+
description: string;
|
|
85
|
+
paymentMethodRequired?: boolean | undefined;
|
|
86
|
+
preauthorizationAmount?: number | undefined;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type Requester = {
|
|
90
|
+
name: string;
|
|
91
|
+
email?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type TransferRequest1 = {
|
|
95
|
+
kind: Kind;
|
|
96
|
+
metadata?: { [k: string]: any } | undefined;
|
|
97
|
+
billingPlan?: TransferRequestBillingPlan | undefined;
|
|
98
|
+
requestId: string;
|
|
99
|
+
transferId: string;
|
|
100
|
+
requester: Requester;
|
|
101
|
+
createdAt: number;
|
|
102
|
+
expiresAt: number;
|
|
103
|
+
discardedAt?: number | undefined;
|
|
104
|
+
discardedBy?: string | undefined;
|
|
105
|
+
approvedAt?: number | undefined;
|
|
106
|
+
approvedBy?: string | undefined;
|
|
107
|
+
authorizationId?: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export type TransferRequest = TransferRequest2 | TransferRequest1;
|
|
111
|
+
|
|
38
112
|
/**
|
|
39
113
|
* Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
|
|
40
114
|
*/
|
|
@@ -88,6 +162,7 @@ export type GetConfigurationResponseBody2 = {
|
|
|
88
162
|
* A string representing the permission for projects. Possible values are `all` or `selected`.
|
|
89
163
|
*/
|
|
90
164
|
projectSelection: ProjectSelection;
|
|
165
|
+
transferRequest: TransferRequest2 | TransferRequest1;
|
|
91
166
|
/**
|
|
92
167
|
* When a configuration is limited to access certain projects, this will contain each of the project ID it is allowed to access. If it is not defined, the configuration has full access.
|
|
93
168
|
*/
|
|
@@ -370,6 +445,501 @@ export namespace ProjectSelection$ {
|
|
|
370
445
|
export const outboundSchema = ProjectSelection$outboundSchema;
|
|
371
446
|
}
|
|
372
447
|
|
|
448
|
+
/** @internal */
|
|
449
|
+
export const TransferRequestKind$inboundSchema: z.ZodNativeEnum<
|
|
450
|
+
typeof TransferRequestKind
|
|
451
|
+
> = z.nativeEnum(TransferRequestKind);
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export const TransferRequestKind$outboundSchema: z.ZodNativeEnum<
|
|
455
|
+
typeof TransferRequestKind
|
|
456
|
+
> = TransferRequestKind$inboundSchema;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @internal
|
|
460
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
461
|
+
*/
|
|
462
|
+
export namespace TransferRequestKind$ {
|
|
463
|
+
/** @deprecated use `TransferRequestKind$inboundSchema` instead. */
|
|
464
|
+
export const inboundSchema = TransferRequestKind$inboundSchema;
|
|
465
|
+
/** @deprecated use `TransferRequestKind$outboundSchema` instead. */
|
|
466
|
+
export const outboundSchema = TransferRequestKind$outboundSchema;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/** @internal */
|
|
470
|
+
export const TransferRequestRequester$inboundSchema: z.ZodType<
|
|
471
|
+
TransferRequestRequester,
|
|
472
|
+
z.ZodTypeDef,
|
|
473
|
+
unknown
|
|
474
|
+
> = z.object({
|
|
475
|
+
name: z.string(),
|
|
476
|
+
email: z.string().optional(),
|
|
477
|
+
});
|
|
478
|
+
|
|
479
|
+
/** @internal */
|
|
480
|
+
export type TransferRequestRequester$Outbound = {
|
|
481
|
+
name: string;
|
|
482
|
+
email?: string | undefined;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
/** @internal */
|
|
486
|
+
export const TransferRequestRequester$outboundSchema: z.ZodType<
|
|
487
|
+
TransferRequestRequester$Outbound,
|
|
488
|
+
z.ZodTypeDef,
|
|
489
|
+
TransferRequestRequester
|
|
490
|
+
> = z.object({
|
|
491
|
+
name: z.string(),
|
|
492
|
+
email: z.string().optional(),
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* @internal
|
|
497
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
498
|
+
*/
|
|
499
|
+
export namespace TransferRequestRequester$ {
|
|
500
|
+
/** @deprecated use `TransferRequestRequester$inboundSchema` instead. */
|
|
501
|
+
export const inboundSchema = TransferRequestRequester$inboundSchema;
|
|
502
|
+
/** @deprecated use `TransferRequestRequester$outboundSchema` instead. */
|
|
503
|
+
export const outboundSchema = TransferRequestRequester$outboundSchema;
|
|
504
|
+
/** @deprecated use `TransferRequestRequester$Outbound` instead. */
|
|
505
|
+
export type Outbound = TransferRequestRequester$Outbound;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export function transferRequestRequesterToJSON(
|
|
509
|
+
transferRequestRequester: TransferRequestRequester,
|
|
510
|
+
): string {
|
|
511
|
+
return JSON.stringify(
|
|
512
|
+
TransferRequestRequester$outboundSchema.parse(transferRequestRequester),
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export function transferRequestRequesterFromJSON(
|
|
517
|
+
jsonString: string,
|
|
518
|
+
): SafeParseResult<TransferRequestRequester, SDKValidationError> {
|
|
519
|
+
return safeParse(
|
|
520
|
+
jsonString,
|
|
521
|
+
(x) => TransferRequestRequester$inboundSchema.parse(JSON.parse(x)),
|
|
522
|
+
`Failed to parse 'TransferRequestRequester' from JSON`,
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/** @internal */
|
|
527
|
+
export const TransferRequest2$inboundSchema: z.ZodType<
|
|
528
|
+
TransferRequest2,
|
|
529
|
+
z.ZodTypeDef,
|
|
530
|
+
unknown
|
|
531
|
+
> = z.object({
|
|
532
|
+
kind: TransferRequestKind$inboundSchema,
|
|
533
|
+
requestId: z.string(),
|
|
534
|
+
transferId: z.string(),
|
|
535
|
+
requester: z.lazy(() => TransferRequestRequester$inboundSchema),
|
|
536
|
+
createdAt: z.number(),
|
|
537
|
+
expiresAt: z.number(),
|
|
538
|
+
discardedAt: z.number().optional(),
|
|
539
|
+
discardedBy: z.string().optional(),
|
|
540
|
+
approvedAt: z.number().optional(),
|
|
541
|
+
approvedBy: z.string().optional(),
|
|
542
|
+
authorizationId: z.string().optional(),
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
/** @internal */
|
|
546
|
+
export type TransferRequest2$Outbound = {
|
|
547
|
+
kind: string;
|
|
548
|
+
requestId: string;
|
|
549
|
+
transferId: string;
|
|
550
|
+
requester: TransferRequestRequester$Outbound;
|
|
551
|
+
createdAt: number;
|
|
552
|
+
expiresAt: number;
|
|
553
|
+
discardedAt?: number | undefined;
|
|
554
|
+
discardedBy?: string | undefined;
|
|
555
|
+
approvedAt?: number | undefined;
|
|
556
|
+
approvedBy?: string | undefined;
|
|
557
|
+
authorizationId?: string | undefined;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
/** @internal */
|
|
561
|
+
export const TransferRequest2$outboundSchema: z.ZodType<
|
|
562
|
+
TransferRequest2$Outbound,
|
|
563
|
+
z.ZodTypeDef,
|
|
564
|
+
TransferRequest2
|
|
565
|
+
> = z.object({
|
|
566
|
+
kind: TransferRequestKind$outboundSchema,
|
|
567
|
+
requestId: z.string(),
|
|
568
|
+
transferId: z.string(),
|
|
569
|
+
requester: z.lazy(() => TransferRequestRequester$outboundSchema),
|
|
570
|
+
createdAt: z.number(),
|
|
571
|
+
expiresAt: z.number(),
|
|
572
|
+
discardedAt: z.number().optional(),
|
|
573
|
+
discardedBy: z.string().optional(),
|
|
574
|
+
approvedAt: z.number().optional(),
|
|
575
|
+
approvedBy: z.string().optional(),
|
|
576
|
+
authorizationId: z.string().optional(),
|
|
577
|
+
});
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @internal
|
|
581
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
582
|
+
*/
|
|
583
|
+
export namespace TransferRequest2$ {
|
|
584
|
+
/** @deprecated use `TransferRequest2$inboundSchema` instead. */
|
|
585
|
+
export const inboundSchema = TransferRequest2$inboundSchema;
|
|
586
|
+
/** @deprecated use `TransferRequest2$outboundSchema` instead. */
|
|
587
|
+
export const outboundSchema = TransferRequest2$outboundSchema;
|
|
588
|
+
/** @deprecated use `TransferRequest2$Outbound` instead. */
|
|
589
|
+
export type Outbound = TransferRequest2$Outbound;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export function transferRequest2ToJSON(
|
|
593
|
+
transferRequest2: TransferRequest2,
|
|
594
|
+
): string {
|
|
595
|
+
return JSON.stringify(
|
|
596
|
+
TransferRequest2$outboundSchema.parse(transferRequest2),
|
|
597
|
+
);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export function transferRequest2FromJSON(
|
|
601
|
+
jsonString: string,
|
|
602
|
+
): SafeParseResult<TransferRequest2, SDKValidationError> {
|
|
603
|
+
return safeParse(
|
|
604
|
+
jsonString,
|
|
605
|
+
(x) => TransferRequest2$inboundSchema.parse(JSON.parse(x)),
|
|
606
|
+
`Failed to parse 'TransferRequest2' from JSON`,
|
|
607
|
+
);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/** @internal */
|
|
611
|
+
export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
|
|
612
|
+
Kind,
|
|
613
|
+
);
|
|
614
|
+
|
|
615
|
+
/** @internal */
|
|
616
|
+
export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
|
|
617
|
+
Kind$inboundSchema;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* @internal
|
|
621
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
622
|
+
*/
|
|
623
|
+
export namespace Kind$ {
|
|
624
|
+
/** @deprecated use `Kind$inboundSchema` instead. */
|
|
625
|
+
export const inboundSchema = Kind$inboundSchema;
|
|
626
|
+
/** @deprecated use `Kind$outboundSchema` instead. */
|
|
627
|
+
export const outboundSchema = Kind$outboundSchema;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/** @internal */
|
|
631
|
+
export const TransferRequestType$inboundSchema: z.ZodNativeEnum<
|
|
632
|
+
typeof TransferRequestType
|
|
633
|
+
> = z.nativeEnum(TransferRequestType);
|
|
634
|
+
|
|
635
|
+
/** @internal */
|
|
636
|
+
export const TransferRequestType$outboundSchema: z.ZodNativeEnum<
|
|
637
|
+
typeof TransferRequestType
|
|
638
|
+
> = TransferRequestType$inboundSchema;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* @internal
|
|
642
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
643
|
+
*/
|
|
644
|
+
export namespace TransferRequestType$ {
|
|
645
|
+
/** @deprecated use `TransferRequestType$inboundSchema` instead. */
|
|
646
|
+
export const inboundSchema = TransferRequestType$inboundSchema;
|
|
647
|
+
/** @deprecated use `TransferRequestType$outboundSchema` instead. */
|
|
648
|
+
export const outboundSchema = TransferRequestType$outboundSchema;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/** @internal */
|
|
652
|
+
export const TransferRequestScope$inboundSchema: z.ZodNativeEnum<
|
|
653
|
+
typeof TransferRequestScope
|
|
654
|
+
> = z.nativeEnum(TransferRequestScope);
|
|
655
|
+
|
|
656
|
+
/** @internal */
|
|
657
|
+
export const TransferRequestScope$outboundSchema: z.ZodNativeEnum<
|
|
658
|
+
typeof TransferRequestScope
|
|
659
|
+
> = TransferRequestScope$inboundSchema;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @internal
|
|
663
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
664
|
+
*/
|
|
665
|
+
export namespace TransferRequestScope$ {
|
|
666
|
+
/** @deprecated use `TransferRequestScope$inboundSchema` instead. */
|
|
667
|
+
export const inboundSchema = TransferRequestScope$inboundSchema;
|
|
668
|
+
/** @deprecated use `TransferRequestScope$outboundSchema` instead. */
|
|
669
|
+
export const outboundSchema = TransferRequestScope$outboundSchema;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/** @internal */
|
|
673
|
+
export const TransferRequestBillingPlan$inboundSchema: z.ZodType<
|
|
674
|
+
TransferRequestBillingPlan,
|
|
675
|
+
z.ZodTypeDef,
|
|
676
|
+
unknown
|
|
677
|
+
> = z.object({
|
|
678
|
+
id: z.string(),
|
|
679
|
+
type: TransferRequestType$inboundSchema,
|
|
680
|
+
scope: TransferRequestScope$inboundSchema.optional(),
|
|
681
|
+
name: z.string(),
|
|
682
|
+
description: z.string(),
|
|
683
|
+
paymentMethodRequired: z.boolean().optional(),
|
|
684
|
+
preauthorizationAmount: z.number().optional(),
|
|
685
|
+
});
|
|
686
|
+
|
|
687
|
+
/** @internal */
|
|
688
|
+
export type TransferRequestBillingPlan$Outbound = {
|
|
689
|
+
id: string;
|
|
690
|
+
type: string;
|
|
691
|
+
scope?: string | undefined;
|
|
692
|
+
name: string;
|
|
693
|
+
description: string;
|
|
694
|
+
paymentMethodRequired?: boolean | undefined;
|
|
695
|
+
preauthorizationAmount?: number | undefined;
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
/** @internal */
|
|
699
|
+
export const TransferRequestBillingPlan$outboundSchema: z.ZodType<
|
|
700
|
+
TransferRequestBillingPlan$Outbound,
|
|
701
|
+
z.ZodTypeDef,
|
|
702
|
+
TransferRequestBillingPlan
|
|
703
|
+
> = z.object({
|
|
704
|
+
id: z.string(),
|
|
705
|
+
type: TransferRequestType$outboundSchema,
|
|
706
|
+
scope: TransferRequestScope$outboundSchema.optional(),
|
|
707
|
+
name: z.string(),
|
|
708
|
+
description: z.string(),
|
|
709
|
+
paymentMethodRequired: z.boolean().optional(),
|
|
710
|
+
preauthorizationAmount: z.number().optional(),
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* @internal
|
|
715
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
716
|
+
*/
|
|
717
|
+
export namespace TransferRequestBillingPlan$ {
|
|
718
|
+
/** @deprecated use `TransferRequestBillingPlan$inboundSchema` instead. */
|
|
719
|
+
export const inboundSchema = TransferRequestBillingPlan$inboundSchema;
|
|
720
|
+
/** @deprecated use `TransferRequestBillingPlan$outboundSchema` instead. */
|
|
721
|
+
export const outboundSchema = TransferRequestBillingPlan$outboundSchema;
|
|
722
|
+
/** @deprecated use `TransferRequestBillingPlan$Outbound` instead. */
|
|
723
|
+
export type Outbound = TransferRequestBillingPlan$Outbound;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export function transferRequestBillingPlanToJSON(
|
|
727
|
+
transferRequestBillingPlan: TransferRequestBillingPlan,
|
|
728
|
+
): string {
|
|
729
|
+
return JSON.stringify(
|
|
730
|
+
TransferRequestBillingPlan$outboundSchema.parse(transferRequestBillingPlan),
|
|
731
|
+
);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export function transferRequestBillingPlanFromJSON(
|
|
735
|
+
jsonString: string,
|
|
736
|
+
): SafeParseResult<TransferRequestBillingPlan, SDKValidationError> {
|
|
737
|
+
return safeParse(
|
|
738
|
+
jsonString,
|
|
739
|
+
(x) => TransferRequestBillingPlan$inboundSchema.parse(JSON.parse(x)),
|
|
740
|
+
`Failed to parse 'TransferRequestBillingPlan' from JSON`,
|
|
741
|
+
);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/** @internal */
|
|
745
|
+
export const Requester$inboundSchema: z.ZodType<
|
|
746
|
+
Requester,
|
|
747
|
+
z.ZodTypeDef,
|
|
748
|
+
unknown
|
|
749
|
+
> = z.object({
|
|
750
|
+
name: z.string(),
|
|
751
|
+
email: z.string().optional(),
|
|
752
|
+
});
|
|
753
|
+
|
|
754
|
+
/** @internal */
|
|
755
|
+
export type Requester$Outbound = {
|
|
756
|
+
name: string;
|
|
757
|
+
email?: string | undefined;
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
/** @internal */
|
|
761
|
+
export const Requester$outboundSchema: z.ZodType<
|
|
762
|
+
Requester$Outbound,
|
|
763
|
+
z.ZodTypeDef,
|
|
764
|
+
Requester
|
|
765
|
+
> = z.object({
|
|
766
|
+
name: z.string(),
|
|
767
|
+
email: z.string().optional(),
|
|
768
|
+
});
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* @internal
|
|
772
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
773
|
+
*/
|
|
774
|
+
export namespace Requester$ {
|
|
775
|
+
/** @deprecated use `Requester$inboundSchema` instead. */
|
|
776
|
+
export const inboundSchema = Requester$inboundSchema;
|
|
777
|
+
/** @deprecated use `Requester$outboundSchema` instead. */
|
|
778
|
+
export const outboundSchema = Requester$outboundSchema;
|
|
779
|
+
/** @deprecated use `Requester$Outbound` instead. */
|
|
780
|
+
export type Outbound = Requester$Outbound;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export function requesterToJSON(requester: Requester): string {
|
|
784
|
+
return JSON.stringify(Requester$outboundSchema.parse(requester));
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export function requesterFromJSON(
|
|
788
|
+
jsonString: string,
|
|
789
|
+
): SafeParseResult<Requester, SDKValidationError> {
|
|
790
|
+
return safeParse(
|
|
791
|
+
jsonString,
|
|
792
|
+
(x) => Requester$inboundSchema.parse(JSON.parse(x)),
|
|
793
|
+
`Failed to parse 'Requester' from JSON`,
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/** @internal */
|
|
798
|
+
export const TransferRequest1$inboundSchema: z.ZodType<
|
|
799
|
+
TransferRequest1,
|
|
800
|
+
z.ZodTypeDef,
|
|
801
|
+
unknown
|
|
802
|
+
> = z.object({
|
|
803
|
+
kind: Kind$inboundSchema,
|
|
804
|
+
metadata: z.record(z.any()).optional(),
|
|
805
|
+
billingPlan: z.lazy(() => TransferRequestBillingPlan$inboundSchema)
|
|
806
|
+
.optional(),
|
|
807
|
+
requestId: z.string(),
|
|
808
|
+
transferId: z.string(),
|
|
809
|
+
requester: z.lazy(() => Requester$inboundSchema),
|
|
810
|
+
createdAt: z.number(),
|
|
811
|
+
expiresAt: z.number(),
|
|
812
|
+
discardedAt: z.number().optional(),
|
|
813
|
+
discardedBy: z.string().optional(),
|
|
814
|
+
approvedAt: z.number().optional(),
|
|
815
|
+
approvedBy: z.string().optional(),
|
|
816
|
+
authorizationId: z.string().optional(),
|
|
817
|
+
});
|
|
818
|
+
|
|
819
|
+
/** @internal */
|
|
820
|
+
export type TransferRequest1$Outbound = {
|
|
821
|
+
kind: string;
|
|
822
|
+
metadata?: { [k: string]: any } | undefined;
|
|
823
|
+
billingPlan?: TransferRequestBillingPlan$Outbound | undefined;
|
|
824
|
+
requestId: string;
|
|
825
|
+
transferId: string;
|
|
826
|
+
requester: Requester$Outbound;
|
|
827
|
+
createdAt: number;
|
|
828
|
+
expiresAt: number;
|
|
829
|
+
discardedAt?: number | undefined;
|
|
830
|
+
discardedBy?: string | undefined;
|
|
831
|
+
approvedAt?: number | undefined;
|
|
832
|
+
approvedBy?: string | undefined;
|
|
833
|
+
authorizationId?: string | undefined;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
/** @internal */
|
|
837
|
+
export const TransferRequest1$outboundSchema: z.ZodType<
|
|
838
|
+
TransferRequest1$Outbound,
|
|
839
|
+
z.ZodTypeDef,
|
|
840
|
+
TransferRequest1
|
|
841
|
+
> = z.object({
|
|
842
|
+
kind: Kind$outboundSchema,
|
|
843
|
+
metadata: z.record(z.any()).optional(),
|
|
844
|
+
billingPlan: z.lazy(() => TransferRequestBillingPlan$outboundSchema)
|
|
845
|
+
.optional(),
|
|
846
|
+
requestId: z.string(),
|
|
847
|
+
transferId: z.string(),
|
|
848
|
+
requester: z.lazy(() => Requester$outboundSchema),
|
|
849
|
+
createdAt: z.number(),
|
|
850
|
+
expiresAt: z.number(),
|
|
851
|
+
discardedAt: z.number().optional(),
|
|
852
|
+
discardedBy: z.string().optional(),
|
|
853
|
+
approvedAt: z.number().optional(),
|
|
854
|
+
approvedBy: z.string().optional(),
|
|
855
|
+
authorizationId: z.string().optional(),
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* @internal
|
|
860
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
861
|
+
*/
|
|
862
|
+
export namespace TransferRequest1$ {
|
|
863
|
+
/** @deprecated use `TransferRequest1$inboundSchema` instead. */
|
|
864
|
+
export const inboundSchema = TransferRequest1$inboundSchema;
|
|
865
|
+
/** @deprecated use `TransferRequest1$outboundSchema` instead. */
|
|
866
|
+
export const outboundSchema = TransferRequest1$outboundSchema;
|
|
867
|
+
/** @deprecated use `TransferRequest1$Outbound` instead. */
|
|
868
|
+
export type Outbound = TransferRequest1$Outbound;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export function transferRequest1ToJSON(
|
|
872
|
+
transferRequest1: TransferRequest1,
|
|
873
|
+
): string {
|
|
874
|
+
return JSON.stringify(
|
|
875
|
+
TransferRequest1$outboundSchema.parse(transferRequest1),
|
|
876
|
+
);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export function transferRequest1FromJSON(
|
|
880
|
+
jsonString: string,
|
|
881
|
+
): SafeParseResult<TransferRequest1, SDKValidationError> {
|
|
882
|
+
return safeParse(
|
|
883
|
+
jsonString,
|
|
884
|
+
(x) => TransferRequest1$inboundSchema.parse(JSON.parse(x)),
|
|
885
|
+
`Failed to parse 'TransferRequest1' from JSON`,
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/** @internal */
|
|
890
|
+
export const TransferRequest$inboundSchema: z.ZodType<
|
|
891
|
+
TransferRequest,
|
|
892
|
+
z.ZodTypeDef,
|
|
893
|
+
unknown
|
|
894
|
+
> = z.union([
|
|
895
|
+
z.lazy(() => TransferRequest2$inboundSchema),
|
|
896
|
+
z.lazy(() => TransferRequest1$inboundSchema),
|
|
897
|
+
]);
|
|
898
|
+
|
|
899
|
+
/** @internal */
|
|
900
|
+
export type TransferRequest$Outbound =
|
|
901
|
+
| TransferRequest2$Outbound
|
|
902
|
+
| TransferRequest1$Outbound;
|
|
903
|
+
|
|
904
|
+
/** @internal */
|
|
905
|
+
export const TransferRequest$outboundSchema: z.ZodType<
|
|
906
|
+
TransferRequest$Outbound,
|
|
907
|
+
z.ZodTypeDef,
|
|
908
|
+
TransferRequest
|
|
909
|
+
> = z.union([
|
|
910
|
+
z.lazy(() => TransferRequest2$outboundSchema),
|
|
911
|
+
z.lazy(() => TransferRequest1$outboundSchema),
|
|
912
|
+
]);
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* @internal
|
|
916
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
917
|
+
*/
|
|
918
|
+
export namespace TransferRequest$ {
|
|
919
|
+
/** @deprecated use `TransferRequest$inboundSchema` instead. */
|
|
920
|
+
export const inboundSchema = TransferRequest$inboundSchema;
|
|
921
|
+
/** @deprecated use `TransferRequest$outboundSchema` instead. */
|
|
922
|
+
export const outboundSchema = TransferRequest$outboundSchema;
|
|
923
|
+
/** @deprecated use `TransferRequest$Outbound` instead. */
|
|
924
|
+
export type Outbound = TransferRequest$Outbound;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
export function transferRequestToJSON(
|
|
928
|
+
transferRequest: TransferRequest,
|
|
929
|
+
): string {
|
|
930
|
+
return JSON.stringify(TransferRequest$outboundSchema.parse(transferRequest));
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
export function transferRequestFromJSON(
|
|
934
|
+
jsonString: string,
|
|
935
|
+
): SafeParseResult<TransferRequest, SDKValidationError> {
|
|
936
|
+
return safeParse(
|
|
937
|
+
jsonString,
|
|
938
|
+
(x) => TransferRequest$inboundSchema.parse(JSON.parse(x)),
|
|
939
|
+
`Failed to parse 'TransferRequest' from JSON`,
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
|
|
373
943
|
/** @internal */
|
|
374
944
|
export const GetConfigurationResponseBodyIntegrationsSource$inboundSchema:
|
|
375
945
|
z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsSource> = z
|
|
@@ -473,6 +1043,10 @@ export const GetConfigurationResponseBody2$inboundSchema: z.ZodType<
|
|
|
473
1043
|
unknown
|
|
474
1044
|
> = z.object({
|
|
475
1045
|
projectSelection: ProjectSelection$inboundSchema,
|
|
1046
|
+
transferRequest: z.union([
|
|
1047
|
+
z.lazy(() => TransferRequest2$inboundSchema),
|
|
1048
|
+
z.lazy(() => TransferRequest1$inboundSchema),
|
|
1049
|
+
]),
|
|
476
1050
|
projects: z.array(z.string()).optional(),
|
|
477
1051
|
completedAt: z.number().optional(),
|
|
478
1052
|
createdAt: z.number(),
|
|
@@ -502,6 +1076,7 @@ export const GetConfigurationResponseBody2$inboundSchema: z.ZodType<
|
|
|
502
1076
|
/** @internal */
|
|
503
1077
|
export type GetConfigurationResponseBody2$Outbound = {
|
|
504
1078
|
projectSelection: string;
|
|
1079
|
+
transferRequest: TransferRequest2$Outbound | TransferRequest1$Outbound;
|
|
505
1080
|
projects?: Array<string> | undefined;
|
|
506
1081
|
completedAt?: number | undefined;
|
|
507
1082
|
createdAt: number;
|
|
@@ -530,6 +1105,10 @@ export const GetConfigurationResponseBody2$outboundSchema: z.ZodType<
|
|
|
530
1105
|
GetConfigurationResponseBody2
|
|
531
1106
|
> = z.object({
|
|
532
1107
|
projectSelection: ProjectSelection$outboundSchema,
|
|
1108
|
+
transferRequest: z.union([
|
|
1109
|
+
z.lazy(() => TransferRequest2$outboundSchema),
|
|
1110
|
+
z.lazy(() => TransferRequest1$outboundSchema),
|
|
1111
|
+
]),
|
|
533
1112
|
projects: z.array(z.string()).optional(),
|
|
534
1113
|
completedAt: z.number().optional(),
|
|
535
1114
|
createdAt: z.number(),
|