@vercel/sdk 1.12.0 → 1.12.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.
Files changed (157) hide show
  1. package/README.md +10 -6
  2. package/bin/mcp-server.js +2893 -2521
  3. package/bin/mcp-server.js.map +34 -28
  4. package/docs/sdks/edgecache/README.md +2 -2
  5. package/docs/sdks/projects/README.md +173 -0
  6. package/esm/__tests__/domains.test.js +9 -6
  7. package/esm/__tests__/domains.test.js.map +1 -1
  8. package/esm/__tests__/edgeconfig.test.js +6 -6
  9. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  10. package/esm/__tests__/integrations.test.js +2 -2
  11. package/esm/__tests__/integrations.test.js.map +1 -1
  12. package/esm/__tests__/logdrains.test.js +3 -1
  13. package/esm/__tests__/logdrains.test.js.map +1 -1
  14. package/esm/__tests__/projects.test.js +45 -0
  15. package/esm/__tests__/projects.test.js.map +1 -1
  16. package/esm/__tests__/rollingrelease.test.js +6 -2
  17. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  18. package/esm/__tests__/security.test.js +4 -4
  19. package/esm/__tests__/security.test.js.map +1 -1
  20. package/esm/funcs/edgeCacheDangerouslyDeleteByTags.d.ts +1 -1
  21. package/esm/funcs/edgeCacheDangerouslyDeleteByTags.js +1 -1
  22. package/esm/funcs/edgeCacheInvalidateByTags.d.ts +1 -1
  23. package/esm/funcs/edgeCacheInvalidateByTags.js +1 -1
  24. package/esm/funcs/edgeConfigCreateEdgeConfigToken.js +2 -2
  25. package/esm/funcs/edgeConfigCreateEdgeConfigToken.js.map +1 -1
  26. package/esm/funcs/edgeConfigDeleteEdgeConfig.js +2 -2
  27. package/esm/funcs/edgeConfigDeleteEdgeConfig.js.map +1 -1
  28. package/esm/funcs/edgeConfigDeleteEdgeConfigSchema.js +2 -2
  29. package/esm/funcs/edgeConfigDeleteEdgeConfigSchema.js.map +1 -1
  30. package/esm/funcs/edgeConfigDeleteEdgeConfigTokens.js +2 -2
  31. package/esm/funcs/edgeConfigDeleteEdgeConfigTokens.js.map +1 -1
  32. package/esm/funcs/edgeConfigPatchEdgeConfigSchema.js +2 -2
  33. package/esm/funcs/edgeConfigPatchEdgeConfigSchema.js.map +1 -1
  34. package/esm/funcs/edgeConfigUpdateEdgeConfig.js +2 -2
  35. package/esm/funcs/edgeConfigUpdateEdgeConfig.js.map +1 -1
  36. package/esm/funcs/integrationsCreateIntegrationStoreDirect.js +2 -2
  37. package/esm/funcs/integrationsCreateIntegrationStoreDirect.js.map +1 -1
  38. package/esm/funcs/integrationsDeleteConfiguration.js +2 -2
  39. package/esm/funcs/integrationsDeleteConfiguration.js.map +1 -1
  40. package/esm/funcs/projectsBatchRemoveProjectEnv.d.ts +20 -0
  41. package/esm/funcs/projectsBatchRemoveProjectEnv.d.ts.map +1 -0
  42. package/esm/funcs/projectsBatchRemoveProjectEnv.js +95 -0
  43. package/esm/funcs/projectsBatchRemoveProjectEnv.js.map +1 -0
  44. package/esm/funcs/projectsUploadProjectClientCert.d.ts +19 -0
  45. package/esm/funcs/projectsUploadProjectClientCert.d.ts.map +1 -0
  46. package/esm/funcs/projectsUploadProjectClientCert.js +94 -0
  47. package/esm/funcs/projectsUploadProjectClientCert.js.map +1 -0
  48. package/esm/lib/config.d.ts +3 -3
  49. package/esm/lib/config.js +3 -3
  50. package/esm/mcp-server/mcp-server.js +1 -1
  51. package/esm/mcp-server/server.d.ts.map +1 -1
  52. package/esm/mcp-server/server.js +5 -1
  53. package/esm/mcp-server/server.js.map +1 -1
  54. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.js +1 -1
  55. package/esm/mcp-server/tools/edgeCacheInvalidateByTags.js +1 -1
  56. package/esm/mcp-server/tools/projectsBatchRemoveProjectEnv.d.ts +7 -0
  57. package/esm/mcp-server/tools/projectsBatchRemoveProjectEnv.d.ts.map +1 -0
  58. package/esm/mcp-server/tools/projectsBatchRemoveProjectEnv.js +28 -0
  59. package/esm/mcp-server/tools/projectsBatchRemoveProjectEnv.js.map +1 -0
  60. package/esm/mcp-server/tools/projectsUploadProjectClientCert.d.ts +7 -0
  61. package/esm/mcp-server/tools/projectsUploadProjectClientCert.d.ts.map +1 -0
  62. package/esm/mcp-server/tools/projectsUploadProjectClientCert.js +28 -0
  63. package/esm/mcp-server/tools/projectsUploadProjectClientCert.js.map +1 -0
  64. package/esm/models/batchremoveprojectenvop.d.ts +99 -0
  65. package/esm/models/batchremoveprojectenvop.d.ts.map +1 -0
  66. package/esm/models/batchremoveprojectenvop.js +100 -0
  67. package/esm/models/batchremoveprojectenvop.js.map +1 -0
  68. package/esm/models/createintegrationstoredirectop.d.ts +285 -285
  69. package/esm/models/createintegrationstoredirectop.js +351 -351
  70. package/esm/models/createprojectop.d.ts +30 -30
  71. package/esm/models/createprojectop.d.ts.map +1 -1
  72. package/esm/models/createprojectop.js +18 -18
  73. package/esm/models/createprojectop.js.map +1 -1
  74. package/esm/models/createwebhookop.d.ts +6 -0
  75. package/esm/models/createwebhookop.d.ts.map +1 -1
  76. package/esm/models/createwebhookop.js +2 -0
  77. package/esm/models/createwebhookop.js.map +1 -1
  78. package/esm/models/getbillingplansop.d.ts +2 -2
  79. package/esm/models/getbillingplansop.d.ts.map +1 -1
  80. package/esm/models/getbillingplansop.js +2 -2
  81. package/esm/models/getbillingplansop.js.map +1 -1
  82. package/esm/models/getconfigurationop.d.ts +302 -302
  83. package/esm/models/getconfigurationop.d.ts.map +1 -1
  84. package/esm/models/getconfigurationop.js +212 -212
  85. package/esm/models/getconfigurationop.js.map +1 -1
  86. package/esm/models/getconfigurationproductsop.d.ts +375 -375
  87. package/esm/models/getconfigurationproductsop.js +465 -465
  88. package/esm/models/getwebhookop.d.ts +3 -0
  89. package/esm/models/getwebhookop.d.ts.map +1 -1
  90. package/esm/models/getwebhookop.js +1 -0
  91. package/esm/models/getwebhookop.js.map +1 -1
  92. package/esm/models/getwebhooksop.d.ts +6 -0
  93. package/esm/models/getwebhooksop.d.ts.map +1 -1
  94. package/esm/models/getwebhooksop.js +2 -0
  95. package/esm/models/getwebhooksop.js.map +1 -1
  96. package/esm/models/updateprojectop.d.ts +30 -30
  97. package/esm/models/updateprojectop.d.ts.map +1 -1
  98. package/esm/models/updateprojectop.js +18 -18
  99. package/esm/models/updateprojectop.js.map +1 -1
  100. package/esm/models/uploadprojectclientcertop.d.ts +122 -0
  101. package/esm/models/uploadprojectclientcertop.d.ts.map +1 -0
  102. package/esm/models/uploadprojectclientcertop.js +108 -0
  103. package/esm/models/uploadprojectclientcertop.js.map +1 -0
  104. package/esm/models/userevent.d.ts +1856 -1824
  105. package/esm/models/userevent.d.ts.map +1 -1
  106. package/esm/models/userevent.js +2400 -2367
  107. package/esm/models/userevent.js.map +1 -1
  108. package/esm/sdk/edgecache.d.ts +2 -2
  109. package/esm/sdk/edgecache.js +2 -2
  110. package/esm/sdk/projects.d.ts +16 -0
  111. package/esm/sdk/projects.d.ts.map +1 -1
  112. package/esm/sdk/projects.js +20 -0
  113. package/esm/sdk/projects.js.map +1 -1
  114. package/examples/package-lock.json +1 -1
  115. package/jsr.json +1 -1
  116. package/package.json +1 -1
  117. package/src/__tests__/domains.test.ts +9 -6
  118. package/src/__tests__/edgeconfig.test.ts +6 -6
  119. package/src/__tests__/integrations.test.ts +3 -3
  120. package/src/__tests__/logdrains.test.ts +3 -1
  121. package/src/__tests__/projects.test.ts +51 -0
  122. package/src/__tests__/rollingrelease.test.ts +6 -2
  123. package/src/__tests__/security.test.ts +4 -4
  124. package/src/funcs/edgeCacheDangerouslyDeleteByTags.ts +1 -1
  125. package/src/funcs/edgeCacheInvalidateByTags.ts +1 -1
  126. package/src/funcs/edgeConfigCreateEdgeConfigToken.ts +2 -2
  127. package/src/funcs/edgeConfigDeleteEdgeConfig.ts +2 -2
  128. package/src/funcs/edgeConfigDeleteEdgeConfigSchema.ts +2 -2
  129. package/src/funcs/edgeConfigDeleteEdgeConfigTokens.ts +2 -2
  130. package/src/funcs/edgeConfigPatchEdgeConfigSchema.ts +2 -2
  131. package/src/funcs/edgeConfigUpdateEdgeConfig.ts +2 -2
  132. package/src/funcs/integrationsCreateIntegrationStoreDirect.ts +2 -2
  133. package/src/funcs/integrationsDeleteConfiguration.ts +2 -2
  134. package/src/funcs/projectsBatchRemoveProjectEnv.ts +206 -0
  135. package/src/funcs/projectsUploadProjectClientCert.ts +198 -0
  136. package/src/lib/config.ts +3 -3
  137. package/src/mcp-server/mcp-server.ts +1 -1
  138. package/src/mcp-server/server.ts +5 -1
  139. package/src/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.ts +1 -1
  140. package/src/mcp-server/tools/edgeCacheInvalidateByTags.ts +1 -1
  141. package/src/mcp-server/tools/projectsBatchRemoveProjectEnv.ts +37 -0
  142. package/src/mcp-server/tools/projectsUploadProjectClientCert.ts +38 -0
  143. package/src/models/batchremoveprojectenvop.ts +228 -0
  144. package/src/models/createintegrationstoredirectop.ts +604 -604
  145. package/src/models/createprojectop.ts +30 -30
  146. package/src/models/createwebhookop.ts +2 -0
  147. package/src/models/getbillingplansop.ts +4 -4
  148. package/src/models/getconfigurationop.ts +651 -651
  149. package/src/models/getconfigurationproductsop.ts +802 -802
  150. package/src/models/getwebhookop.ts +1 -0
  151. package/src/models/getwebhooksop.ts +2 -0
  152. package/src/models/updateprojectop.ts +30 -30
  153. package/src/models/uploadprojectclientcertop.ts +263 -0
  154. package/src/models/userevent.ts +4207 -4130
  155. package/src/sdk/edgecache.ts +2 -2
  156. package/src/sdk/projects.ts +44 -0
  157. package/vercel-spec.json +609 -287
