@vercel/sdk 1.6.8 → 1.6.10
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/bin/mcp-server.js +310 -118
- package/bin/mcp-server.js.map +18 -18
- package/docs/sdks/user/README.md +2 -0
- package/esm/__tests__/environment.test.js +12 -12
- package/esm/__tests__/environment.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +13 -15
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/funcs/userListUserEvents.js +1 -0
- package/esm/funcs/userListUserEvents.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/mcp-server.js.map +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/authuser.d.ts +3 -3
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +1 -1
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/createprojectop.d.ts +6 -0
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +2 -0
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +24 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +8 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/getbypassipop.d.ts +28 -28
- package/esm/models/getbypassipop.d.ts.map +1 -1
- package/esm/models/getbypassipop.js +28 -28
- package/esm/models/getbypassipop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +6 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +2 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getwebhookop.d.ts +12 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +4 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +24 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +8 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/listusereventsop.d.ts +6 -1
- package/esm/models/listusereventsop.d.ts.map +1 -1
- package/esm/models/listusereventsop.js +2 -0
- package/esm/models/listusereventsop.js.map +1 -1
- package/esm/models/teamlimited.d.ts +30 -1
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +24 -0
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +6 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +2 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +75 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +56 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +361 -114
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +338 -98
- package/esm/models/userevent.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/environment.test.ts +12 -12
- package/src/__tests__/projects.test.ts +13 -15
- package/src/funcs/userListUserEvents.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/authuser.ts +1 -1
- package/src/models/createprojectop.ts +2 -0
- package/src/models/createwebhookop.ts +8 -0
- package/src/models/getbypassipop.ts +56 -56
- package/src/models/getprojectsop.ts +2 -0
- package/src/models/getwebhookop.ts +4 -0
- package/src/models/getwebhooksop.ts +8 -0
- package/src/models/listusereventsop.ts +8 -1
- package/src/models/teamlimited.ts +34 -1
- package/src/models/updateprojectdatacacheop.ts +2 -0
- package/src/models/updateprojectop.ts +148 -0
- package/src/models/userevent.ts +620 -179
- package/vercel-spec.json +282 -87
package/src/models/userevent.ts
CHANGED
|
@@ -13,9 +13,6 @@ import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
|
13
13
|
* The type of entity.
|
|
14
14
|
*/
|
|
15
15
|
export const UserEventType = {
|
|
16
|
-
Flag: "flag",
|
|
17
|
-
FlagsSegment: "flags-segment",
|
|
18
|
-
FlagsSettings: "flags-settings",
|
|
19
16
|
Author: "author",
|
|
20
17
|
BitbucketLogin: "bitbucket_login",
|
|
21
18
|
Bold: "bold",
|
|
@@ -27,6 +24,9 @@ export const UserEventType = {
|
|
|
27
24
|
HookName: "hook_name",
|
|
28
25
|
Integration: "integration",
|
|
29
26
|
EdgeConfig: "edge-config",
|
|
27
|
+
Flag: "flag",
|
|
28
|
+
FlagsSegment: "flags-segment",
|
|
29
|
+
FlagsSettings: "flags-settings",
|
|
30
30
|
Link: "link",
|
|
31
31
|
ProjectName: "project_name",
|
|
32
32
|
ScalingRules: "scaling_rules",
|
|
@@ -59,9 +59,73 @@ export type Entities = {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Metadata for
|
|
62
|
+
* Metadata for {@link userId}.
|
|
63
63
|
*/
|
|
64
64
|
export type User = {
|
|
65
|
+
avatar: string;
|
|
66
|
+
email: string;
|
|
67
|
+
username: string;
|
|
68
|
+
slug?: string | undefined;
|
|
69
|
+
uid: string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const UserEventPrincipalType = {
|
|
73
|
+
App: "app",
|
|
74
|
+
} as const;
|
|
75
|
+
export type UserEventPrincipalType = ClosedEnum<typeof UserEventPrincipalType>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Metadata for {@link principalId}.
|
|
79
|
+
*/
|
|
80
|
+
export type Two = {
|
|
81
|
+
type: UserEventPrincipalType;
|
|
82
|
+
clientId: string;
|
|
83
|
+
name: string;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const PrincipalType = {
|
|
87
|
+
User: "user",
|
|
88
|
+
} as const;
|
|
89
|
+
export type PrincipalType = ClosedEnum<typeof PrincipalType>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Metadata for {@link principalId}.
|
|
93
|
+
*/
|
|
94
|
+
export type One = {
|
|
95
|
+
type?: PrincipalType | undefined;
|
|
96
|
+
avatar: string;
|
|
97
|
+
email: string;
|
|
98
|
+
slug?: string | undefined;
|
|
99
|
+
uid: string;
|
|
100
|
+
username: string;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export type Principal = Two | One;
|
|
104
|
+
|
|
105
|
+
export const UserEventViaType = {
|
|
106
|
+
App: "app",
|
|
107
|
+
} as const;
|
|
108
|
+
export type UserEventViaType = ClosedEnum<typeof UserEventViaType>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Metadata for {@link viaIds}.
|
|
112
|
+
*/
|
|
113
|
+
export type Via2 = {
|
|
114
|
+
type: UserEventViaType;
|
|
115
|
+
clientId: string;
|
|
116
|
+
name: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export const ViaType = {
|
|
120
|
+
User: "user",
|
|
121
|
+
} as const;
|
|
122
|
+
export type ViaType = ClosedEnum<typeof ViaType>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Metadata for {@link viaIds}.
|
|
126
|
+
*/
|
|
127
|
+
export type Via1 = {
|
|
128
|
+
type?: ViaType | undefined;
|
|
65
129
|
avatar: string;
|
|
66
130
|
email: string;
|
|
67
131
|
slug?: string | undefined;
|
|
@@ -69,6 +133,8 @@ export type User = {
|
|
|
69
133
|
username: string;
|
|
70
134
|
};
|
|
71
135
|
|
|
136
|
+
export type Via = Via2 | Via1;
|
|
137
|
+
|
|
72
138
|
export const GrantType = {
|
|
73
139
|
AuthorizationCode: "authorization_code",
|
|
74
140
|
RefreshToken: "refresh_token",
|
|
@@ -875,11 +941,11 @@ export type NinetyNine = {
|
|
|
875
941
|
};
|
|
876
942
|
|
|
877
943
|
export const UserEventPayloadType = {
|
|
878
|
-
Integration: "integration",
|
|
879
|
-
EdgeConfig: "edge-config",
|
|
880
944
|
Redis: "redis",
|
|
881
945
|
Postgres: "postgres",
|
|
946
|
+
EdgeConfig: "edge-config",
|
|
882
947
|
Blob: "blob",
|
|
948
|
+
Integration: "integration",
|
|
883
949
|
} as const;
|
|
884
950
|
export type UserEventPayloadType = ClosedEnum<typeof UserEventPayloadType>;
|
|
885
951
|
|
|
@@ -1508,11 +1574,11 @@ export type UserEventPayload73Role = ClosedEnum<typeof UserEventPayload73Role>;
|
|
|
1508
1574
|
export const PayloadOrigin = {
|
|
1509
1575
|
Teams: "teams",
|
|
1510
1576
|
Saml: "saml",
|
|
1511
|
-
Link: "link",
|
|
1512
1577
|
Github: "github",
|
|
1513
1578
|
Gitlab: "gitlab",
|
|
1514
1579
|
Bitbucket: "bitbucket",
|
|
1515
1580
|
Mail: "mail",
|
|
1581
|
+
Link: "link",
|
|
1516
1582
|
Import: "import",
|
|
1517
1583
|
Dsync: "dsync",
|
|
1518
1584
|
Feedback: "feedback",
|
|
@@ -1908,6 +1974,7 @@ export type PayloadBuildEntitlements = {
|
|
|
1908
1974
|
|
|
1909
1975
|
export const PayloadPurchaseType = {
|
|
1910
1976
|
Enhanced: "enhanced",
|
|
1977
|
+
Ultra: "ultra",
|
|
1911
1978
|
} as const;
|
|
1912
1979
|
export type PayloadPurchaseType = ClosedEnum<typeof PayloadPurchaseType>;
|
|
1913
1980
|
|
|
@@ -2023,7 +2090,6 @@ export const PayloadReason = {
|
|
|
2023
2090
|
export type PayloadReason = ClosedEnum<typeof PayloadReason>;
|
|
2024
2091
|
|
|
2025
2092
|
export const PayloadBlockedDueToOverageType = {
|
|
2026
|
-
AiCredits: "aiCredits",
|
|
2027
2093
|
AnalyticsUsage: "analyticsUsage",
|
|
2028
2094
|
Artifacts: "artifacts",
|
|
2029
2095
|
Bandwidth: "bandwidth",
|
|
@@ -2113,11 +2179,11 @@ export type PayloadTeamPermissions = ClosedEnum<typeof PayloadTeamPermissions>;
|
|
|
2113
2179
|
export const UserEventPayloadOrigin = {
|
|
2114
2180
|
Teams: "teams",
|
|
2115
2181
|
Saml: "saml",
|
|
2116
|
-
Link: "link",
|
|
2117
2182
|
Github: "github",
|
|
2118
2183
|
Gitlab: "gitlab",
|
|
2119
2184
|
Bitbucket: "bitbucket",
|
|
2120
2185
|
Mail: "mail",
|
|
2186
|
+
Link: "link",
|
|
2121
2187
|
Import: "import",
|
|
2122
2188
|
Dsync: "dsync",
|
|
2123
2189
|
Feedback: "feedback",
|
|
@@ -2167,12 +2233,6 @@ export type UsageAlerts = {
|
|
|
2167
2233
|
blockingAt?: number | null | undefined;
|
|
2168
2234
|
};
|
|
2169
2235
|
|
|
2170
|
-
export type AiCredits = {
|
|
2171
|
-
currentThreshold: number;
|
|
2172
|
-
warningAt?: number | null | undefined;
|
|
2173
|
-
blockedAt?: number | null | undefined;
|
|
2174
|
-
};
|
|
2175
|
-
|
|
2176
2236
|
export type AnalyticsUsage = {
|
|
2177
2237
|
currentThreshold: number;
|
|
2178
2238
|
warningAt?: number | null | undefined;
|
|
@@ -2426,7 +2486,6 @@ export type WebAnalyticsEvent = {
|
|
|
2426
2486
|
};
|
|
2427
2487
|
|
|
2428
2488
|
export type OverageUsageAlerts = {
|
|
2429
|
-
aiCredits?: AiCredits | undefined;
|
|
2430
2489
|
analyticsUsage?: AnalyticsUsage | undefined;
|
|
2431
2490
|
artifacts?: Artifacts | undefined;
|
|
2432
2491
|
bandwidth?: Bandwidth | undefined;
|
|
@@ -2622,7 +2681,6 @@ export type UserEventPayload62NewOwnerFeatureBlocksBlobBlockReason = ClosedEnum<
|
|
|
2622
2681
|
>;
|
|
2623
2682
|
|
|
2624
2683
|
export const OverageReason = {
|
|
2625
|
-
AiCredits: "aiCredits",
|
|
2626
2684
|
AnalyticsUsage: "analyticsUsage",
|
|
2627
2685
|
Artifacts: "artifacts",
|
|
2628
2686
|
Bandwidth: "bandwidth",
|
|
@@ -2688,7 +2746,6 @@ export type UserEventPayload62NewOwnerFeatureBlocksPostgresBlockReason =
|
|
|
2688
2746
|
ClosedEnum<typeof UserEventPayload62NewOwnerFeatureBlocksPostgresBlockReason>;
|
|
2689
2747
|
|
|
2690
2748
|
export const PayloadOverageReason = {
|
|
2691
|
-
AiCredits: "aiCredits",
|
|
2692
2749
|
AnalyticsUsage: "analyticsUsage",
|
|
2693
2750
|
Artifacts: "artifacts",
|
|
2694
2751
|
Bandwidth: "bandwidth",
|
|
@@ -2754,7 +2811,6 @@ export type UserEventPayload62NewOwnerFeatureBlocksRedisBlockReason =
|
|
|
2754
2811
|
ClosedEnum<typeof UserEventPayload62NewOwnerFeatureBlocksRedisBlockReason>;
|
|
2755
2812
|
|
|
2756
2813
|
export const UserEventPayloadOverageReason = {
|
|
2757
|
-
AiCredits: "aiCredits",
|
|
2758
2814
|
AnalyticsUsage: "analyticsUsage",
|
|
2759
2815
|
Artifacts: "artifacts",
|
|
2760
2816
|
Bandwidth: "bandwidth",
|
|
@@ -3085,11 +3141,11 @@ export type OldEnvVar = {
|
|
|
3085
3141
|
/**
|
|
3086
3142
|
* The date when the Shared Env Var was created.
|
|
3087
3143
|
*/
|
|
3088
|
-
created
|
|
3144
|
+
created?: Date | undefined;
|
|
3089
3145
|
/**
|
|
3090
3146
|
* The name of the Shared Env Var.
|
|
3091
3147
|
*/
|
|
3092
|
-
key
|
|
3148
|
+
key?: string | undefined;
|
|
3093
3149
|
/**
|
|
3094
3150
|
* The unique identifier of the owner (team) the Shared Env Var was created for.
|
|
3095
3151
|
*/
|
|
@@ -3097,7 +3153,7 @@ export type OldEnvVar = {
|
|
|
3097
3153
|
/**
|
|
3098
3154
|
* The unique identifier of the Shared Env Var.
|
|
3099
3155
|
*/
|
|
3100
|
-
id
|
|
3156
|
+
id?: string | undefined;
|
|
3101
3157
|
/**
|
|
3102
3158
|
* The unique identifier of the user who created the Shared Env Var.
|
|
3103
3159
|
*/
|
|
@@ -3145,7 +3201,7 @@ export type OldEnvVar = {
|
|
|
3145
3201
|
/**
|
|
3146
3202
|
* whether or not this env variable is decrypted
|
|
3147
3203
|
*/
|
|
3148
|
-
decrypted
|
|
3204
|
+
decrypted?: boolean | undefined;
|
|
3149
3205
|
/**
|
|
3150
3206
|
* A user provided comment that describes what this Shared Env Var is for.
|
|
3151
3207
|
*/
|
|
@@ -3189,11 +3245,11 @@ export type NewEnvVar = {
|
|
|
3189
3245
|
/**
|
|
3190
3246
|
* The date when the Shared Env Var was created.
|
|
3191
3247
|
*/
|
|
3192
|
-
created
|
|
3248
|
+
created?: Date | undefined;
|
|
3193
3249
|
/**
|
|
3194
3250
|
* The name of the Shared Env Var.
|
|
3195
3251
|
*/
|
|
3196
|
-
key
|
|
3252
|
+
key?: string | undefined;
|
|
3197
3253
|
/**
|
|
3198
3254
|
* The unique identifier of the owner (team) the Shared Env Var was created for.
|
|
3199
3255
|
*/
|
|
@@ -3201,7 +3257,7 @@ export type NewEnvVar = {
|
|
|
3201
3257
|
/**
|
|
3202
3258
|
* The unique identifier of the Shared Env Var.
|
|
3203
3259
|
*/
|
|
3204
|
-
id
|
|
3260
|
+
id?: string | undefined;
|
|
3205
3261
|
/**
|
|
3206
3262
|
* The unique identifier of the user who created the Shared Env Var.
|
|
3207
3263
|
*/
|
|
@@ -3249,7 +3305,7 @@ export type NewEnvVar = {
|
|
|
3249
3305
|
/**
|
|
3250
3306
|
* whether or not this env variable is decrypted
|
|
3251
3307
|
*/
|
|
3252
|
-
decrypted
|
|
3308
|
+
decrypted?: boolean | undefined;
|
|
3253
3309
|
/**
|
|
3254
3310
|
* A user provided comment that describes what this Shared Env Var is for.
|
|
3255
3311
|
*/
|
|
@@ -4084,7 +4140,7 @@ export type Action = ClosedEnum<typeof Action>;
|
|
|
4084
4140
|
/**
|
|
4085
4141
|
* The payload of the event, if requested.
|
|
4086
4142
|
*/
|
|
4087
|
-
export type
|
|
4143
|
+
export type Payload2 = {
|
|
4088
4144
|
action: Action;
|
|
4089
4145
|
id: string;
|
|
4090
4146
|
slug: string;
|
|
@@ -4094,10 +4150,10 @@ export type Two = {
|
|
|
4094
4150
|
/**
|
|
4095
4151
|
* The payload of the event, if requested.
|
|
4096
4152
|
*/
|
|
4097
|
-
export type
|
|
4153
|
+
export type Payload1 = {};
|
|
4098
4154
|
|
|
4099
4155
|
export type Payload =
|
|
4100
|
-
|
|
|
4156
|
+
| Payload1
|
|
4101
4157
|
| Three
|
|
4102
4158
|
| Nine
|
|
4103
4159
|
| Nineteen
|
|
@@ -4202,7 +4258,7 @@ export type Payload =
|
|
|
4202
4258
|
| OneHundredAndThirtyEight
|
|
4203
4259
|
| OneHundredAndFortyFive
|
|
4204
4260
|
| OneHundredAndFortySix
|
|
4205
|
-
|
|
|
4261
|
+
| Payload2
|
|
4206
4262
|
| Six
|
|
4207
4263
|
| Eleven
|
|
4208
4264
|
| Fifteen
|
|
@@ -4267,15 +4323,28 @@ export type UserEvent = {
|
|
|
4267
4323
|
*/
|
|
4268
4324
|
createdAt: number;
|
|
4269
4325
|
/**
|
|
4270
|
-
* Metadata for
|
|
4326
|
+
* Metadata for {@link userId}.
|
|
4271
4327
|
*/
|
|
4272
4328
|
user?: User | undefined;
|
|
4329
|
+
principal?: Two | One | undefined;
|
|
4330
|
+
/**
|
|
4331
|
+
* Metadata for {@link viaIds}.
|
|
4332
|
+
*/
|
|
4333
|
+
via?: Array<Via2 | Via1> | undefined;
|
|
4273
4334
|
/**
|
|
4274
|
-
*
|
|
4335
|
+
* When the principal who generated the event is a user, this is their ID; otherwise, it is empty.
|
|
4275
4336
|
*/
|
|
4276
4337
|
userId: string;
|
|
4338
|
+
/**
|
|
4339
|
+
* The ID of the principal who generated the event. The principal is typically a user, but it could also be an app, an integration, etc. The principal may have delegated its authority to an acting party, and so {@link viaIds} should be checked as well.
|
|
4340
|
+
*/
|
|
4341
|
+
principalId: string;
|
|
4342
|
+
/**
|
|
4343
|
+
* If the principal delegated its authority (for example, a user delegating to an app), then this array contains the ID of the current actor. For example, if `principalId` is "user123" and `viaIds` is `["app456"]`, we can say the event was triggered by - "app456 on behalf of user123", or - "user123 via app4556". Both are equivalent. Arbitrarily long chains of delegation can be represented. For example, if `principalId` is "user123" and `viaIds` is `["service1", "service2"]`, we can say the event was triggered by "user123 via service1 via service2".
|
|
4344
|
+
*/
|
|
4345
|
+
viaIds?: Array<string> | undefined;
|
|
4277
4346
|
payload?:
|
|
4278
|
-
|
|
|
4347
|
+
| Payload1
|
|
4279
4348
|
| Three
|
|
4280
4349
|
| Nine
|
|
4281
4350
|
| Nineteen
|
|
@@ -4380,7 +4449,7 @@ export type UserEvent = {
|
|
|
4380
4449
|
| OneHundredAndThirtyEight
|
|
4381
4450
|
| OneHundredAndFortyFive
|
|
4382
4451
|
| OneHundredAndFortySix
|
|
4383
|
-
|
|
|
4452
|
+
| Payload2
|
|
4384
4453
|
| Six
|
|
4385
4454
|
| Eleven
|
|
4386
4455
|
| Fifteen
|
|
@@ -4508,18 +4577,18 @@ export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
|
|
|
4508
4577
|
.object({
|
|
4509
4578
|
avatar: z.string(),
|
|
4510
4579
|
email: z.string(),
|
|
4580
|
+
username: z.string(),
|
|
4511
4581
|
slug: z.string().optional(),
|
|
4512
4582
|
uid: z.string(),
|
|
4513
|
-
username: z.string(),
|
|
4514
4583
|
});
|
|
4515
4584
|
|
|
4516
4585
|
/** @internal */
|
|
4517
4586
|
export type User$Outbound = {
|
|
4518
4587
|
avatar: string;
|
|
4519
4588
|
email: string;
|
|
4589
|
+
username: string;
|
|
4520
4590
|
slug?: string | undefined;
|
|
4521
4591
|
uid: string;
|
|
4522
|
-
username: string;
|
|
4523
4592
|
};
|
|
4524
4593
|
|
|
4525
4594
|
/** @internal */
|
|
@@ -4527,9 +4596,9 @@ export const User$outboundSchema: z.ZodType<User$Outbound, z.ZodTypeDef, User> =
|
|
|
4527
4596
|
z.object({
|
|
4528
4597
|
avatar: z.string(),
|
|
4529
4598
|
email: z.string(),
|
|
4599
|
+
username: z.string(),
|
|
4530
4600
|
slug: z.string().optional(),
|
|
4531
4601
|
uid: z.string(),
|
|
4532
|
-
username: z.string(),
|
|
4533
4602
|
});
|
|
4534
4603
|
|
|
4535
4604
|
/**
|
|
@@ -4559,6 +4628,395 @@ export function userFromJSON(
|
|
|
4559
4628
|
);
|
|
4560
4629
|
}
|
|
4561
4630
|
|
|
4631
|
+
/** @internal */
|
|
4632
|
+
export const UserEventPrincipalType$inboundSchema: z.ZodNativeEnum<
|
|
4633
|
+
typeof UserEventPrincipalType
|
|
4634
|
+
> = z.nativeEnum(UserEventPrincipalType);
|
|
4635
|
+
|
|
4636
|
+
/** @internal */
|
|
4637
|
+
export const UserEventPrincipalType$outboundSchema: z.ZodNativeEnum<
|
|
4638
|
+
typeof UserEventPrincipalType
|
|
4639
|
+
> = UserEventPrincipalType$inboundSchema;
|
|
4640
|
+
|
|
4641
|
+
/**
|
|
4642
|
+
* @internal
|
|
4643
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4644
|
+
*/
|
|
4645
|
+
export namespace UserEventPrincipalType$ {
|
|
4646
|
+
/** @deprecated use `UserEventPrincipalType$inboundSchema` instead. */
|
|
4647
|
+
export const inboundSchema = UserEventPrincipalType$inboundSchema;
|
|
4648
|
+
/** @deprecated use `UserEventPrincipalType$outboundSchema` instead. */
|
|
4649
|
+
export const outboundSchema = UserEventPrincipalType$outboundSchema;
|
|
4650
|
+
}
|
|
4651
|
+
|
|
4652
|
+
/** @internal */
|
|
4653
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
4654
|
+
.object({
|
|
4655
|
+
type: UserEventPrincipalType$inboundSchema,
|
|
4656
|
+
clientId: z.string(),
|
|
4657
|
+
name: z.string(),
|
|
4658
|
+
});
|
|
4659
|
+
|
|
4660
|
+
/** @internal */
|
|
4661
|
+
export type Two$Outbound = {
|
|
4662
|
+
type: string;
|
|
4663
|
+
clientId: string;
|
|
4664
|
+
name: string;
|
|
4665
|
+
};
|
|
4666
|
+
|
|
4667
|
+
/** @internal */
|
|
4668
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
4669
|
+
.object({
|
|
4670
|
+
type: UserEventPrincipalType$outboundSchema,
|
|
4671
|
+
clientId: z.string(),
|
|
4672
|
+
name: z.string(),
|
|
4673
|
+
});
|
|
4674
|
+
|
|
4675
|
+
/**
|
|
4676
|
+
* @internal
|
|
4677
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4678
|
+
*/
|
|
4679
|
+
export namespace Two$ {
|
|
4680
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
4681
|
+
export const inboundSchema = Two$inboundSchema;
|
|
4682
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
4683
|
+
export const outboundSchema = Two$outboundSchema;
|
|
4684
|
+
/** @deprecated use `Two$Outbound` instead. */
|
|
4685
|
+
export type Outbound = Two$Outbound;
|
|
4686
|
+
}
|
|
4687
|
+
|
|
4688
|
+
export function twoToJSON(two: Two): string {
|
|
4689
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
4690
|
+
}
|
|
4691
|
+
|
|
4692
|
+
export function twoFromJSON(
|
|
4693
|
+
jsonString: string,
|
|
4694
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
4695
|
+
return safeParse(
|
|
4696
|
+
jsonString,
|
|
4697
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
4698
|
+
`Failed to parse 'Two' from JSON`,
|
|
4699
|
+
);
|
|
4700
|
+
}
|
|
4701
|
+
|
|
4702
|
+
/** @internal */
|
|
4703
|
+
export const PrincipalType$inboundSchema: z.ZodNativeEnum<
|
|
4704
|
+
typeof PrincipalType
|
|
4705
|
+
> = z.nativeEnum(PrincipalType);
|
|
4706
|
+
|
|
4707
|
+
/** @internal */
|
|
4708
|
+
export const PrincipalType$outboundSchema: z.ZodNativeEnum<
|
|
4709
|
+
typeof PrincipalType
|
|
4710
|
+
> = PrincipalType$inboundSchema;
|
|
4711
|
+
|
|
4712
|
+
/**
|
|
4713
|
+
* @internal
|
|
4714
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4715
|
+
*/
|
|
4716
|
+
export namespace PrincipalType$ {
|
|
4717
|
+
/** @deprecated use `PrincipalType$inboundSchema` instead. */
|
|
4718
|
+
export const inboundSchema = PrincipalType$inboundSchema;
|
|
4719
|
+
/** @deprecated use `PrincipalType$outboundSchema` instead. */
|
|
4720
|
+
export const outboundSchema = PrincipalType$outboundSchema;
|
|
4721
|
+
}
|
|
4722
|
+
|
|
4723
|
+
/** @internal */
|
|
4724
|
+
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
4725
|
+
.object({
|
|
4726
|
+
type: PrincipalType$inboundSchema.optional(),
|
|
4727
|
+
avatar: z.string(),
|
|
4728
|
+
email: z.string(),
|
|
4729
|
+
slug: z.string().optional(),
|
|
4730
|
+
uid: z.string(),
|
|
4731
|
+
username: z.string(),
|
|
4732
|
+
});
|
|
4733
|
+
|
|
4734
|
+
/** @internal */
|
|
4735
|
+
export type One$Outbound = {
|
|
4736
|
+
type?: string | undefined;
|
|
4737
|
+
avatar: string;
|
|
4738
|
+
email: string;
|
|
4739
|
+
slug?: string | undefined;
|
|
4740
|
+
uid: string;
|
|
4741
|
+
username: string;
|
|
4742
|
+
};
|
|
4743
|
+
|
|
4744
|
+
/** @internal */
|
|
4745
|
+
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
4746
|
+
.object({
|
|
4747
|
+
type: PrincipalType$outboundSchema.optional(),
|
|
4748
|
+
avatar: z.string(),
|
|
4749
|
+
email: z.string(),
|
|
4750
|
+
slug: z.string().optional(),
|
|
4751
|
+
uid: z.string(),
|
|
4752
|
+
username: z.string(),
|
|
4753
|
+
});
|
|
4754
|
+
|
|
4755
|
+
/**
|
|
4756
|
+
* @internal
|
|
4757
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4758
|
+
*/
|
|
4759
|
+
export namespace One$ {
|
|
4760
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
4761
|
+
export const inboundSchema = One$inboundSchema;
|
|
4762
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
4763
|
+
export const outboundSchema = One$outboundSchema;
|
|
4764
|
+
/** @deprecated use `One$Outbound` instead. */
|
|
4765
|
+
export type Outbound = One$Outbound;
|
|
4766
|
+
}
|
|
4767
|
+
|
|
4768
|
+
export function oneToJSON(one: One): string {
|
|
4769
|
+
return JSON.stringify(One$outboundSchema.parse(one));
|
|
4770
|
+
}
|
|
4771
|
+
|
|
4772
|
+
export function oneFromJSON(
|
|
4773
|
+
jsonString: string,
|
|
4774
|
+
): SafeParseResult<One, SDKValidationError> {
|
|
4775
|
+
return safeParse(
|
|
4776
|
+
jsonString,
|
|
4777
|
+
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
4778
|
+
`Failed to parse 'One' from JSON`,
|
|
4779
|
+
);
|
|
4780
|
+
}
|
|
4781
|
+
|
|
4782
|
+
/** @internal */
|
|
4783
|
+
export const Principal$inboundSchema: z.ZodType<
|
|
4784
|
+
Principal,
|
|
4785
|
+
z.ZodTypeDef,
|
|
4786
|
+
unknown
|
|
4787
|
+
> = z.union([z.lazy(() => Two$inboundSchema), z.lazy(() => One$inboundSchema)]);
|
|
4788
|
+
|
|
4789
|
+
/** @internal */
|
|
4790
|
+
export type Principal$Outbound = Two$Outbound | One$Outbound;
|
|
4791
|
+
|
|
4792
|
+
/** @internal */
|
|
4793
|
+
export const Principal$outboundSchema: z.ZodType<
|
|
4794
|
+
Principal$Outbound,
|
|
4795
|
+
z.ZodTypeDef,
|
|
4796
|
+
Principal
|
|
4797
|
+
> = z.union([
|
|
4798
|
+
z.lazy(() => Two$outboundSchema),
|
|
4799
|
+
z.lazy(() => One$outboundSchema),
|
|
4800
|
+
]);
|
|
4801
|
+
|
|
4802
|
+
/**
|
|
4803
|
+
* @internal
|
|
4804
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4805
|
+
*/
|
|
4806
|
+
export namespace Principal$ {
|
|
4807
|
+
/** @deprecated use `Principal$inboundSchema` instead. */
|
|
4808
|
+
export const inboundSchema = Principal$inboundSchema;
|
|
4809
|
+
/** @deprecated use `Principal$outboundSchema` instead. */
|
|
4810
|
+
export const outboundSchema = Principal$outboundSchema;
|
|
4811
|
+
/** @deprecated use `Principal$Outbound` instead. */
|
|
4812
|
+
export type Outbound = Principal$Outbound;
|
|
4813
|
+
}
|
|
4814
|
+
|
|
4815
|
+
export function principalToJSON(principal: Principal): string {
|
|
4816
|
+
return JSON.stringify(Principal$outboundSchema.parse(principal));
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4819
|
+
export function principalFromJSON(
|
|
4820
|
+
jsonString: string,
|
|
4821
|
+
): SafeParseResult<Principal, SDKValidationError> {
|
|
4822
|
+
return safeParse(
|
|
4823
|
+
jsonString,
|
|
4824
|
+
(x) => Principal$inboundSchema.parse(JSON.parse(x)),
|
|
4825
|
+
`Failed to parse 'Principal' from JSON`,
|
|
4826
|
+
);
|
|
4827
|
+
}
|
|
4828
|
+
|
|
4829
|
+
/** @internal */
|
|
4830
|
+
export const UserEventViaType$inboundSchema: z.ZodNativeEnum<
|
|
4831
|
+
typeof UserEventViaType
|
|
4832
|
+
> = z.nativeEnum(UserEventViaType);
|
|
4833
|
+
|
|
4834
|
+
/** @internal */
|
|
4835
|
+
export const UserEventViaType$outboundSchema: z.ZodNativeEnum<
|
|
4836
|
+
typeof UserEventViaType
|
|
4837
|
+
> = UserEventViaType$inboundSchema;
|
|
4838
|
+
|
|
4839
|
+
/**
|
|
4840
|
+
* @internal
|
|
4841
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4842
|
+
*/
|
|
4843
|
+
export namespace UserEventViaType$ {
|
|
4844
|
+
/** @deprecated use `UserEventViaType$inboundSchema` instead. */
|
|
4845
|
+
export const inboundSchema = UserEventViaType$inboundSchema;
|
|
4846
|
+
/** @deprecated use `UserEventViaType$outboundSchema` instead. */
|
|
4847
|
+
export const outboundSchema = UserEventViaType$outboundSchema;
|
|
4848
|
+
}
|
|
4849
|
+
|
|
4850
|
+
/** @internal */
|
|
4851
|
+
export const Via2$inboundSchema: z.ZodType<Via2, z.ZodTypeDef, unknown> = z
|
|
4852
|
+
.object({
|
|
4853
|
+
type: UserEventViaType$inboundSchema,
|
|
4854
|
+
clientId: z.string(),
|
|
4855
|
+
name: z.string(),
|
|
4856
|
+
});
|
|
4857
|
+
|
|
4858
|
+
/** @internal */
|
|
4859
|
+
export type Via2$Outbound = {
|
|
4860
|
+
type: string;
|
|
4861
|
+
clientId: string;
|
|
4862
|
+
name: string;
|
|
4863
|
+
};
|
|
4864
|
+
|
|
4865
|
+
/** @internal */
|
|
4866
|
+
export const Via2$outboundSchema: z.ZodType<Via2$Outbound, z.ZodTypeDef, Via2> =
|
|
4867
|
+
z.object({
|
|
4868
|
+
type: UserEventViaType$outboundSchema,
|
|
4869
|
+
clientId: z.string(),
|
|
4870
|
+
name: z.string(),
|
|
4871
|
+
});
|
|
4872
|
+
|
|
4873
|
+
/**
|
|
4874
|
+
* @internal
|
|
4875
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4876
|
+
*/
|
|
4877
|
+
export namespace Via2$ {
|
|
4878
|
+
/** @deprecated use `Via2$inboundSchema` instead. */
|
|
4879
|
+
export const inboundSchema = Via2$inboundSchema;
|
|
4880
|
+
/** @deprecated use `Via2$outboundSchema` instead. */
|
|
4881
|
+
export const outboundSchema = Via2$outboundSchema;
|
|
4882
|
+
/** @deprecated use `Via2$Outbound` instead. */
|
|
4883
|
+
export type Outbound = Via2$Outbound;
|
|
4884
|
+
}
|
|
4885
|
+
|
|
4886
|
+
export function via2ToJSON(via2: Via2): string {
|
|
4887
|
+
return JSON.stringify(Via2$outboundSchema.parse(via2));
|
|
4888
|
+
}
|
|
4889
|
+
|
|
4890
|
+
export function via2FromJSON(
|
|
4891
|
+
jsonString: string,
|
|
4892
|
+
): SafeParseResult<Via2, SDKValidationError> {
|
|
4893
|
+
return safeParse(
|
|
4894
|
+
jsonString,
|
|
4895
|
+
(x) => Via2$inboundSchema.parse(JSON.parse(x)),
|
|
4896
|
+
`Failed to parse 'Via2' from JSON`,
|
|
4897
|
+
);
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
/** @internal */
|
|
4901
|
+
export const ViaType$inboundSchema: z.ZodNativeEnum<typeof ViaType> = z
|
|
4902
|
+
.nativeEnum(ViaType);
|
|
4903
|
+
|
|
4904
|
+
/** @internal */
|
|
4905
|
+
export const ViaType$outboundSchema: z.ZodNativeEnum<typeof ViaType> =
|
|
4906
|
+
ViaType$inboundSchema;
|
|
4907
|
+
|
|
4908
|
+
/**
|
|
4909
|
+
* @internal
|
|
4910
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4911
|
+
*/
|
|
4912
|
+
export namespace ViaType$ {
|
|
4913
|
+
/** @deprecated use `ViaType$inboundSchema` instead. */
|
|
4914
|
+
export const inboundSchema = ViaType$inboundSchema;
|
|
4915
|
+
/** @deprecated use `ViaType$outboundSchema` instead. */
|
|
4916
|
+
export const outboundSchema = ViaType$outboundSchema;
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4919
|
+
/** @internal */
|
|
4920
|
+
export const Via1$inboundSchema: z.ZodType<Via1, z.ZodTypeDef, unknown> = z
|
|
4921
|
+
.object({
|
|
4922
|
+
type: ViaType$inboundSchema.optional(),
|
|
4923
|
+
avatar: z.string(),
|
|
4924
|
+
email: z.string(),
|
|
4925
|
+
slug: z.string().optional(),
|
|
4926
|
+
uid: z.string(),
|
|
4927
|
+
username: z.string(),
|
|
4928
|
+
});
|
|
4929
|
+
|
|
4930
|
+
/** @internal */
|
|
4931
|
+
export type Via1$Outbound = {
|
|
4932
|
+
type?: string | undefined;
|
|
4933
|
+
avatar: string;
|
|
4934
|
+
email: string;
|
|
4935
|
+
slug?: string | undefined;
|
|
4936
|
+
uid: string;
|
|
4937
|
+
username: string;
|
|
4938
|
+
};
|
|
4939
|
+
|
|
4940
|
+
/** @internal */
|
|
4941
|
+
export const Via1$outboundSchema: z.ZodType<Via1$Outbound, z.ZodTypeDef, Via1> =
|
|
4942
|
+
z.object({
|
|
4943
|
+
type: ViaType$outboundSchema.optional(),
|
|
4944
|
+
avatar: z.string(),
|
|
4945
|
+
email: z.string(),
|
|
4946
|
+
slug: z.string().optional(),
|
|
4947
|
+
uid: z.string(),
|
|
4948
|
+
username: z.string(),
|
|
4949
|
+
});
|
|
4950
|
+
|
|
4951
|
+
/**
|
|
4952
|
+
* @internal
|
|
4953
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4954
|
+
*/
|
|
4955
|
+
export namespace Via1$ {
|
|
4956
|
+
/** @deprecated use `Via1$inboundSchema` instead. */
|
|
4957
|
+
export const inboundSchema = Via1$inboundSchema;
|
|
4958
|
+
/** @deprecated use `Via1$outboundSchema` instead. */
|
|
4959
|
+
export const outboundSchema = Via1$outboundSchema;
|
|
4960
|
+
/** @deprecated use `Via1$Outbound` instead. */
|
|
4961
|
+
export type Outbound = Via1$Outbound;
|
|
4962
|
+
}
|
|
4963
|
+
|
|
4964
|
+
export function via1ToJSON(via1: Via1): string {
|
|
4965
|
+
return JSON.stringify(Via1$outboundSchema.parse(via1));
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
export function via1FromJSON(
|
|
4969
|
+
jsonString: string,
|
|
4970
|
+
): SafeParseResult<Via1, SDKValidationError> {
|
|
4971
|
+
return safeParse(
|
|
4972
|
+
jsonString,
|
|
4973
|
+
(x) => Via1$inboundSchema.parse(JSON.parse(x)),
|
|
4974
|
+
`Failed to parse 'Via1' from JSON`,
|
|
4975
|
+
);
|
|
4976
|
+
}
|
|
4977
|
+
|
|
4978
|
+
/** @internal */
|
|
4979
|
+
export const Via$inboundSchema: z.ZodType<Via, z.ZodTypeDef, unknown> = z.union(
|
|
4980
|
+
[z.lazy(() => Via2$inboundSchema), z.lazy(() => Via1$inboundSchema)],
|
|
4981
|
+
);
|
|
4982
|
+
|
|
4983
|
+
/** @internal */
|
|
4984
|
+
export type Via$Outbound = Via2$Outbound | Via1$Outbound;
|
|
4985
|
+
|
|
4986
|
+
/** @internal */
|
|
4987
|
+
export const Via$outboundSchema: z.ZodType<Via$Outbound, z.ZodTypeDef, Via> = z
|
|
4988
|
+
.union([
|
|
4989
|
+
z.lazy(() => Via2$outboundSchema),
|
|
4990
|
+
z.lazy(() => Via1$outboundSchema),
|
|
4991
|
+
]);
|
|
4992
|
+
|
|
4993
|
+
/**
|
|
4994
|
+
* @internal
|
|
4995
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4996
|
+
*/
|
|
4997
|
+
export namespace Via$ {
|
|
4998
|
+
/** @deprecated use `Via$inboundSchema` instead. */
|
|
4999
|
+
export const inboundSchema = Via$inboundSchema;
|
|
5000
|
+
/** @deprecated use `Via$outboundSchema` instead. */
|
|
5001
|
+
export const outboundSchema = Via$outboundSchema;
|
|
5002
|
+
/** @deprecated use `Via$Outbound` instead. */
|
|
5003
|
+
export type Outbound = Via$Outbound;
|
|
5004
|
+
}
|
|
5005
|
+
|
|
5006
|
+
export function viaToJSON(via: Via): string {
|
|
5007
|
+
return JSON.stringify(Via$outboundSchema.parse(via));
|
|
5008
|
+
}
|
|
5009
|
+
|
|
5010
|
+
export function viaFromJSON(
|
|
5011
|
+
jsonString: string,
|
|
5012
|
+
): SafeParseResult<Via, SDKValidationError> {
|
|
5013
|
+
return safeParse(
|
|
5014
|
+
jsonString,
|
|
5015
|
+
(x) => Via$inboundSchema.parse(JSON.parse(x)),
|
|
5016
|
+
`Failed to parse 'Via' from JSON`,
|
|
5017
|
+
);
|
|
5018
|
+
}
|
|
5019
|
+
|
|
4562
5020
|
/** @internal */
|
|
4563
5021
|
export const GrantType$inboundSchema: z.ZodNativeEnum<typeof GrantType> = z
|
|
4564
5022
|
.nativeEnum(GrantType);
|
|
@@ -17459,62 +17917,6 @@ export function usageAlertsFromJSON(
|
|
|
17459
17917
|
);
|
|
17460
17918
|
}
|
|
17461
17919
|
|
|
17462
|
-
/** @internal */
|
|
17463
|
-
export const AiCredits$inboundSchema: z.ZodType<
|
|
17464
|
-
AiCredits,
|
|
17465
|
-
z.ZodTypeDef,
|
|
17466
|
-
unknown
|
|
17467
|
-
> = z.object({
|
|
17468
|
-
currentThreshold: z.number(),
|
|
17469
|
-
warningAt: z.nullable(z.number()).optional(),
|
|
17470
|
-
blockedAt: z.nullable(z.number()).optional(),
|
|
17471
|
-
});
|
|
17472
|
-
|
|
17473
|
-
/** @internal */
|
|
17474
|
-
export type AiCredits$Outbound = {
|
|
17475
|
-
currentThreshold: number;
|
|
17476
|
-
warningAt?: number | null | undefined;
|
|
17477
|
-
blockedAt?: number | null | undefined;
|
|
17478
|
-
};
|
|
17479
|
-
|
|
17480
|
-
/** @internal */
|
|
17481
|
-
export const AiCredits$outboundSchema: z.ZodType<
|
|
17482
|
-
AiCredits$Outbound,
|
|
17483
|
-
z.ZodTypeDef,
|
|
17484
|
-
AiCredits
|
|
17485
|
-
> = z.object({
|
|
17486
|
-
currentThreshold: z.number(),
|
|
17487
|
-
warningAt: z.nullable(z.number()).optional(),
|
|
17488
|
-
blockedAt: z.nullable(z.number()).optional(),
|
|
17489
|
-
});
|
|
17490
|
-
|
|
17491
|
-
/**
|
|
17492
|
-
* @internal
|
|
17493
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17494
|
-
*/
|
|
17495
|
-
export namespace AiCredits$ {
|
|
17496
|
-
/** @deprecated use `AiCredits$inboundSchema` instead. */
|
|
17497
|
-
export const inboundSchema = AiCredits$inboundSchema;
|
|
17498
|
-
/** @deprecated use `AiCredits$outboundSchema` instead. */
|
|
17499
|
-
export const outboundSchema = AiCredits$outboundSchema;
|
|
17500
|
-
/** @deprecated use `AiCredits$Outbound` instead. */
|
|
17501
|
-
export type Outbound = AiCredits$Outbound;
|
|
17502
|
-
}
|
|
17503
|
-
|
|
17504
|
-
export function aiCreditsToJSON(aiCredits: AiCredits): string {
|
|
17505
|
-
return JSON.stringify(AiCredits$outboundSchema.parse(aiCredits));
|
|
17506
|
-
}
|
|
17507
|
-
|
|
17508
|
-
export function aiCreditsFromJSON(
|
|
17509
|
-
jsonString: string,
|
|
17510
|
-
): SafeParseResult<AiCredits, SDKValidationError> {
|
|
17511
|
-
return safeParse(
|
|
17512
|
-
jsonString,
|
|
17513
|
-
(x) => AiCredits$inboundSchema.parse(JSON.parse(x)),
|
|
17514
|
-
`Failed to parse 'AiCredits' from JSON`,
|
|
17515
|
-
);
|
|
17516
|
-
}
|
|
17517
|
-
|
|
17518
17920
|
/** @internal */
|
|
17519
17921
|
export const AnalyticsUsage$inboundSchema: z.ZodType<
|
|
17520
17922
|
AnalyticsUsage,
|
|
@@ -20034,7 +20436,6 @@ export const OverageUsageAlerts$inboundSchema: z.ZodType<
|
|
|
20034
20436
|
z.ZodTypeDef,
|
|
20035
20437
|
unknown
|
|
20036
20438
|
> = z.object({
|
|
20037
|
-
aiCredits: z.lazy(() => AiCredits$inboundSchema).optional(),
|
|
20038
20439
|
analyticsUsage: z.lazy(() => AnalyticsUsage$inboundSchema).optional(),
|
|
20039
20440
|
artifacts: z.lazy(() => Artifacts$inboundSchema).optional(),
|
|
20040
20441
|
bandwidth: z.lazy(() => Bandwidth$inboundSchema).optional(),
|
|
@@ -20117,7 +20518,6 @@ export const OverageUsageAlerts$inboundSchema: z.ZodType<
|
|
|
20117
20518
|
|
|
20118
20519
|
/** @internal */
|
|
20119
20520
|
export type OverageUsageAlerts$Outbound = {
|
|
20120
|
-
aiCredits?: AiCredits$Outbound | undefined;
|
|
20121
20521
|
analyticsUsage?: AnalyticsUsage$Outbound | undefined;
|
|
20122
20522
|
artifacts?: Artifacts$Outbound | undefined;
|
|
20123
20523
|
bandwidth?: Bandwidth$Outbound | undefined;
|
|
@@ -20184,7 +20584,6 @@ export const OverageUsageAlerts$outboundSchema: z.ZodType<
|
|
|
20184
20584
|
z.ZodTypeDef,
|
|
20185
20585
|
OverageUsageAlerts
|
|
20186
20586
|
> = z.object({
|
|
20187
|
-
aiCredits: z.lazy(() => AiCredits$outboundSchema).optional(),
|
|
20188
20587
|
analyticsUsage: z.lazy(() => AnalyticsUsage$outboundSchema).optional(),
|
|
20189
20588
|
artifacts: z.lazy(() => Artifacts$outboundSchema).optional(),
|
|
20190
20589
|
bandwidth: z.lazy(() => Bandwidth$outboundSchema).optional(),
|
|
@@ -22192,10 +22591,11 @@ export const OldEnvVar$inboundSchema: z.ZodType<
|
|
|
22192
22591
|
z.ZodTypeDef,
|
|
22193
22592
|
unknown
|
|
22194
22593
|
> = z.object({
|
|
22195
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
22196
|
-
|
|
22594
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
22595
|
+
.optional(),
|
|
22596
|
+
key: z.string().optional(),
|
|
22197
22597
|
ownerId: z.nullable(z.string()).optional(),
|
|
22198
|
-
id: z.string(),
|
|
22598
|
+
id: z.string().optional(),
|
|
22199
22599
|
createdBy: z.nullable(z.string()).optional(),
|
|
22200
22600
|
deletedBy: z.nullable(z.string()).optional(),
|
|
22201
22601
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -22207,17 +22607,17 @@ export const OldEnvVar$inboundSchema: z.ZodType<
|
|
|
22207
22607
|
type: UserEventPayload58OldEnvVarType$inboundSchema.optional(),
|
|
22208
22608
|
target: z.array(UserEventPayloadTarget$inboundSchema).optional(),
|
|
22209
22609
|
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
22210
|
-
decrypted: z.boolean(),
|
|
22610
|
+
decrypted: z.boolean().optional(),
|
|
22211
22611
|
comment: z.string().optional(),
|
|
22212
22612
|
lastEditedByDisplayName: z.string().optional(),
|
|
22213
22613
|
});
|
|
22214
22614
|
|
|
22215
22615
|
/** @internal */
|
|
22216
22616
|
export type OldEnvVar$Outbound = {
|
|
22217
|
-
created
|
|
22218
|
-
key
|
|
22617
|
+
created?: string | undefined;
|
|
22618
|
+
key?: string | undefined;
|
|
22219
22619
|
ownerId?: string | null | undefined;
|
|
22220
|
-
id
|
|
22620
|
+
id?: string | undefined;
|
|
22221
22621
|
createdBy?: string | null | undefined;
|
|
22222
22622
|
deletedBy?: string | null | undefined;
|
|
22223
22623
|
updatedBy?: string | null | undefined;
|
|
@@ -22229,7 +22629,7 @@ export type OldEnvVar$Outbound = {
|
|
|
22229
22629
|
type?: string | undefined;
|
|
22230
22630
|
target?: Array<string> | undefined;
|
|
22231
22631
|
applyToAllCustomEnvironments?: boolean | undefined;
|
|
22232
|
-
decrypted
|
|
22632
|
+
decrypted?: boolean | undefined;
|
|
22233
22633
|
comment?: string | undefined;
|
|
22234
22634
|
lastEditedByDisplayName?: string | undefined;
|
|
22235
22635
|
};
|
|
@@ -22240,10 +22640,10 @@ export const OldEnvVar$outboundSchema: z.ZodType<
|
|
|
22240
22640
|
z.ZodTypeDef,
|
|
22241
22641
|
OldEnvVar
|
|
22242
22642
|
> = z.object({
|
|
22243
|
-
created: z.date().transform(v => v.toISOString()),
|
|
22244
|
-
key: z.string(),
|
|
22643
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
22644
|
+
key: z.string().optional(),
|
|
22245
22645
|
ownerId: z.nullable(z.string()).optional(),
|
|
22246
|
-
id: z.string(),
|
|
22646
|
+
id: z.string().optional(),
|
|
22247
22647
|
createdBy: z.nullable(z.string()).optional(),
|
|
22248
22648
|
deletedBy: z.nullable(z.string()).optional(),
|
|
22249
22649
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -22255,7 +22655,7 @@ export const OldEnvVar$outboundSchema: z.ZodType<
|
|
|
22255
22655
|
type: UserEventPayload58OldEnvVarType$outboundSchema.optional(),
|
|
22256
22656
|
target: z.array(UserEventPayloadTarget$outboundSchema).optional(),
|
|
22257
22657
|
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
22258
|
-
decrypted: z.boolean(),
|
|
22658
|
+
decrypted: z.boolean().optional(),
|
|
22259
22659
|
comment: z.string().optional(),
|
|
22260
22660
|
lastEditedByDisplayName: z.string().optional(),
|
|
22261
22661
|
});
|
|
@@ -22335,10 +22735,11 @@ export const NewEnvVar$inboundSchema: z.ZodType<
|
|
|
22335
22735
|
z.ZodTypeDef,
|
|
22336
22736
|
unknown
|
|
22337
22737
|
> = z.object({
|
|
22338
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
22339
|
-
|
|
22738
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
22739
|
+
.optional(),
|
|
22740
|
+
key: z.string().optional(),
|
|
22340
22741
|
ownerId: z.nullable(z.string()).optional(),
|
|
22341
|
-
id: z.string(),
|
|
22742
|
+
id: z.string().optional(),
|
|
22342
22743
|
createdBy: z.nullable(z.string()).optional(),
|
|
22343
22744
|
deletedBy: z.nullable(z.string()).optional(),
|
|
22344
22745
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -22350,17 +22751,17 @@ export const NewEnvVar$inboundSchema: z.ZodType<
|
|
|
22350
22751
|
type: UserEventPayload58Type$inboundSchema.optional(),
|
|
22351
22752
|
target: z.array(UserEventPayload58Target$inboundSchema).optional(),
|
|
22352
22753
|
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
22353
|
-
decrypted: z.boolean(),
|
|
22754
|
+
decrypted: z.boolean().optional(),
|
|
22354
22755
|
comment: z.string().optional(),
|
|
22355
22756
|
lastEditedByDisplayName: z.string().optional(),
|
|
22356
22757
|
});
|
|
22357
22758
|
|
|
22358
22759
|
/** @internal */
|
|
22359
22760
|
export type NewEnvVar$Outbound = {
|
|
22360
|
-
created
|
|
22361
|
-
key
|
|
22761
|
+
created?: string | undefined;
|
|
22762
|
+
key?: string | undefined;
|
|
22362
22763
|
ownerId?: string | null | undefined;
|
|
22363
|
-
id
|
|
22764
|
+
id?: string | undefined;
|
|
22364
22765
|
createdBy?: string | null | undefined;
|
|
22365
22766
|
deletedBy?: string | null | undefined;
|
|
22366
22767
|
updatedBy?: string | null | undefined;
|
|
@@ -22372,7 +22773,7 @@ export type NewEnvVar$Outbound = {
|
|
|
22372
22773
|
type?: string | undefined;
|
|
22373
22774
|
target?: Array<string> | undefined;
|
|
22374
22775
|
applyToAllCustomEnvironments?: boolean | undefined;
|
|
22375
|
-
decrypted
|
|
22776
|
+
decrypted?: boolean | undefined;
|
|
22376
22777
|
comment?: string | undefined;
|
|
22377
22778
|
lastEditedByDisplayName?: string | undefined;
|
|
22378
22779
|
};
|
|
@@ -22383,10 +22784,10 @@ export const NewEnvVar$outboundSchema: z.ZodType<
|
|
|
22383
22784
|
z.ZodTypeDef,
|
|
22384
22785
|
NewEnvVar
|
|
22385
22786
|
> = z.object({
|
|
22386
|
-
created: z.date().transform(v => v.toISOString()),
|
|
22387
|
-
key: z.string(),
|
|
22787
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
22788
|
+
key: z.string().optional(),
|
|
22388
22789
|
ownerId: z.nullable(z.string()).optional(),
|
|
22389
|
-
id: z.string(),
|
|
22790
|
+
id: z.string().optional(),
|
|
22390
22791
|
createdBy: z.nullable(z.string()).optional(),
|
|
22391
22792
|
deletedBy: z.nullable(z.string()).optional(),
|
|
22392
22793
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -22398,7 +22799,7 @@ export const NewEnvVar$outboundSchema: z.ZodType<
|
|
|
22398
22799
|
type: UserEventPayload58Type$outboundSchema.optional(),
|
|
22399
22800
|
target: z.array(UserEventPayload58Target$outboundSchema).optional(),
|
|
22400
22801
|
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
22401
|
-
decrypted: z.boolean(),
|
|
22802
|
+
decrypted: z.boolean().optional(),
|
|
22402
22803
|
comment: z.string().optional(),
|
|
22403
22804
|
lastEditedByDisplayName: z.string().optional(),
|
|
22404
22805
|
});
|
|
@@ -27638,16 +28039,19 @@ export namespace Action$ {
|
|
|
27638
28039
|
}
|
|
27639
28040
|
|
|
27640
28041
|
/** @internal */
|
|
27641
|
-
export const
|
|
27642
|
-
|
|
27643
|
-
|
|
27644
|
-
|
|
27645
|
-
|
|
27646
|
-
|
|
27647
|
-
|
|
28042
|
+
export const Payload2$inboundSchema: z.ZodType<
|
|
28043
|
+
Payload2,
|
|
28044
|
+
z.ZodTypeDef,
|
|
28045
|
+
unknown
|
|
28046
|
+
> = z.object({
|
|
28047
|
+
action: Action$inboundSchema,
|
|
28048
|
+
id: z.string(),
|
|
28049
|
+
slug: z.string(),
|
|
28050
|
+
projectId: z.string(),
|
|
28051
|
+
});
|
|
27648
28052
|
|
|
27649
28053
|
/** @internal */
|
|
27650
|
-
export type
|
|
28054
|
+
export type Payload2$Outbound = {
|
|
27651
28055
|
action: string;
|
|
27652
28056
|
id: string;
|
|
27653
28057
|
slug: string;
|
|
@@ -27655,83 +28059,92 @@ export type Two$Outbound = {
|
|
|
27655
28059
|
};
|
|
27656
28060
|
|
|
27657
28061
|
/** @internal */
|
|
27658
|
-
export const
|
|
27659
|
-
|
|
27660
|
-
|
|
27661
|
-
|
|
27662
|
-
|
|
27663
|
-
|
|
27664
|
-
|
|
28062
|
+
export const Payload2$outboundSchema: z.ZodType<
|
|
28063
|
+
Payload2$Outbound,
|
|
28064
|
+
z.ZodTypeDef,
|
|
28065
|
+
Payload2
|
|
28066
|
+
> = z.object({
|
|
28067
|
+
action: Action$outboundSchema,
|
|
28068
|
+
id: z.string(),
|
|
28069
|
+
slug: z.string(),
|
|
28070
|
+
projectId: z.string(),
|
|
28071
|
+
});
|
|
27665
28072
|
|
|
27666
28073
|
/**
|
|
27667
28074
|
* @internal
|
|
27668
28075
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27669
28076
|
*/
|
|
27670
|
-
export namespace
|
|
27671
|
-
/** @deprecated use `
|
|
27672
|
-
export const inboundSchema =
|
|
27673
|
-
/** @deprecated use `
|
|
27674
|
-
export const outboundSchema =
|
|
27675
|
-
/** @deprecated use `
|
|
27676
|
-
export type Outbound =
|
|
28077
|
+
export namespace Payload2$ {
|
|
28078
|
+
/** @deprecated use `Payload2$inboundSchema` instead. */
|
|
28079
|
+
export const inboundSchema = Payload2$inboundSchema;
|
|
28080
|
+
/** @deprecated use `Payload2$outboundSchema` instead. */
|
|
28081
|
+
export const outboundSchema = Payload2$outboundSchema;
|
|
28082
|
+
/** @deprecated use `Payload2$Outbound` instead. */
|
|
28083
|
+
export type Outbound = Payload2$Outbound;
|
|
27677
28084
|
}
|
|
27678
28085
|
|
|
27679
|
-
export function
|
|
27680
|
-
return JSON.stringify(
|
|
28086
|
+
export function payload2ToJSON(payload2: Payload2): string {
|
|
28087
|
+
return JSON.stringify(Payload2$outboundSchema.parse(payload2));
|
|
27681
28088
|
}
|
|
27682
28089
|
|
|
27683
|
-
export function
|
|
28090
|
+
export function payload2FromJSON(
|
|
27684
28091
|
jsonString: string,
|
|
27685
|
-
): SafeParseResult<
|
|
28092
|
+
): SafeParseResult<Payload2, SDKValidationError> {
|
|
27686
28093
|
return safeParse(
|
|
27687
28094
|
jsonString,
|
|
27688
|
-
(x) =>
|
|
27689
|
-
`Failed to parse '
|
|
28095
|
+
(x) => Payload2$inboundSchema.parse(JSON.parse(x)),
|
|
28096
|
+
`Failed to parse 'Payload2' from JSON`,
|
|
27690
28097
|
);
|
|
27691
28098
|
}
|
|
27692
28099
|
|
|
27693
28100
|
/** @internal */
|
|
27694
|
-
export const
|
|
27695
|
-
|
|
28101
|
+
export const Payload1$inboundSchema: z.ZodType<
|
|
28102
|
+
Payload1,
|
|
28103
|
+
z.ZodTypeDef,
|
|
28104
|
+
unknown
|
|
28105
|
+
> = z.object({});
|
|
27696
28106
|
|
|
27697
28107
|
/** @internal */
|
|
27698
|
-
export type
|
|
28108
|
+
export type Payload1$Outbound = {};
|
|
27699
28109
|
|
|
27700
28110
|
/** @internal */
|
|
27701
|
-
export const
|
|
27702
|
-
|
|
28111
|
+
export const Payload1$outboundSchema: z.ZodType<
|
|
28112
|
+
Payload1$Outbound,
|
|
28113
|
+
z.ZodTypeDef,
|
|
28114
|
+
Payload1
|
|
28115
|
+
> = z.object({});
|
|
27703
28116
|
|
|
27704
28117
|
/**
|
|
27705
28118
|
* @internal
|
|
27706
28119
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27707
28120
|
*/
|
|
27708
|
-
export namespace
|
|
27709
|
-
/** @deprecated use `
|
|
27710
|
-
export const inboundSchema =
|
|
27711
|
-
/** @deprecated use `
|
|
27712
|
-
export const outboundSchema =
|
|
27713
|
-
/** @deprecated use `
|
|
27714
|
-
export type Outbound =
|
|
28121
|
+
export namespace Payload1$ {
|
|
28122
|
+
/** @deprecated use `Payload1$inboundSchema` instead. */
|
|
28123
|
+
export const inboundSchema = Payload1$inboundSchema;
|
|
28124
|
+
/** @deprecated use `Payload1$outboundSchema` instead. */
|
|
28125
|
+
export const outboundSchema = Payload1$outboundSchema;
|
|
28126
|
+
/** @deprecated use `Payload1$Outbound` instead. */
|
|
28127
|
+
export type Outbound = Payload1$Outbound;
|
|
27715
28128
|
}
|
|
27716
28129
|
|
|
27717
|
-
export function
|
|
27718
|
-
return JSON.stringify(
|
|
28130
|
+
export function payload1ToJSON(payload1: Payload1): string {
|
|
28131
|
+
return JSON.stringify(Payload1$outboundSchema.parse(payload1));
|
|
27719
28132
|
}
|
|
27720
28133
|
|
|
27721
|
-
export function
|
|
28134
|
+
export function payload1FromJSON(
|
|
27722
28135
|
jsonString: string,
|
|
27723
|
-
): SafeParseResult<
|
|
28136
|
+
): SafeParseResult<Payload1, SDKValidationError> {
|
|
27724
28137
|
return safeParse(
|
|
27725
28138
|
jsonString,
|
|
27726
|
-
(x) =>
|
|
27727
|
-
`Failed to parse '
|
|
28139
|
+
(x) => Payload1$inboundSchema.parse(JSON.parse(x)),
|
|
28140
|
+
`Failed to parse 'Payload1' from JSON`,
|
|
27728
28141
|
);
|
|
27729
28142
|
}
|
|
27730
28143
|
|
|
27731
28144
|
/** @internal */
|
|
27732
28145
|
export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
|
|
27733
28146
|
z.union([
|
|
27734
|
-
z.lazy(() =>
|
|
28147
|
+
z.lazy(() => Payload1$inboundSchema),
|
|
27735
28148
|
z.lazy(() => Three$inboundSchema),
|
|
27736
28149
|
z.lazy(() => Nine$inboundSchema),
|
|
27737
28150
|
z.lazy(() => Nineteen$inboundSchema),
|
|
@@ -27836,7 +28249,7 @@ export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
|
|
|
27836
28249
|
z.lazy(() => OneHundredAndThirtyEight$inboundSchema),
|
|
27837
28250
|
z.lazy(() => OneHundredAndFortyFive$inboundSchema),
|
|
27838
28251
|
z.lazy(() => OneHundredAndFortySix$inboundSchema),
|
|
27839
|
-
z.lazy(() =>
|
|
28252
|
+
z.lazy(() => Payload2$inboundSchema),
|
|
27840
28253
|
z.lazy(() => Six$inboundSchema),
|
|
27841
28254
|
z.lazy(() => Eleven$inboundSchema),
|
|
27842
28255
|
z.lazy(() => Fifteen$inboundSchema),
|
|
@@ -27883,7 +28296,7 @@ export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
|
|
|
27883
28296
|
|
|
27884
28297
|
/** @internal */
|
|
27885
28298
|
export type Payload$Outbound =
|
|
27886
|
-
|
|
|
28299
|
+
| Payload1$Outbound
|
|
27887
28300
|
| Three$Outbound
|
|
27888
28301
|
| Nine$Outbound
|
|
27889
28302
|
| Nineteen$Outbound
|
|
@@ -27988,7 +28401,7 @@ export type Payload$Outbound =
|
|
|
27988
28401
|
| OneHundredAndThirtyEight$Outbound
|
|
27989
28402
|
| OneHundredAndFortyFive$Outbound
|
|
27990
28403
|
| OneHundredAndFortySix$Outbound
|
|
27991
|
-
|
|
|
28404
|
+
| Payload2$Outbound
|
|
27992
28405
|
| Six$Outbound
|
|
27993
28406
|
| Eleven$Outbound
|
|
27994
28407
|
| Fifteen$Outbound
|
|
@@ -28038,7 +28451,7 @@ export const Payload$outboundSchema: z.ZodType<
|
|
|
28038
28451
|
z.ZodTypeDef,
|
|
28039
28452
|
Payload
|
|
28040
28453
|
> = z.union([
|
|
28041
|
-
z.lazy(() =>
|
|
28454
|
+
z.lazy(() => Payload1$outboundSchema),
|
|
28042
28455
|
z.lazy(() => Three$outboundSchema),
|
|
28043
28456
|
z.lazy(() => Nine$outboundSchema),
|
|
28044
28457
|
z.lazy(() => Nineteen$outboundSchema),
|
|
@@ -28143,7 +28556,7 @@ export const Payload$outboundSchema: z.ZodType<
|
|
|
28143
28556
|
z.lazy(() => OneHundredAndThirtyEight$outboundSchema),
|
|
28144
28557
|
z.lazy(() => OneHundredAndFortyFive$outboundSchema),
|
|
28145
28558
|
z.lazy(() => OneHundredAndFortySix$outboundSchema),
|
|
28146
|
-
z.lazy(() =>
|
|
28559
|
+
z.lazy(() => Payload2$outboundSchema),
|
|
28147
28560
|
z.lazy(() => Six$outboundSchema),
|
|
28148
28561
|
z.lazy(() => Eleven$outboundSchema),
|
|
28149
28562
|
z.lazy(() => Fifteen$outboundSchema),
|
|
@@ -28226,9 +28639,21 @@ export const UserEvent$inboundSchema: z.ZodType<
|
|
|
28226
28639
|
entities: z.array(z.lazy(() => Entities$inboundSchema)),
|
|
28227
28640
|
createdAt: z.number(),
|
|
28228
28641
|
user: z.lazy(() => User$inboundSchema).optional(),
|
|
28642
|
+
principal: z.union([
|
|
28643
|
+
z.lazy(() => Two$inboundSchema),
|
|
28644
|
+
z.lazy(() => One$inboundSchema),
|
|
28645
|
+
]).optional(),
|
|
28646
|
+
via: z.array(
|
|
28647
|
+
z.union([
|
|
28648
|
+
z.lazy(() => Via2$inboundSchema),
|
|
28649
|
+
z.lazy(() => Via1$inboundSchema),
|
|
28650
|
+
]),
|
|
28651
|
+
).optional(),
|
|
28229
28652
|
userId: z.string(),
|
|
28653
|
+
principalId: z.string(),
|
|
28654
|
+
viaIds: z.array(z.string()).optional(),
|
|
28230
28655
|
payload: z.union([
|
|
28231
|
-
z.lazy(() =>
|
|
28656
|
+
z.lazy(() => Payload1$inboundSchema),
|
|
28232
28657
|
z.lazy(() => Three$inboundSchema),
|
|
28233
28658
|
z.lazy(() => Nine$inboundSchema),
|
|
28234
28659
|
z.lazy(() => Nineteen$inboundSchema),
|
|
@@ -28333,7 +28758,7 @@ export const UserEvent$inboundSchema: z.ZodType<
|
|
|
28333
28758
|
z.lazy(() => OneHundredAndThirtyEight$inboundSchema),
|
|
28334
28759
|
z.lazy(() => OneHundredAndFortyFive$inboundSchema),
|
|
28335
28760
|
z.lazy(() => OneHundredAndFortySix$inboundSchema),
|
|
28336
|
-
z.lazy(() =>
|
|
28761
|
+
z.lazy(() => Payload2$inboundSchema),
|
|
28337
28762
|
z.lazy(() => Six$inboundSchema),
|
|
28338
28763
|
z.lazy(() => Eleven$inboundSchema),
|
|
28339
28764
|
z.lazy(() => Fifteen$inboundSchema),
|
|
@@ -28386,9 +28811,13 @@ export type UserEvent$Outbound = {
|
|
|
28386
28811
|
entities: Array<Entities$Outbound>;
|
|
28387
28812
|
createdAt: number;
|
|
28388
28813
|
user?: User$Outbound | undefined;
|
|
28814
|
+
principal?: Two$Outbound | One$Outbound | undefined;
|
|
28815
|
+
via?: Array<Via2$Outbound | Via1$Outbound> | undefined;
|
|
28389
28816
|
userId: string;
|
|
28817
|
+
principalId: string;
|
|
28818
|
+
viaIds?: Array<string> | undefined;
|
|
28390
28819
|
payload?:
|
|
28391
|
-
|
|
|
28820
|
+
| Payload1$Outbound
|
|
28392
28821
|
| Three$Outbound
|
|
28393
28822
|
| Nine$Outbound
|
|
28394
28823
|
| Nineteen$Outbound
|
|
@@ -28493,7 +28922,7 @@ export type UserEvent$Outbound = {
|
|
|
28493
28922
|
| OneHundredAndThirtyEight$Outbound
|
|
28494
28923
|
| OneHundredAndFortyFive$Outbound
|
|
28495
28924
|
| OneHundredAndFortySix$Outbound
|
|
28496
|
-
|
|
|
28925
|
+
| Payload2$Outbound
|
|
28497
28926
|
| Six$Outbound
|
|
28498
28927
|
| Eleven$Outbound
|
|
28499
28928
|
| Fifteen$Outbound
|
|
@@ -28550,9 +28979,21 @@ export const UserEvent$outboundSchema: z.ZodType<
|
|
|
28550
28979
|
entities: z.array(z.lazy(() => Entities$outboundSchema)),
|
|
28551
28980
|
createdAt: z.number(),
|
|
28552
28981
|
user: z.lazy(() => User$outboundSchema).optional(),
|
|
28982
|
+
principal: z.union([
|
|
28983
|
+
z.lazy(() => Two$outboundSchema),
|
|
28984
|
+
z.lazy(() => One$outboundSchema),
|
|
28985
|
+
]).optional(),
|
|
28986
|
+
via: z.array(
|
|
28987
|
+
z.union([
|
|
28988
|
+
z.lazy(() => Via2$outboundSchema),
|
|
28989
|
+
z.lazy(() => Via1$outboundSchema),
|
|
28990
|
+
]),
|
|
28991
|
+
).optional(),
|
|
28553
28992
|
userId: z.string(),
|
|
28993
|
+
principalId: z.string(),
|
|
28994
|
+
viaIds: z.array(z.string()).optional(),
|
|
28554
28995
|
payload: z.union([
|
|
28555
|
-
z.lazy(() =>
|
|
28996
|
+
z.lazy(() => Payload1$outboundSchema),
|
|
28556
28997
|
z.lazy(() => Three$outboundSchema),
|
|
28557
28998
|
z.lazy(() => Nine$outboundSchema),
|
|
28558
28999
|
z.lazy(() => Nineteen$outboundSchema),
|
|
@@ -28657,7 +29098,7 @@ export const UserEvent$outboundSchema: z.ZodType<
|
|
|
28657
29098
|
z.lazy(() => OneHundredAndThirtyEight$outboundSchema),
|
|
28658
29099
|
z.lazy(() => OneHundredAndFortyFive$outboundSchema),
|
|
28659
29100
|
z.lazy(() => OneHundredAndFortySix$outboundSchema),
|
|
28660
|
-
z.lazy(() =>
|
|
29101
|
+
z.lazy(() => Payload2$outboundSchema),
|
|
28661
29102
|
z.lazy(() => Six$outboundSchema),
|
|
28662
29103
|
z.lazy(() => Eleven$outboundSchema),
|
|
28663
29104
|
z.lazy(() => Fifteen$outboundSchema),
|