@@ -23,6 +23,131 @@ export type GetConfigurationRequest = {
23
23
  slug?: string | undefined;
24
24
  };
25
25
 
26
+ /**
27
+ * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
28
+ */
29
+ export const GetConfigurationResponseBodyIntegrationsSource = {
30
+ Marketplace: "marketplace",
31
+ DeployButton: "deploy-button",
32
+ External: "external",
33
+ V0: "v0",
34
+ ResourceClaims: "resource-claims",
35
+ } as const;
36
+ /**
37
+ * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
38
+ */
39
+ export type GetConfigurationResponseBodyIntegrationsSource = ClosedEnum<
40
+ typeof GetConfigurationResponseBodyIntegrationsSource
41
+ >;
42
+
43
+ export const GetConfigurationResponseBodyIntegrationsType = {
44
+ IntegrationConfiguration: "integration-configuration",
45
+ } as const;
46
+ export type GetConfigurationResponseBodyIntegrationsType = ClosedEnum<
47
+ typeof GetConfigurationResponseBodyIntegrationsType
48
+ >;
49
+
50
+ export const GetConfigurationResponseBodyIntegrationsDisabledReason = {
51
+ DisabledByOwner: "disabled-by-owner",
52
+ FeatureNotAvailable: "feature-not-available",
53
+ DisabledByAdmin: "disabled-by-admin",
54
+ OriginalOwnerLeftTheTeam: "original-owner-left-the-team",
55
+ AccountPlanDowngrade: "account-plan-downgrade",
56
+ OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
57
+ } as const;
58
+ export type GetConfigurationResponseBodyIntegrationsDisabledReason = ClosedEnum<
59
+ typeof GetConfigurationResponseBodyIntegrationsDisabledReason
60
+ >;
61
+
62
+ /**
63
+ * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
64
+ */
65
+ export const GetConfigurationResponseBodyIntegrationsInstallationType = {
66
+ Marketplace: "marketplace",
67
+ External: "external",
68
+ } as const;
69
+ /**
70
+ * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
71
+ */
72
+ export type GetConfigurationResponseBodyIntegrationsInstallationType =
73
+ ClosedEnum<typeof GetConfigurationResponseBodyIntegrationsInstallationType>;
74
+
75
+ /**
76
+ * The configuration with the provided id
77
+ */
78
+ export type GetConfigurationResponseBody2 = {
79
+ /**
80
+ * A timestamp that tells you when the configuration was installed successfully
81
+ */
82
+ completedAt?: number | undefined;
83
+ /**
84
+ * A timestamp that tells you when the configuration was created
85
+ */
86
+ createdAt: number;
87
+ /**
88
+ * The unique identifier of the configuration
89
+ */
90
+ id: string;
91
+ /**
92
+ * The unique identifier of the app the configuration was created for
93
+ */
94
+ integrationId: string;
95
+ /**
96
+ * The user or team ID that owns the configuration
97
+ */
98
+ ownerId: string;
99
+ /**
100
+ * 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.
101
+ */
102
+ projects?: Array<string> | undefined;
103
+ /**
104
+ * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
105
+ */
106
+ source?: GetConfigurationResponseBodyIntegrationsSource | undefined;
107
+ /**
108
+ * The slug of the integration the configuration is created for.
109
+ */
110
+ slug: string;
111
+ /**
112
+ * When the configuration was created for a team, this will show the ID of the team.
113
+ */
114
+ teamId?: string | null | undefined;
115
+ type: GetConfigurationResponseBodyIntegrationsType;
116
+ /**
117
+ * A timestamp that tells you when the configuration was updated.
118
+ */
119
+ updatedAt: number;
120
+ /**
121
+ * The ID of the user that created the configuration.
122
+ */
123
+ userId: string;
124
+ /**
125
+ * The resources that are allowed to be accessed by the configuration.
126
+ */
127
+ scopes: Array<string>;
128
+ /**
129
+ * A timestamp that tells you when the configuration was disabled. Note: Configurations can be disabled when the associated user loses access to a team. They do not function during this time until the configuration is 'transferred', meaning the associated user is changed to one with access to the team.
130
+ */
131
+ disabledAt?: number | undefined;
132
+ /**
133
+ * A timestamp that tells you when the configuration was deleted.
134
+ */
135
+ deletedAt?: number | null | undefined;
136
+ /**
137
+ * A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
138
+ */
139
+ deleteRequestedAt?: number | null | undefined;
140
+ disabledReason?:
141
+ | GetConfigurationResponseBodyIntegrationsDisabledReason
142
+ | undefined;
143
+ /**
144
+ * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
145
+ */
146
+ installationType?:
147
+ | GetConfigurationResponseBodyIntegrationsInstallationType
148
+ | undefined;
149
+ };
150
+
26
151
  /**
27
152
  * A string representing the permission for projects. Possible values are `all` or `selected`.
28
153
  */
@@ -127,10 +252,22 @@ export type TransferRequest1 = {
127
252
 
128
253
  export type TransferRequest = TransferRequest1 | TransferRequest2;
129
254
 
255
+ export const GetConfigurationResponseBodyDisabledReason = {
256
+ DisabledByOwner: "disabled-by-owner",
257
+ FeatureNotAvailable: "feature-not-available",
258
+ DisabledByAdmin: "disabled-by-admin",
259
+ OriginalOwnerLeftTheTeam: "original-owner-left-the-team",
260
+ AccountPlanDowngrade: "account-plan-downgrade",
261
+ OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
262
+ } as const;
263
+ export type GetConfigurationResponseBodyDisabledReason = ClosedEnum<
264
+ typeof GetConfigurationResponseBodyDisabledReason
265
+ >;
266
+
130
267
  /**
131
268
  * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
132
269
  */
133
- export const GetConfigurationResponseBodyIntegrationsSource = {
270
+ export const GetConfigurationResponseBodySource = {
134
271
  Marketplace: "marketplace",
135
272
  DeployButton: "deploy-button",
136
273
  External: "external",
@@ -140,43 +277,32 @@ export const GetConfigurationResponseBodyIntegrationsSource = {
140
277
  /**
141
278
  * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
142
279
  */
143
- export type GetConfigurationResponseBodyIntegrationsSource = ClosedEnum<
144
- typeof GetConfigurationResponseBodyIntegrationsSource
145
- >;
146
-
147
- export const GetConfigurationResponseBodyIntegrationsType = {
148
- IntegrationConfiguration: "integration-configuration",
149
- } as const;
150
- export type GetConfigurationResponseBodyIntegrationsType = ClosedEnum<
151
- typeof GetConfigurationResponseBodyIntegrationsType
152
- >;
153
-
154
- export const GetConfigurationResponseBodyIntegrationsDisabledReason = {
155
- DisabledByOwner: "disabled-by-owner",
156
- FeatureNotAvailable: "feature-not-available",
157
- DisabledByAdmin: "disabled-by-admin",
158
- OriginalOwnerLeftTheTeam: "original-owner-left-the-team",
159
- AccountPlanDowngrade: "account-plan-downgrade",
160
- OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
161
- } as const;
162
- export type GetConfigurationResponseBodyIntegrationsDisabledReason = ClosedEnum<
163
- typeof GetConfigurationResponseBodyIntegrationsDisabledReason
280
+ export type GetConfigurationResponseBodySource = ClosedEnum<
281
+ typeof GetConfigurationResponseBodySource
164
282
  >;
165
283
 
166
284
  /**
167
285
  * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
168
286
  */
169
- export const GetConfigurationResponseBodyIntegrationsInstallationType = {
287
+ export const GetConfigurationResponseBodyInstallationType = {
170
288
  Marketplace: "marketplace",
171
289
  External: "external",
172
290
  } as const;
173
291
  /**
174
292
  * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
175
293
  */
176
- export type GetConfigurationResponseBodyIntegrationsInstallationType =
177
- ClosedEnum<typeof GetConfigurationResponseBodyIntegrationsInstallationType>;
294
+ export type GetConfigurationResponseBodyInstallationType = ClosedEnum<
295
+ typeof GetConfigurationResponseBodyInstallationType
296
+ >;
178
297
 
179
- export type GetConfigurationResponseBody2 = {
298
+ export const GetConfigurationResponseBodyType = {
299
+ IntegrationConfiguration: "integration-configuration",
300
+ } as const;
301
+ export type GetConfigurationResponseBodyType = ClosedEnum<
302
+ typeof GetConfigurationResponseBodyType
303
+ >;
304
+
305
+ export type GetConfigurationResponseBody1 = {
180
306
  /**
181
307
  * A string representing the permission for projects. Possible values are `all` or `selected`.
182
308
  */
@@ -187,14 +313,14 @@ export type GetConfigurationResponseBody2 = {
187
313
  * 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.
188
314
  */
189
315
  projects?: Array<string> | undefined;
190
- /**
191
- * A timestamp that tells you when the configuration was installed successfully
192
- */
193
- completedAt?: number | undefined;
194
316
  /**
195
317
  * A timestamp that tells you when the configuration was created
196
318
  */
197
319
  createdAt: number;
320
+ /**
321
+ * A timestamp that tells you when the configuration was installed successfully
322
+ */
323
+ completedAt?: number | undefined;
198
324
  /**
199
325
  * The unique identifier of the configuration
200
326
  */
@@ -207,10 +333,6 @@ export type GetConfigurationResponseBody2 = {
207
333
  * The user or team ID that owns the configuration
208
334
  */
209
335
  ownerId: string;
210
- /**
211
- * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
212
- */
213
- source?: GetConfigurationResponseBodyIntegrationsSource | undefined;
214
336
  /**
215
337
  * The slug of the integration the configuration is created for.
216
338
  */
@@ -219,7 +341,6 @@ export type GetConfigurationResponseBody2 = {
219
341
  * When the configuration was created for a team, this will show the ID of the team.
220
342
  */
221
343
  teamId?: string | null | undefined;
222
- type: GetConfigurationResponseBodyIntegrationsType;
223
344
  /**
224
345
  * A timestamp that tells you when the configuration was updated.
225
346
  */
@@ -236,165 +357,44 @@ export type GetConfigurationResponseBody2 = {
236
357
  * A timestamp that tells you when the configuration was disabled. Note: Configurations can be disabled when the associated user loses access to a team. They do not function during this time until the configuration is 'transferred', meaning the associated user is changed to one with access to the team.
237
358
  */
238
359
  disabledAt?: number | undefined;
360
+ disabledReason?: GetConfigurationResponseBodyDisabledReason | undefined;
239
361
  /**
240
- * A timestamp that tells you when the configuration was deleted.
362
+ * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
241
363
  */
242
- deletedAt?: number | null | undefined;
364
+ source?: GetConfigurationResponseBodySource | undefined;
365
+ canConfigureOpenTelemetry?: boolean | undefined;
366
+ /**
367
+ * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
368
+ */
369
+ installationType?: GetConfigurationResponseBodyInstallationType | undefined;
243
370
  /**
244
371
  * A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
245
372
  */
246
373
  deleteRequestedAt?: number | null | undefined;
247
- disabledReason?:
248
- | GetConfigurationResponseBodyIntegrationsDisabledReason
249
- | undefined;
374
+ type: GetConfigurationResponseBodyType;
250
375
  /**
251
- * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
376
+ * A timestamp that tells you when the configuration was deleted.
252
377
  */
253
- installationType?:
254
- | GetConfigurationResponseBodyIntegrationsInstallationType
255
- | undefined;
256
- canConfigureOpenTelemetry?: boolean | undefined;
378
+ deletedAt?: number | null | undefined;
257
379
  };
258
380
 
259
381
  /**
260
- * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
261
- */
262
- export const GetConfigurationResponseBodySource = {
263
- Marketplace: "marketplace",
264
- DeployButton: "deploy-button",
265
- External: "external",
266
- V0: "v0",
267
- ResourceClaims: "resource-claims",
268
- } as const;
269
- /**
270
- * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
382
+ * The configuration with the provided id
271
383
  */
272
- export type GetConfigurationResponseBodySource = ClosedEnum<
273
- typeof GetConfigurationResponseBodySource
274
- >;
275
-
276
- export const GetConfigurationResponseBodyType = {
277
- IntegrationConfiguration: "integration-configuration",
278
- } as const;
279
- export type GetConfigurationResponseBodyType = ClosedEnum<
280
- typeof GetConfigurationResponseBodyType
281
- >;
384
+ export type GetConfigurationResponseBody =
385
+ | GetConfigurationResponseBody1
386
+ | GetConfigurationResponseBody2;
282
387
 
283
- export const GetConfigurationResponseBodyDisabledReason = {
284
- DisabledByOwner: "disabled-by-owner",
285
- FeatureNotAvailable: "feature-not-available",
286
- DisabledByAdmin: "disabled-by-admin",
287
- OriginalOwnerLeftTheTeam: "original-owner-left-the-team",
288
- AccountPlanDowngrade: "account-plan-downgrade",
289
- OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
290
- } as const;
291
- export type GetConfigurationResponseBodyDisabledReason = ClosedEnum<
292
- typeof GetConfigurationResponseBodyDisabledReason
293
- >;
294
-
295
- /**
296
- * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
297
- */
298
- export const GetConfigurationResponseBodyInstallationType = {
299
- Marketplace: "marketplace",
300
- External: "external",
301
- } as const;
302
- /**
303
- * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
304
- */
305
- export type GetConfigurationResponseBodyInstallationType = ClosedEnum<
306
- typeof GetConfigurationResponseBodyInstallationType
307
- >;
308
-
309
- /**
310
- * The configuration with the provided id
311
- */
312
- export type GetConfigurationResponseBody1 = {
313
- /**
314
- * A timestamp that tells you when the configuration was installed successfully
315
- */
316
- completedAt?: number | undefined;
317
- /**
318
- * A timestamp that tells you when the configuration was created
319
- */
320
- createdAt: number;
321
- /**
322
- * The unique identifier of the configuration
323
- */
324
- id: string;
325
- /**
326
- * The unique identifier of the app the configuration was created for
327
- */
328
- integrationId: string;
329
- /**
330
- * The user or team ID that owns the configuration
331
- */
332
- ownerId: string;
333
- /**
334
- * 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.
335
- */
336
- projects?: Array<string> | undefined;
337
- /**
338
- * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
339
- */
340
- source?: GetConfigurationResponseBodySource | undefined;
341
- /**
342
- * The slug of the integration the configuration is created for.
343
- */
344
- slug: string;
345
- /**
346
- * When the configuration was created for a team, this will show the ID of the team.
347
- */
348
- teamId?: string | null | undefined;
349
- type: GetConfigurationResponseBodyType;
350
- /**
351
- * A timestamp that tells you when the configuration was updated.
352
- */
353
- updatedAt: number;
354
- /**
355
- * The ID of the user that created the configuration.
356
- */
357
- userId: string;
358
- /**
359
- * The resources that are allowed to be accessed by the configuration.
360
- */
361
- scopes: Array<string>;
362
- /**
363
- * A timestamp that tells you when the configuration was disabled. Note: Configurations can be disabled when the associated user loses access to a team. They do not function during this time until the configuration is 'transferred', meaning the associated user is changed to one with access to the team.
364
- */
365
- disabledAt?: number | undefined;
366
- /**
367
- * A timestamp that tells you when the configuration was deleted.
368
- */
369
- deletedAt?: number | null | undefined;
370
- /**
371
- * A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
372
- */
373
- deleteRequestedAt?: number | null | undefined;
374
- disabledReason?: GetConfigurationResponseBodyDisabledReason | undefined;
375
- /**
376
- * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
377
- */
378
- installationType?: GetConfigurationResponseBodyInstallationType | undefined;
379
- };
380
-
381
- /**
382
- * The configuration with the provided id
383
- */
384
- export type GetConfigurationResponseBody =
385
- | GetConfigurationResponseBody2
386
- | GetConfigurationResponseBody1;
387
-
388
- /** @internal */
389
- export const GetConfigurationRequest$inboundSchema: z.ZodType<
390
- GetConfigurationRequest,
391
- z.ZodTypeDef,
392
- unknown
393
- > = z.object({
394
- id: z.string(),
395
- teamId: z.string().optional(),
396
- slug: z.string().optional(),
397
- });
388
+ /** @internal */
389
+ export const GetConfigurationRequest$inboundSchema: z.ZodType<
390
+ GetConfigurationRequest,
391
+ z.ZodTypeDef,
392
+ unknown
393
+ > = z.object({
394
+ id: z.string(),
395
+ teamId: z.string().optional(),
396
+ slug: z.string().optional(),
397
+ });
398
398
 
399
399
  /** @internal */
400
400
  export type GetConfigurationRequest$Outbound = {
@@ -446,147 +446,360 @@ export function getConfigurationRequestFromJSON(
446
446
  }
447
447
 
448
448
  /** @internal */
449
- export const ProjectSelection$inboundSchema: z.ZodNativeEnum<
450
- typeof ProjectSelection
451
- > = z.nativeEnum(ProjectSelection);
449
+ export const GetConfigurationResponseBodyIntegrationsSource$inboundSchema:
450
+ z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsSource> = z
451
+ .nativeEnum(GetConfigurationResponseBodyIntegrationsSource);
452
452
 
453
453
  /** @internal */
454
- export const ProjectSelection$outboundSchema: z.ZodNativeEnum<
455
- typeof ProjectSelection
456
- > = ProjectSelection$inboundSchema;
454
+ export const GetConfigurationResponseBodyIntegrationsSource$outboundSchema:
455
+ z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsSource> =
456
+ GetConfigurationResponseBodyIntegrationsSource$inboundSchema;
457
457
 
458
458
  /**
459
459
  * @internal
460
460
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
461
461
  */
462
- export namespace ProjectSelection$ {
463
- /** @deprecated use `ProjectSelection$inboundSchema` instead. */
464
- export const inboundSchema = ProjectSelection$inboundSchema;
465
- /** @deprecated use `ProjectSelection$outboundSchema` instead. */
466
- export const outboundSchema = ProjectSelection$outboundSchema;
462
+ export namespace GetConfigurationResponseBodyIntegrationsSource$ {
463
+ /** @deprecated use `GetConfigurationResponseBodyIntegrationsSource$inboundSchema` instead. */
464
+ export const inboundSchema =
465
+ GetConfigurationResponseBodyIntegrationsSource$inboundSchema;
466
+ /** @deprecated use `GetConfigurationResponseBodyIntegrationsSource$outboundSchema` instead. */
467
+ export const outboundSchema =
468
+ GetConfigurationResponseBodyIntegrationsSource$outboundSchema;
467
469
  }
468
470
 
469
471
  /** @internal */
470
- export const GetConfigurationResponseBodyLevel$inboundSchema: z.ZodNativeEnum<
471
- typeof GetConfigurationResponseBodyLevel
472
- > = z.nativeEnum(GetConfigurationResponseBodyLevel);
472
+ export const GetConfigurationResponseBodyIntegrationsType$inboundSchema:
473
+ z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsType> = z
474
+ .nativeEnum(GetConfigurationResponseBodyIntegrationsType);
473
475
 
474
476
  /** @internal */
475
- export const GetConfigurationResponseBodyLevel$outboundSchema: z.ZodNativeEnum<
476
- typeof GetConfigurationResponseBodyLevel
477
- > = GetConfigurationResponseBodyLevel$inboundSchema;
477
+ export const GetConfigurationResponseBodyIntegrationsType$outboundSchema:
478
+ z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsType> =
479
+ GetConfigurationResponseBodyIntegrationsType$inboundSchema;
478
480
 
479
481
  /**
480
482
  * @internal
481
483
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
482
484
  */
483
- export namespace GetConfigurationResponseBodyLevel$ {
484
- /** @deprecated use `GetConfigurationResponseBodyLevel$inboundSchema` instead. */
485
- export const inboundSchema = GetConfigurationResponseBodyLevel$inboundSchema;
486
- /** @deprecated use `GetConfigurationResponseBodyLevel$outboundSchema` instead. */
485
+ export namespace GetConfigurationResponseBodyIntegrationsType$ {
486
+ /** @deprecated use `GetConfigurationResponseBodyIntegrationsType$inboundSchema` instead. */
487
+ export const inboundSchema =
488
+ GetConfigurationResponseBodyIntegrationsType$inboundSchema;
489
+ /** @deprecated use `GetConfigurationResponseBodyIntegrationsType$outboundSchema` instead. */
487
490
  export const outboundSchema =
488
- GetConfigurationResponseBodyLevel$outboundSchema;
491
+ GetConfigurationResponseBodyIntegrationsType$outboundSchema;
489
492
  }
490
493
 
491
494
  /** @internal */
492
- export const ResponseBodyNotification$inboundSchema: z.ZodType<
493
- ResponseBodyNotification,
494
- z.ZodTypeDef,
495
- unknown
496
- > = z.object({
497
- level: GetConfigurationResponseBodyLevel$inboundSchema,
498
- title: z.string(),
499
- message: z.string().optional(),
500
- href: z.string().optional(),
501
- });
502
-
503
- /** @internal */
504
- export type ResponseBodyNotification$Outbound = {
505
- level: string;
506
- title: string;
507
- message?: string | undefined;
508
- href?: string | undefined;
509
- };
495
+ export const GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema:
496
+ z.ZodNativeEnum<
497
+ typeof GetConfigurationResponseBodyIntegrationsDisabledReason
498
+ > = z.nativeEnum(GetConfigurationResponseBodyIntegrationsDisabledReason);
510
499
 
511
500
  /** @internal */
512
- export const ResponseBodyNotification$outboundSchema: z.ZodType<
513
- ResponseBodyNotification$Outbound,
514
- z.ZodTypeDef,
515
- ResponseBodyNotification
516
- > = z.object({
517
- level: GetConfigurationResponseBodyLevel$outboundSchema,
518
- title: z.string(),
519
- message: z.string().optional(),
520
- href: z.string().optional(),
521
- });
501
+ export const GetConfigurationResponseBodyIntegrationsDisabledReason$outboundSchema:
502
+ z.ZodNativeEnum<
503
+ typeof GetConfigurationResponseBodyIntegrationsDisabledReason
504
+ > = GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema;
522
505
 
523
506
  /**
524
507
  * @internal
525
508
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
526
509
  */
527
- export namespace ResponseBodyNotification$ {
528
- /** @deprecated use `ResponseBodyNotification$inboundSchema` instead. */
529
- export const inboundSchema = ResponseBodyNotification$inboundSchema;
530
- /** @deprecated use `ResponseBodyNotification$outboundSchema` instead. */
531
- export const outboundSchema = ResponseBodyNotification$outboundSchema;
532
- /** @deprecated use `ResponseBodyNotification$Outbound` instead. */
533
- export type Outbound = ResponseBodyNotification$Outbound;
534
- }
535
-
536
- export function responseBodyNotificationToJSON(
537
- responseBodyNotification: ResponseBodyNotification,
538
- ): string {
539
- return JSON.stringify(
540
- ResponseBodyNotification$outboundSchema.parse(responseBodyNotification),
541
- );
542
- }
543
-
544
- export function responseBodyNotificationFromJSON(
545
- jsonString: string,
546
- ): SafeParseResult<ResponseBodyNotification, SDKValidationError> {
547
- return safeParse(
548
- jsonString,
549
- (x) => ResponseBodyNotification$inboundSchema.parse(JSON.parse(x)),
550
- `Failed to parse 'ResponseBodyNotification' from JSON`,
551
- );
510
+ export namespace GetConfigurationResponseBodyIntegrationsDisabledReason$ {
511
+ /** @deprecated use `GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema` instead. */
512
+ export const inboundSchema =
513
+ GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema;
514
+ /** @deprecated use `GetConfigurationResponseBodyIntegrationsDisabledReason$outboundSchema` instead. */
515
+ export const outboundSchema =
516
+ GetConfigurationResponseBodyIntegrationsDisabledReason$outboundSchema;
552
517
  }
553
518
 
554
519
  /** @internal */
555
- export const TransferRequestKind$inboundSchema: z.ZodNativeEnum<
556
- typeof TransferRequestKind
557
- > = z.nativeEnum(TransferRequestKind);
520
+ export const GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema:
521
+ z.ZodNativeEnum<
522
+ typeof GetConfigurationResponseBodyIntegrationsInstallationType
523
+ > = z.nativeEnum(GetConfigurationResponseBodyIntegrationsInstallationType);
558
524
 
559
525
  /** @internal */
560
- export const TransferRequestKind$outboundSchema: z.ZodNativeEnum<
561
- typeof TransferRequestKind
562
- > = TransferRequestKind$inboundSchema;
526
+ export const GetConfigurationResponseBodyIntegrationsInstallationType$outboundSchema:
527
+ z.ZodNativeEnum<
528
+ typeof GetConfigurationResponseBodyIntegrationsInstallationType
529
+ > = GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema;
563
530
 
564
531
  /**
565
532
  * @internal
566
533
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
567
534
  */
568
- export namespace TransferRequestKind$ {
569
- /** @deprecated use `TransferRequestKind$inboundSchema` instead. */
570
- export const inboundSchema = TransferRequestKind$inboundSchema;
571
- /** @deprecated use `TransferRequestKind$outboundSchema` instead. */
572
- export const outboundSchema = TransferRequestKind$outboundSchema;
535
+ export namespace GetConfigurationResponseBodyIntegrationsInstallationType$ {
536
+ /** @deprecated use `GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema` instead. */
537
+ export const inboundSchema =
538
+ GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema;
539
+ /** @deprecated use `GetConfigurationResponseBodyIntegrationsInstallationType$outboundSchema` instead. */
540
+ export const outboundSchema =
541
+ GetConfigurationResponseBodyIntegrationsInstallationType$outboundSchema;
573
542
  }
574
543
 
575
544
  /** @internal */
576
- export const TransferRequestRequester$inboundSchema: z.ZodType<
577
- TransferRequestRequester,
545
+ export const GetConfigurationResponseBody2$inboundSchema: z.ZodType<
546
+ GetConfigurationResponseBody2,
578
547
  z.ZodTypeDef,
579
548
  unknown
580
549
  > = z.object({
581
- name: z.string(),
582
- email: z.string().optional(),
583
- });
584
-
585
- /** @internal */
586
- export type TransferRequestRequester$Outbound = {
587
- name: string;
588
- email?: string | undefined;
589
- };
550
+ completedAt: z.number().optional(),
551
+ createdAt: z.number(),
552
+ id: z.string(),
553
+ integrationId: z.string(),
554
+ ownerId: z.string(),
555
+ projects: z.array(z.string()).optional(),
556
+ source: GetConfigurationResponseBodyIntegrationsSource$inboundSchema
557
+ .optional(),
558
+ slug: z.string(),
559
+ teamId: z.nullable(z.string()).optional(),
560
+ type: GetConfigurationResponseBodyIntegrationsType$inboundSchema,
561
+ updatedAt: z.number(),
562
+ userId: z.string(),
563
+ scopes: z.array(z.string()),
564
+ disabledAt: z.number().optional(),
565
+ deletedAt: z.nullable(z.number()).optional(),
566
+ deleteRequestedAt: z.nullable(z.number()).optional(),
567
+ disabledReason:
568
+ GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema
569
+ .optional(),
570
+ installationType:
571
+ GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema
572
+ .optional(),
573
+ });
574
+
575
+ /** @internal */
576
+ export type GetConfigurationResponseBody2$Outbound = {
577
+ completedAt?: number | undefined;
578
+ createdAt: number;
579
+ id: string;
580
+ integrationId: string;
581
+ ownerId: string;
582
+ projects?: Array<string> | undefined;
583
+ source?: string | undefined;
584
+ slug: string;
585
+ teamId?: string | null | undefined;
586
+ type: string;
587
+ updatedAt: number;
588
+ userId: string;
589
+ scopes: Array<string>;
590
+ disabledAt?: number | undefined;
591
+ deletedAt?: number | null | undefined;
592
+ deleteRequestedAt?: number | null | undefined;
593
+ disabledReason?: string | undefined;
594
+ installationType?: string | undefined;
595
+ };
596
+
597
+ /** @internal */
598
+ export const GetConfigurationResponseBody2$outboundSchema: z.ZodType<
599
+ GetConfigurationResponseBody2$Outbound,
600
+ z.ZodTypeDef,
601
+ GetConfigurationResponseBody2
602
+ > = z.object({
603
+ completedAt: z.number().optional(),
604
+ createdAt: z.number(),
605
+ id: z.string(),
606
+ integrationId: z.string(),
607
+ ownerId: z.string(),
608
+ projects: z.array(z.string()).optional(),
609
+ source: GetConfigurationResponseBodyIntegrationsSource$outboundSchema
610
+ .optional(),
611
+ slug: z.string(),
612
+ teamId: z.nullable(z.string()).optional(),
613
+ type: GetConfigurationResponseBodyIntegrationsType$outboundSchema,
614
+ updatedAt: z.number(),
615
+ userId: z.string(),
616
+ scopes: z.array(z.string()),
617
+ disabledAt: z.number().optional(),
618
+ deletedAt: z.nullable(z.number()).optional(),
619
+ deleteRequestedAt: z.nullable(z.number()).optional(),
620
+ disabledReason:
621
+ GetConfigurationResponseBodyIntegrationsDisabledReason$outboundSchema
622
+ .optional(),
623
+ installationType:
624
+ GetConfigurationResponseBodyIntegrationsInstallationType$outboundSchema
625
+ .optional(),
626
+ });
627
+
628
+ /**
629
+ * @internal
630
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
631
+ */
632
+ export namespace GetConfigurationResponseBody2$ {
633
+ /** @deprecated use `GetConfigurationResponseBody2$inboundSchema` instead. */
634
+ export const inboundSchema = GetConfigurationResponseBody2$inboundSchema;
635
+ /** @deprecated use `GetConfigurationResponseBody2$outboundSchema` instead. */
636
+ export const outboundSchema = GetConfigurationResponseBody2$outboundSchema;
637
+ /** @deprecated use `GetConfigurationResponseBody2$Outbound` instead. */
638
+ export type Outbound = GetConfigurationResponseBody2$Outbound;
639
+ }
640
+
641
+ export function getConfigurationResponseBody2ToJSON(
642
+ getConfigurationResponseBody2: GetConfigurationResponseBody2,
643
+ ): string {
644
+ return JSON.stringify(
645
+ GetConfigurationResponseBody2$outboundSchema.parse(
646
+ getConfigurationResponseBody2,
647
+ ),
648
+ );
649
+ }
650
+
651
+ export function getConfigurationResponseBody2FromJSON(
652
+ jsonString: string,
653
+ ): SafeParseResult<GetConfigurationResponseBody2, SDKValidationError> {
654
+ return safeParse(
655
+ jsonString,
656
+ (x) => GetConfigurationResponseBody2$inboundSchema.parse(JSON.parse(x)),
657
+ `Failed to parse 'GetConfigurationResponseBody2' from JSON`,
658
+ );
659
+ }
660
+
661
+ /** @internal */
662
+ export const ProjectSelection$inboundSchema: z.ZodNativeEnum<
663
+ typeof ProjectSelection
664
+ > = z.nativeEnum(ProjectSelection);
665
+
666
+ /** @internal */
667
+ export const ProjectSelection$outboundSchema: z.ZodNativeEnum<
668
+ typeof ProjectSelection
669
+ > = ProjectSelection$inboundSchema;
670
+
671
+ /**
672
+ * @internal
673
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
674
+ */
675
+ export namespace ProjectSelection$ {
676
+ /** @deprecated use `ProjectSelection$inboundSchema` instead. */
677
+ export const inboundSchema = ProjectSelection$inboundSchema;
678
+ /** @deprecated use `ProjectSelection$outboundSchema` instead. */
679
+ export const outboundSchema = ProjectSelection$outboundSchema;
680
+ }
681
+
682
+ /** @internal */
683
+ export const GetConfigurationResponseBodyLevel$inboundSchema: z.ZodNativeEnum<
684
+ typeof GetConfigurationResponseBodyLevel
685
+ > = z.nativeEnum(GetConfigurationResponseBodyLevel);
686
+
687
+ /** @internal */
688
+ export const GetConfigurationResponseBodyLevel$outboundSchema: z.ZodNativeEnum<
689
+ typeof GetConfigurationResponseBodyLevel
690
+ > = GetConfigurationResponseBodyLevel$inboundSchema;
691
+
692
+ /**
693
+ * @internal
694
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
695
+ */
696
+ export namespace GetConfigurationResponseBodyLevel$ {
697
+ /** @deprecated use `GetConfigurationResponseBodyLevel$inboundSchema` instead. */
698
+ export const inboundSchema = GetConfigurationResponseBodyLevel$inboundSchema;
699
+ /** @deprecated use `GetConfigurationResponseBodyLevel$outboundSchema` instead. */
700
+ export const outboundSchema =
701
+ GetConfigurationResponseBodyLevel$outboundSchema;
702
+ }
703
+
704
+ /** @internal */
705
+ export const ResponseBodyNotification$inboundSchema: z.ZodType<
706
+ ResponseBodyNotification,
707
+ z.ZodTypeDef,
708
+ unknown
709
+ > = z.object({
710
+ level: GetConfigurationResponseBodyLevel$inboundSchema,
711
+ title: z.string(),
712
+ message: z.string().optional(),
713
+ href: z.string().optional(),
714
+ });
715
+
716
+ /** @internal */
717
+ export type ResponseBodyNotification$Outbound = {
718
+ level: string;
719
+ title: string;
720
+ message?: string | undefined;
721
+ href?: string | undefined;
722
+ };
723
+
724
+ /** @internal */
725
+ export const ResponseBodyNotification$outboundSchema: z.ZodType<
726
+ ResponseBodyNotification$Outbound,
727
+ z.ZodTypeDef,
728
+ ResponseBodyNotification
729
+ > = z.object({
730
+ level: GetConfigurationResponseBodyLevel$outboundSchema,
731
+ title: z.string(),
732
+ message: z.string().optional(),
733
+ href: z.string().optional(),
734
+ });
735
+
736
+ /**
737
+ * @internal
738
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
739
+ */
740
+ export namespace ResponseBodyNotification$ {
741
+ /** @deprecated use `ResponseBodyNotification$inboundSchema` instead. */
742
+ export const inboundSchema = ResponseBodyNotification$inboundSchema;
743
+ /** @deprecated use `ResponseBodyNotification$outboundSchema` instead. */
744
+ export const outboundSchema = ResponseBodyNotification$outboundSchema;
745
+ /** @deprecated use `ResponseBodyNotification$Outbound` instead. */
746
+ export type Outbound = ResponseBodyNotification$Outbound;
747
+ }
748
+
749
+ export function responseBodyNotificationToJSON(
750
+ responseBodyNotification: ResponseBodyNotification,
751
+ ): string {
752
+ return JSON.stringify(
753
+ ResponseBodyNotification$outboundSchema.parse(responseBodyNotification),
754
+ );
755
+ }
756
+
757
+ export function responseBodyNotificationFromJSON(
758
+ jsonString: string,
759
+ ): SafeParseResult<ResponseBodyNotification, SDKValidationError> {
760
+ return safeParse(
761
+ jsonString,
762
+ (x) => ResponseBodyNotification$inboundSchema.parse(JSON.parse(x)),
763
+ `Failed to parse 'ResponseBodyNotification' from JSON`,
764
+ );
765
+ }
766
+
767
+ /** @internal */
768
+ export const TransferRequestKind$inboundSchema: z.ZodNativeEnum<
769
+ typeof TransferRequestKind
770
+ > = z.nativeEnum(TransferRequestKind);
771
+
772
+ /** @internal */
773
+ export const TransferRequestKind$outboundSchema: z.ZodNativeEnum<
774
+ typeof TransferRequestKind
775
+ > = TransferRequestKind$inboundSchema;
776
+
777
+ /**
778
+ * @internal
779
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
780
+ */
781
+ export namespace TransferRequestKind$ {
782
+ /** @deprecated use `TransferRequestKind$inboundSchema` instead. */
783
+ export const inboundSchema = TransferRequestKind$inboundSchema;
784
+ /** @deprecated use `TransferRequestKind$outboundSchema` instead. */
785
+ export const outboundSchema = TransferRequestKind$outboundSchema;
786
+ }
787
+
788
+ /** @internal */
789
+ export const TransferRequestRequester$inboundSchema: z.ZodType<
790
+ TransferRequestRequester,
791
+ z.ZodTypeDef,
792
+ unknown
793
+ > = z.object({
794
+ name: z.string(),
795
+ email: z.string().optional(),
796
+ });
797
+
798
+ /** @internal */
799
+ export type TransferRequestRequester$Outbound = {
800
+ name: string;
801
+ email?: string | undefined;
802
+ };
590
803
 
591
804
  /** @internal */
592
805
  export const TransferRequestRequester$outboundSchema: z.ZodType<
@@ -934,393 +1147,119 @@ export type TransferRequest1$Outbound = {
934
1147
  transferId: string;
935
1148
  requester: Requester$Outbound;
936
1149
  createdAt: number;
937
- expiresAt: number;
938
- discardedAt?: number | undefined;
939
- discardedBy?: string | undefined;
940
- approvedAt?: number | undefined;
941
- approvedBy?: string | undefined;
942
- authorizationId?: string | undefined;
943
- };
944
-
945
- /** @internal */
946
- export const TransferRequest1$outboundSchema: z.ZodType<
947
- TransferRequest1$Outbound,
948
- z.ZodTypeDef,
949
- TransferRequest1
950
- > = z.object({
951
- kind: GetConfigurationTransferRequestKind$outboundSchema,
952
- metadata: z.record(z.any()).optional(),
953
- billingPlan: z.lazy(() => TransferRequestBillingPlan$outboundSchema)
954
- .optional(),
955
- requestId: z.string(),
956
- transferId: z.string(),
957
- requester: z.lazy(() => Requester$outboundSchema),
958
- createdAt: z.number(),
959
- expiresAt: z.number(),
960
- discardedAt: z.number().optional(),
961
- discardedBy: z.string().optional(),
962
- approvedAt: z.number().optional(),
963
- approvedBy: z.string().optional(),
964
- authorizationId: z.string().optional(),
965
- });
966
-
967
- /**
968
- * @internal
969
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
970
- */
971
- export namespace TransferRequest1$ {
972
- /** @deprecated use `TransferRequest1$inboundSchema` instead. */
973
- export const inboundSchema = TransferRequest1$inboundSchema;
974
- /** @deprecated use `TransferRequest1$outboundSchema` instead. */
975
- export const outboundSchema = TransferRequest1$outboundSchema;
976
- /** @deprecated use `TransferRequest1$Outbound` instead. */
977
- export type Outbound = TransferRequest1$Outbound;
978
- }
979
-
980
- export function transferRequest1ToJSON(
981
- transferRequest1: TransferRequest1,
982
- ): string {
983
- return JSON.stringify(
984
- TransferRequest1$outboundSchema.parse(transferRequest1),
985
- );
986
- }
987
-
988
- export function transferRequest1FromJSON(
989
- jsonString: string,
990
- ): SafeParseResult<TransferRequest1, SDKValidationError> {
991
- return safeParse(
992
- jsonString,
993
- (x) => TransferRequest1$inboundSchema.parse(JSON.parse(x)),
994
- `Failed to parse 'TransferRequest1' from JSON`,
995
- );
996
- }
997
-
998
- /** @internal */
999
- export const TransferRequest$inboundSchema: z.ZodType<
1000
- TransferRequest,
1001
- z.ZodTypeDef,
1002
- unknown
1003
- > = z.union([
1004
- z.lazy(() => TransferRequest1$inboundSchema),
1005
- z.lazy(() => TransferRequest2$inboundSchema),
1006
- ]);
1007
-
1008
- /** @internal */
1009
- export type TransferRequest$Outbound =
1010
- | TransferRequest1$Outbound
1011
- | TransferRequest2$Outbound;
1012
-
1013
- /** @internal */
1014
- export const TransferRequest$outboundSchema: z.ZodType<
1015
- TransferRequest$Outbound,
1016
- z.ZodTypeDef,
1017
- TransferRequest
1018
- > = z.union([
1019
- z.lazy(() => TransferRequest1$outboundSchema),
1020
- z.lazy(() => TransferRequest2$outboundSchema),
1021
- ]);
1022
-
1023
- /**
1024
- * @internal
1025
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1026
- */
1027
- export namespace TransferRequest$ {
1028
- /** @deprecated use `TransferRequest$inboundSchema` instead. */
1029
- export const inboundSchema = TransferRequest$inboundSchema;
1030
- /** @deprecated use `TransferRequest$outboundSchema` instead. */
1031
- export const outboundSchema = TransferRequest$outboundSchema;
1032
- /** @deprecated use `TransferRequest$Outbound` instead. */
1033
- export type Outbound = TransferRequest$Outbound;
1034
- }
1035
-
1036
- export function transferRequestToJSON(
1037
- transferRequest: TransferRequest,
1038
- ): string {
1039
- return JSON.stringify(TransferRequest$outboundSchema.parse(transferRequest));
1040
- }
1041
-
1042
- export function transferRequestFromJSON(
1043
- jsonString: string,
1044
- ): SafeParseResult<TransferRequest, SDKValidationError> {
1045
- return safeParse(
1046
- jsonString,
1047
- (x) => TransferRequest$inboundSchema.parse(JSON.parse(x)),
1048
- `Failed to parse 'TransferRequest' from JSON`,
1049
- );
1050
- }
1051
-
1052
- /** @internal */
1053
- export const GetConfigurationResponseBodyIntegrationsSource$inboundSchema:
1054
- z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsSource> = z
1055
- .nativeEnum(GetConfigurationResponseBodyIntegrationsSource);
1056
-
1057
- /** @internal */
1058
- export const GetConfigurationResponseBodyIntegrationsSource$outboundSchema:
1059
- z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsSource> =
1060
- GetConfigurationResponseBodyIntegrationsSource$inboundSchema;
1061
-
1062
- /**
1063
- * @internal
1064
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1065
- */
1066
- export namespace GetConfigurationResponseBodyIntegrationsSource$ {
1067
- /** @deprecated use `GetConfigurationResponseBodyIntegrationsSource$inboundSchema` instead. */
1068
- export const inboundSchema =
1069
- GetConfigurationResponseBodyIntegrationsSource$inboundSchema;
1070
- /** @deprecated use `GetConfigurationResponseBodyIntegrationsSource$outboundSchema` instead. */
1071
- export const outboundSchema =
1072
- GetConfigurationResponseBodyIntegrationsSource$outboundSchema;
1073
- }
1074
-
1075
- /** @internal */
1076
- export const GetConfigurationResponseBodyIntegrationsType$inboundSchema:
1077
- z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsType> = z
1078
- .nativeEnum(GetConfigurationResponseBodyIntegrationsType);
1079
-
1080
- /** @internal */
1081
- export const GetConfigurationResponseBodyIntegrationsType$outboundSchema:
1082
- z.ZodNativeEnum<typeof GetConfigurationResponseBodyIntegrationsType> =
1083
- GetConfigurationResponseBodyIntegrationsType$inboundSchema;
1084
-
1085
- /**
1086
- * @internal
1087
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1088
- */
1089
- export namespace GetConfigurationResponseBodyIntegrationsType$ {
1090
- /** @deprecated use `GetConfigurationResponseBodyIntegrationsType$inboundSchema` instead. */
1091
- export const inboundSchema =
1092
- GetConfigurationResponseBodyIntegrationsType$inboundSchema;
1093
- /** @deprecated use `GetConfigurationResponseBodyIntegrationsType$outboundSchema` instead. */
1094
- export const outboundSchema =
1095
- GetConfigurationResponseBodyIntegrationsType$outboundSchema;
1096
- }
1097
-
1098
- /** @internal */
1099
- export const GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema:
1100
- z.ZodNativeEnum<
1101
- typeof GetConfigurationResponseBodyIntegrationsDisabledReason
1102
- > = z.nativeEnum(GetConfigurationResponseBodyIntegrationsDisabledReason);
1103
-
1104
- /** @internal */
1105
- export const GetConfigurationResponseBodyIntegrationsDisabledReason$outboundSchema:
1106
- z.ZodNativeEnum<
1107
- typeof GetConfigurationResponseBodyIntegrationsDisabledReason
1108
- > = GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema;
1109
-
1110
- /**
1111
- * @internal
1112
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1113
- */
1114
- export namespace GetConfigurationResponseBodyIntegrationsDisabledReason$ {
1115
- /** @deprecated use `GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema` instead. */
1116
- export const inboundSchema =
1117
- GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema;
1118
- /** @deprecated use `GetConfigurationResponseBodyIntegrationsDisabledReason$outboundSchema` instead. */
1119
- export const outboundSchema =
1120
- GetConfigurationResponseBodyIntegrationsDisabledReason$outboundSchema;
1121
- }
1122
-
1123
- /** @internal */
1124
- export const GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema:
1125
- z.ZodNativeEnum<
1126
- typeof GetConfigurationResponseBodyIntegrationsInstallationType
1127
- > = z.nativeEnum(GetConfigurationResponseBodyIntegrationsInstallationType);
1128
-
1129
- /** @internal */
1130
- export const GetConfigurationResponseBodyIntegrationsInstallationType$outboundSchema:
1131
- z.ZodNativeEnum<
1132
- typeof GetConfigurationResponseBodyIntegrationsInstallationType
1133
- > = GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema;
1134
-
1135
- /**
1136
- * @internal
1137
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1138
- */
1139
- export namespace GetConfigurationResponseBodyIntegrationsInstallationType$ {
1140
- /** @deprecated use `GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema` instead. */
1141
- export const inboundSchema =
1142
- GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema;
1143
- /** @deprecated use `GetConfigurationResponseBodyIntegrationsInstallationType$outboundSchema` instead. */
1144
- export const outboundSchema =
1145
- GetConfigurationResponseBodyIntegrationsInstallationType$outboundSchema;
1146
- }
1147
-
1148
- /** @internal */
1149
- export const GetConfigurationResponseBody2$inboundSchema: z.ZodType<
1150
- GetConfigurationResponseBody2,
1151
- z.ZodTypeDef,
1152
- unknown
1153
- > = z.object({
1154
- projectSelection: ProjectSelection$inboundSchema,
1155
- notification: z.lazy(() => ResponseBodyNotification$inboundSchema),
1156
- transferRequest: z.union([
1157
- z.lazy(() => TransferRequest1$inboundSchema),
1158
- z.lazy(() => TransferRequest2$inboundSchema),
1159
- ]),
1160
- projects: z.array(z.string()).optional(),
1161
- completedAt: z.number().optional(),
1162
- createdAt: z.number(),
1163
- id: z.string(),
1164
- integrationId: z.string(),
1165
- ownerId: z.string(),
1166
- source: GetConfigurationResponseBodyIntegrationsSource$inboundSchema
1167
- .optional(),
1168
- slug: z.string(),
1169
- teamId: z.nullable(z.string()).optional(),
1170
- type: GetConfigurationResponseBodyIntegrationsType$inboundSchema,
1171
- updatedAt: z.number(),
1172
- userId: z.string(),
1173
- scopes: z.array(z.string()),
1174
- disabledAt: z.number().optional(),
1175
- deletedAt: z.nullable(z.number()).optional(),
1176
- deleteRequestedAt: z.nullable(z.number()).optional(),
1177
- disabledReason:
1178
- GetConfigurationResponseBodyIntegrationsDisabledReason$inboundSchema
1179
- .optional(),
1180
- installationType:
1181
- GetConfigurationResponseBodyIntegrationsInstallationType$inboundSchema
1182
- .optional(),
1183
- canConfigureOpenTelemetry: z.boolean().optional(),
1184
- });
1185
-
1186
- /** @internal */
1187
- export type GetConfigurationResponseBody2$Outbound = {
1188
- projectSelection: string;
1189
- notification: ResponseBodyNotification$Outbound;
1190
- transferRequest: TransferRequest1$Outbound | TransferRequest2$Outbound;
1191
- projects?: Array<string> | undefined;
1192
- completedAt?: number | undefined;
1193
- createdAt: number;
1194
- id: string;
1195
- integrationId: string;
1196
- ownerId: string;
1197
- source?: string | undefined;
1198
- slug: string;
1199
- teamId?: string | null | undefined;
1200
- type: string;
1201
- updatedAt: number;
1202
- userId: string;
1203
- scopes: Array<string>;
1204
- disabledAt?: number | undefined;
1205
- deletedAt?: number | null | undefined;
1206
- deleteRequestedAt?: number | null | undefined;
1207
- disabledReason?: string | undefined;
1208
- installationType?: string | undefined;
1209
- canConfigureOpenTelemetry?: boolean | undefined;
1150
+ expiresAt: number;
1151
+ discardedAt?: number | undefined;
1152
+ discardedBy?: string | undefined;
1153
+ approvedAt?: number | undefined;
1154
+ approvedBy?: string | undefined;
1155
+ authorizationId?: string | undefined;
1210
1156
  };
1211
1157
 
1212
1158
  /** @internal */
1213
- export const GetConfigurationResponseBody2$outboundSchema: z.ZodType<
1214
- GetConfigurationResponseBody2$Outbound,
1159
+ export const TransferRequest1$outboundSchema: z.ZodType<
1160
+ TransferRequest1$Outbound,
1215
1161
  z.ZodTypeDef,
1216
- GetConfigurationResponseBody2
1162
+ TransferRequest1
1217
1163
  > = z.object({
1218
- projectSelection: ProjectSelection$outboundSchema,
1219
- notification: z.lazy(() => ResponseBodyNotification$outboundSchema),
1220
- transferRequest: z.union([
1221
- z.lazy(() => TransferRequest1$outboundSchema),
1222
- z.lazy(() => TransferRequest2$outboundSchema),
1223
- ]),
1224
- projects: z.array(z.string()).optional(),
1225
- completedAt: z.number().optional(),
1226
- createdAt: z.number(),
1227
- id: z.string(),
1228
- integrationId: z.string(),
1229
- ownerId: z.string(),
1230
- source: GetConfigurationResponseBodyIntegrationsSource$outboundSchema
1164
+ kind: GetConfigurationTransferRequestKind$outboundSchema,
1165
+ metadata: z.record(z.any()).optional(),
1166
+ billingPlan: z.lazy(() => TransferRequestBillingPlan$outboundSchema)
1231
1167
  .optional(),
1232
- slug: z.string(),
1233
- teamId: z.nullable(z.string()).optional(),
1234
- type: GetConfigurationResponseBodyIntegrationsType$outboundSchema,
1235
- updatedAt: z.number(),
1236
- userId: z.string(),
1237
- scopes: z.array(z.string()),
1238
- disabledAt: z.number().optional(),
1239
- deletedAt: z.nullable(z.number()).optional(),
1240
- deleteRequestedAt: z.nullable(z.number()).optional(),
1241
- disabledReason:
1242
- GetConfigurationResponseBodyIntegrationsDisabledReason$outboundSchema
1243
- .optional(),
1244
- installationType:
1245
- GetConfigurationResponseBodyIntegrationsInstallationType$outboundSchema
1246
- .optional(),
1247
- canConfigureOpenTelemetry: z.boolean().optional(),
1168
+ requestId: z.string(),
1169
+ transferId: z.string(),
1170
+ requester: z.lazy(() => Requester$outboundSchema),
1171
+ createdAt: z.number(),
1172
+ expiresAt: z.number(),
1173
+ discardedAt: z.number().optional(),
1174
+ discardedBy: z.string().optional(),
1175
+ approvedAt: z.number().optional(),
1176
+ approvedBy: z.string().optional(),
1177
+ authorizationId: z.string().optional(),
1248
1178
  });
1249
1179
 
1250
1180
  /**
1251
1181
  * @internal
1252
1182
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1253
1183
  */
1254
- export namespace GetConfigurationResponseBody2$ {
1255
- /** @deprecated use `GetConfigurationResponseBody2$inboundSchema` instead. */
1256
- export const inboundSchema = GetConfigurationResponseBody2$inboundSchema;
1257
- /** @deprecated use `GetConfigurationResponseBody2$outboundSchema` instead. */
1258
- export const outboundSchema = GetConfigurationResponseBody2$outboundSchema;
1259
- /** @deprecated use `GetConfigurationResponseBody2$Outbound` instead. */
1260
- export type Outbound = GetConfigurationResponseBody2$Outbound;
1184
+ export namespace TransferRequest1$ {
1185
+ /** @deprecated use `TransferRequest1$inboundSchema` instead. */
1186
+ export const inboundSchema = TransferRequest1$inboundSchema;
1187
+ /** @deprecated use `TransferRequest1$outboundSchema` instead. */
1188
+ export const outboundSchema = TransferRequest1$outboundSchema;
1189
+ /** @deprecated use `TransferRequest1$Outbound` instead. */
1190
+ export type Outbound = TransferRequest1$Outbound;
1261
1191
  }
1262
1192
 
1263
- export function getConfigurationResponseBody2ToJSON(
1264
- getConfigurationResponseBody2: GetConfigurationResponseBody2,
1193
+ export function transferRequest1ToJSON(
1194
+ transferRequest1: TransferRequest1,
1265
1195
  ): string {
1266
1196
  return JSON.stringify(
1267
- GetConfigurationResponseBody2$outboundSchema.parse(
1268
- getConfigurationResponseBody2,
1269
- ),
1197
+ TransferRequest1$outboundSchema.parse(transferRequest1),
1270
1198
  );
1271
1199
  }
1272
1200
 
1273
- export function getConfigurationResponseBody2FromJSON(
1201
+ export function transferRequest1FromJSON(
1274
1202
  jsonString: string,
1275
- ): SafeParseResult<GetConfigurationResponseBody2, SDKValidationError> {
1203
+ ): SafeParseResult<TransferRequest1, SDKValidationError> {
1276
1204
  return safeParse(
1277
1205
  jsonString,
1278
- (x) => GetConfigurationResponseBody2$inboundSchema.parse(JSON.parse(x)),
1279
- `Failed to parse 'GetConfigurationResponseBody2' from JSON`,
1206
+ (x) => TransferRequest1$inboundSchema.parse(JSON.parse(x)),
1207
+ `Failed to parse 'TransferRequest1' from JSON`,
1280
1208
  );
1281
1209
  }
1282
1210
 
1283
1211
  /** @internal */
1284
- export const GetConfigurationResponseBodySource$inboundSchema: z.ZodNativeEnum<
1285
- typeof GetConfigurationResponseBodySource
1286
- > = z.nativeEnum(GetConfigurationResponseBodySource);
1212
+ export const TransferRequest$inboundSchema: z.ZodType<
1213
+ TransferRequest,
1214
+ z.ZodTypeDef,
1215
+ unknown
1216
+ > = z.union([
1217
+ z.lazy(() => TransferRequest1$inboundSchema),
1218
+ z.lazy(() => TransferRequest2$inboundSchema),
1219
+ ]);
1287
1220
 
1288
1221
  /** @internal */
1289
- export const GetConfigurationResponseBodySource$outboundSchema: z.ZodNativeEnum<
1290
- typeof GetConfigurationResponseBodySource
1291
- > = GetConfigurationResponseBodySource$inboundSchema;
1222
+ export type TransferRequest$Outbound =
1223
+ | TransferRequest1$Outbound
1224
+ | TransferRequest2$Outbound;
1225
+
1226
+ /** @internal */
1227
+ export const TransferRequest$outboundSchema: z.ZodType<
1228
+ TransferRequest$Outbound,
1229
+ z.ZodTypeDef,
1230
+ TransferRequest
1231
+ > = z.union([
1232
+ z.lazy(() => TransferRequest1$outboundSchema),
1233
+ z.lazy(() => TransferRequest2$outboundSchema),
1234
+ ]);
1292
1235
 
1293
1236
  /**
1294
1237
  * @internal
1295
1238
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1296
1239
  */
1297
- export namespace GetConfigurationResponseBodySource$ {
1298
- /** @deprecated use `GetConfigurationResponseBodySource$inboundSchema` instead. */
1299
- export const inboundSchema = GetConfigurationResponseBodySource$inboundSchema;
1300
- /** @deprecated use `GetConfigurationResponseBodySource$outboundSchema` instead. */
1301
- export const outboundSchema =
1302
- GetConfigurationResponseBodySource$outboundSchema;
1240
+ export namespace TransferRequest$ {
1241
+ /** @deprecated use `TransferRequest$inboundSchema` instead. */
1242
+ export const inboundSchema = TransferRequest$inboundSchema;
1243
+ /** @deprecated use `TransferRequest$outboundSchema` instead. */
1244
+ export const outboundSchema = TransferRequest$outboundSchema;
1245
+ /** @deprecated use `TransferRequest$Outbound` instead. */
1246
+ export type Outbound = TransferRequest$Outbound;
1303
1247
  }
1304
1248
 
1305
- /** @internal */
1306
- export const GetConfigurationResponseBodyType$inboundSchema: z.ZodNativeEnum<
1307
- typeof GetConfigurationResponseBodyType
1308
- > = z.nativeEnum(GetConfigurationResponseBodyType);
1309
-
1310
- /** @internal */
1311
- export const GetConfigurationResponseBodyType$outboundSchema: z.ZodNativeEnum<
1312
- typeof GetConfigurationResponseBodyType
1313
- > = GetConfigurationResponseBodyType$inboundSchema;
1249
+ export function transferRequestToJSON(
1250
+ transferRequest: TransferRequest,
1251
+ ): string {
1252
+ return JSON.stringify(TransferRequest$outboundSchema.parse(transferRequest));
1253
+ }
1314
1254
 
1315
- /**
1316
- * @internal
1317
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1318
- */
1319
- export namespace GetConfigurationResponseBodyType$ {
1320
- /** @deprecated use `GetConfigurationResponseBodyType$inboundSchema` instead. */
1321
- export const inboundSchema = GetConfigurationResponseBodyType$inboundSchema;
1322
- /** @deprecated use `GetConfigurationResponseBodyType$outboundSchema` instead. */
1323
- export const outboundSchema = GetConfigurationResponseBodyType$outboundSchema;
1255
+ export function transferRequestFromJSON(
1256
+ jsonString: string,
1257
+ ): SafeParseResult<TransferRequest, SDKValidationError> {
1258
+ return safeParse(
1259
+ jsonString,
1260
+ (x) => TransferRequest$inboundSchema.parse(JSON.parse(x)),
1261
+ `Failed to parse 'TransferRequest' from JSON`,
1262
+ );
1324
1263
  }
1325
1264
 
1326
1265
  /** @internal */
@@ -1346,6 +1285,28 @@ export namespace GetConfigurationResponseBodyDisabledReason$ {
1346
1285
  GetConfigurationResponseBodyDisabledReason$outboundSchema;
1347
1286
  }
1348
1287
 
1288
+ /** @internal */
1289
+ export const GetConfigurationResponseBodySource$inboundSchema: z.ZodNativeEnum<
1290
+ typeof GetConfigurationResponseBodySource
1291
+ > = z.nativeEnum(GetConfigurationResponseBodySource);
1292
+
1293
+ /** @internal */
1294
+ export const GetConfigurationResponseBodySource$outboundSchema: z.ZodNativeEnum<
1295
+ typeof GetConfigurationResponseBodySource
1296
+ > = GetConfigurationResponseBodySource$inboundSchema;
1297
+
1298
+ /**
1299
+ * @internal
1300
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1301
+ */
1302
+ export namespace GetConfigurationResponseBodySource$ {
1303
+ /** @deprecated use `GetConfigurationResponseBodySource$inboundSchema` instead. */
1304
+ export const inboundSchema = GetConfigurationResponseBodySource$inboundSchema;
1305
+ /** @deprecated use `GetConfigurationResponseBodySource$outboundSchema` instead. */
1306
+ export const outboundSchema =
1307
+ GetConfigurationResponseBodySource$outboundSchema;
1308
+ }
1309
+
1349
1310
  /** @internal */
1350
1311
  export const GetConfigurationResponseBodyInstallationType$inboundSchema:
1351
1312
  z.ZodNativeEnum<typeof GetConfigurationResponseBodyInstallationType> = z
@@ -1369,54 +1330,86 @@ export namespace GetConfigurationResponseBodyInstallationType$ {
1369
1330
  GetConfigurationResponseBodyInstallationType$outboundSchema;
1370
1331
  }
1371
1332
 
1333
+ /** @internal */
1334
+ export const GetConfigurationResponseBodyType$inboundSchema: z.ZodNativeEnum<
1335
+ typeof GetConfigurationResponseBodyType
1336
+ > = z.nativeEnum(GetConfigurationResponseBodyType);
1337
+
1338
+ /** @internal */
1339
+ export const GetConfigurationResponseBodyType$outboundSchema: z.ZodNativeEnum<
1340
+ typeof GetConfigurationResponseBodyType
1341
+ > = GetConfigurationResponseBodyType$inboundSchema;
1342
+
1343
+ /**
1344
+ * @internal
1345
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1346
+ */
1347
+ export namespace GetConfigurationResponseBodyType$ {
1348
+ /** @deprecated use `GetConfigurationResponseBodyType$inboundSchema` instead. */
1349
+ export const inboundSchema = GetConfigurationResponseBodyType$inboundSchema;
1350
+ /** @deprecated use `GetConfigurationResponseBodyType$outboundSchema` instead. */
1351
+ export const outboundSchema = GetConfigurationResponseBodyType$outboundSchema;
1352
+ }
1353
+
1372
1354
  /** @internal */
1373
1355
  export const GetConfigurationResponseBody1$inboundSchema: z.ZodType<
1374
1356
  GetConfigurationResponseBody1,
1375
1357
  z.ZodTypeDef,
1376
1358
  unknown
1377
1359
  > = z.object({
1378
- completedAt: z.number().optional(),
1360
+ projectSelection: ProjectSelection$inboundSchema,
1361
+ notification: z.lazy(() => ResponseBodyNotification$inboundSchema),
1362
+ transferRequest: z.union([
1363
+ z.lazy(() => TransferRequest1$inboundSchema),
1364
+ z.lazy(() => TransferRequest2$inboundSchema),
1365
+ ]),
1366
+ projects: z.array(z.string()).optional(),
1379
1367
  createdAt: z.number(),
1368
+ completedAt: z.number().optional(),
1380
1369
  id: z.string(),
1381
1370
  integrationId: z.string(),
1382
1371
  ownerId: z.string(),
1383
- projects: z.array(z.string()).optional(),
1384
- source: GetConfigurationResponseBodySource$inboundSchema.optional(),
1385
1372
  slug: z.string(),
1386
1373
  teamId: z.nullable(z.string()).optional(),
1387
- type: GetConfigurationResponseBodyType$inboundSchema,
1388
1374
  updatedAt: z.number(),
1389
1375
  userId: z.string(),
1390
1376
  scopes: z.array(z.string()),
1391
1377
  disabledAt: z.number().optional(),
1392
- deletedAt: z.nullable(z.number()).optional(),
1393
- deleteRequestedAt: z.nullable(z.number()).optional(),
1394
1378
  disabledReason: GetConfigurationResponseBodyDisabledReason$inboundSchema
1395
1379
  .optional(),
1380
+ source: GetConfigurationResponseBodySource$inboundSchema.optional(),
1381
+ canConfigureOpenTelemetry: z.boolean().optional(),
1396
1382
  installationType: GetConfigurationResponseBodyInstallationType$inboundSchema
1397
1383
  .optional(),
1384
+ deleteRequestedAt: z.nullable(z.number()).optional(),
1385
+ type: GetConfigurationResponseBodyType$inboundSchema,
1386
+ deletedAt: z.nullable(z.number()).optional(),
1398
1387
  });
1399
1388
 
1400
1389
  /** @internal */
1401
1390
  export type GetConfigurationResponseBody1$Outbound = {
1402
- completedAt?: number | undefined;
1391
+ projectSelection: string;
1392
+ notification: ResponseBodyNotification$Outbound;
1393
+ transferRequest: TransferRequest1$Outbound | TransferRequest2$Outbound;
1394
+ projects?: Array<string> | undefined;
1403
1395
  createdAt: number;
1396
+ completedAt?: number | undefined;
1404
1397
  id: string;
1405
1398
  integrationId: string;
1406
1399
  ownerId: string;
1407
- projects?: Array<string> | undefined;
1408
- source?: string | undefined;
1409
1400
  slug: string;
1410
1401
  teamId?: string | null | undefined;
1411
- type: string;
1412
1402
  updatedAt: number;
1413
1403
  userId: string;
1414
1404
  scopes: Array<string>;
1415
1405
  disabledAt?: number | undefined;
1416
- deletedAt?: number | null | undefined;
1417
- deleteRequestedAt?: number | null | undefined;
1418
1406
  disabledReason?: string | undefined;
1407
+ source?: string | undefined;
1408
+ canConfigureOpenTelemetry?: boolean | undefined;
1419
1409
  installationType?: string | undefined;
1410
+ deleteRequestedAt?: number | null | undefined;
1411
+ type: string;
1412
+ deletedAt?: number | null | undefined;
1420
1413
  };
1421
1414
 
1422
1415
  /** @internal */
@@ -1425,26 +1418,33 @@ export const GetConfigurationResponseBody1$outboundSchema: z.ZodType<
1425
1418
  z.ZodTypeDef,
1426
1419
  GetConfigurationResponseBody1
1427
1420
  > = z.object({
1428
- completedAt: z.number().optional(),
1421
+ projectSelection: ProjectSelection$outboundSchema,
1422
+ notification: z.lazy(() => ResponseBodyNotification$outboundSchema),
1423
+ transferRequest: z.union([
1424
+ z.lazy(() => TransferRequest1$outboundSchema),
1425
+ z.lazy(() => TransferRequest2$outboundSchema),
1426
+ ]),
1427
+ projects: z.array(z.string()).optional(),
1429
1428
  createdAt: z.number(),
1429
+ completedAt: z.number().optional(),
1430
1430
  id: z.string(),
1431
1431
  integrationId: z.string(),
1432
1432
  ownerId: z.string(),
1433
- projects: z.array(z.string()).optional(),
1434
- source: GetConfigurationResponseBodySource$outboundSchema.optional(),
1435
1433
  slug: z.string(),
1436
1434
  teamId: z.nullable(z.string()).optional(),
1437
- type: GetConfigurationResponseBodyType$outboundSchema,
1438
1435
  updatedAt: z.number(),
1439
1436
  userId: z.string(),
1440
1437
  scopes: z.array(z.string()),
1441
1438
  disabledAt: z.number().optional(),
1442
- deletedAt: z.nullable(z.number()).optional(),
1443
- deleteRequestedAt: z.nullable(z.number()).optional(),
1444
1439
  disabledReason: GetConfigurationResponseBodyDisabledReason$outboundSchema
1445
1440
  .optional(),
1441
+ source: GetConfigurationResponseBodySource$outboundSchema.optional(),
1442
+ canConfigureOpenTelemetry: z.boolean().optional(),
1446
1443
  installationType: GetConfigurationResponseBodyInstallationType$outboundSchema
1447
1444
  .optional(),
1445
+ deleteRequestedAt: z.nullable(z.number()).optional(),
1446
+ type: GetConfigurationResponseBodyType$outboundSchema,
1447
+ deletedAt: z.nullable(z.number()).optional(),
1448
1448
  });
1449
1449
 
1450
1450
  /**
@@ -1486,14 +1486,14 @@ export const GetConfigurationResponseBody$inboundSchema: z.ZodType<
1486
1486
  z.ZodTypeDef,
1487
1487
  unknown
1488
1488
  > = z.union([
1489
- z.lazy(() => GetConfigurationResponseBody2$inboundSchema),
1490
1489
  z.lazy(() => GetConfigurationResponseBody1$inboundSchema),
1490
+ z.lazy(() => GetConfigurationResponseBody2$inboundSchema),
1491
1491
  ]);
1492
1492
 
1493
1493
  /** @internal */
1494
1494
  export type GetConfigurationResponseBody$Outbound =
1495
- | GetConfigurationResponseBody2$Outbound
1496
- | GetConfigurationResponseBody1$Outbound;
1495
+ | GetConfigurationResponseBody1$Outbound
1496
+ | GetConfigurationResponseBody2$Outbound;
1497
1497
 
1498
1498
  /** @internal */
1499
1499
  export const GetConfigurationResponseBody$outboundSchema: z.ZodType<
@@ -1501,8 +1501,8 @@ export const GetConfigurationResponseBody$outboundSchema: z.ZodType<
1501
1501
  z.ZodTypeDef,
1502
1502
  GetConfigurationResponseBody
1503
1503
  > = z.union([
1504
- z.lazy(() => GetConfigurationResponseBody2$outboundSchema),
1505
1504
  z.lazy(() => GetConfigurationResponseBody1$outboundSchema),
1505
+ z.lazy(() => GetConfigurationResponseBody2$outboundSchema),
1506
1506
  ]);
1507
1507
 
1508
1508
  /**