@contentful/experience-design-system-client 2.35.1-dev-build-08991bee.0 → 2.35.1-dev-build-c11bca17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-client",
3
- "version": "2.35.1-dev-build-08991bee.0",
3
+ "version": "2.35.1-dev-build-c11bca17.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/src/index.js",
@@ -1,5 +1,5 @@
1
1
  import type { Options as ClientOptions, TDataShape, Client } from './client/index.js';
2
- import type { DesignSystemSourceDeleteData, DesignSystemSourceDeleteResponses, DesignSystemSourceDeleteErrors, DesignSystemSourceReadData, DesignSystemSourceReadResponses, DesignSystemSourceReadErrors, DesignSystemSourceUpsertData, DesignSystemSourceUpsertResponses, DesignSystemSourceUpsertErrors, DesignSystemSourceListData, DesignSystemSourceListResponses, DesignSystemSourceListErrors, DesignSystemSourceDisconnectData, DesignSystemSourceDisconnectResponses, DesignSystemSourceDisconnectErrors, DesignSystemSourceReconnectData, DesignSystemSourceReconnectResponses, DesignSystemSourceReconnectErrors, DesignSystemImportCreateData, DesignSystemImportCreateResponses, DesignSystemImportCreateErrors, DesignSystemImportSourcelessPreviewData, DesignSystemImportSourcelessPreviewResponses, DesignSystemImportSourcelessPreviewErrors, DesignSystemImportApplyData, DesignSystemImportApplyResponses, DesignSystemImportApplyErrors, DesignSystemImportGetOperationData, DesignSystemImportGetOperationResponses, DesignSystemImportGetOperationErrors, DesignSystemImportPreflightData, DesignSystemImportPreflightResponses, DesignSystemImportPreflightErrors, GitHubInstallationsGenerateData, GitHubInstallationsGenerateResponses, GitHubInstallationsGenerateErrors, GitHubInstallationsListData, GitHubInstallationsListResponses, GitHubInstallationsListErrors, GitHubInstallationsExchangeData, GitHubInstallationsExchangeResponses, GitHubInstallationsExchangeErrors, GitHubInstallationRepositoriesListData, GitHubInstallationRepositoriesListResponses, GitHubInstallationRepositoriesListErrors, GitHubRepositoryBranchesListData, GitHubRepositoryBranchesListResponses, GitHubRepositoryBranchesListErrors, GitHubInstallationStatusReadData, GitHubInstallationStatusReadResponses, GitHubInstallationStatusReadErrors } from './types.gen.js';
2
+ import type { DesignSystemSourceDeleteData, DesignSystemSourceDeleteResponses, DesignSystemSourceDeleteErrors, DesignSystemSourceReadData, DesignSystemSourceReadResponses, DesignSystemSourceReadErrors, DesignSystemSourceUpsertData, DesignSystemSourceUpsertResponses, DesignSystemSourceUpsertErrors, DesignSystemSourceListData, DesignSystemSourceListResponses, DesignSystemSourceListErrors, DesignSystemSourceDisconnectData, DesignSystemSourceDisconnectResponses, DesignSystemSourceDisconnectErrors, DesignSystemSourceReconnectData, DesignSystemSourceReconnectResponses, DesignSystemSourceReconnectErrors, DesignSystemImportCreateData, DesignSystemImportCreateResponses, DesignSystemImportCreateErrors, DesignSystemImportSourcelessPreviewData, DesignSystemImportSourcelessPreviewResponses, DesignSystemImportSourcelessPreviewErrors, DesignSystemImportApplyData, DesignSystemImportApplyResponses, DesignSystemImportApplyErrors, DesignSystemImportGetOperationData, DesignSystemImportGetOperationResponses, DesignSystemImportGetOperationErrors, DesignSystemImportPreflightData, DesignSystemImportPreflightResponses, DesignSystemImportPreflightErrors, DesignSystemSourceList2Data, DesignSystemSourceList2Responses, DesignSystemSourceList2Errors, DesignSystemSourceBulkDeleteData, DesignSystemSourceBulkDeleteResponses, DesignSystemSourceBulkDeleteErrors, DesignSystemSourceBulkCreateData, DesignSystemSourceBulkCreateResponses, DesignSystemSourceBulkCreateErrors, GitHubInstallationsGenerateData, GitHubInstallationsGenerateResponses, GitHubInstallationsGenerateErrors, GitHubInstallationsListData, GitHubInstallationsListResponses, GitHubInstallationsListErrors, GitHubInstallationsExchangeData, GitHubInstallationsExchangeResponses, GitHubInstallationsExchangeErrors, GitHubInstallationRepositoriesListData, GitHubInstallationRepositoriesListResponses, GitHubInstallationRepositoriesListErrors, GitHubRepositoryBranchesListData, GitHubRepositoryBranchesListResponses, GitHubRepositoryBranchesListErrors, GitHubInstallationStatusReadData, GitHubInstallationStatusReadResponses, GitHubInstallationStatusReadErrors } from './types.gen.js';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -57,6 +57,18 @@ export declare const designSystemImportGetOperation: <ThrowOnError extends boole
57
57
  * Check whether the caller can preview or apply design system imports
58
58
  */
59
59
  export declare const designSystemImportPreflight: <ThrowOnError extends boolean = false>(options: Options<DesignSystemImportPreflightData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DesignSystemImportPreflightResponses, DesignSystemImportPreflightErrors, ThrowOnError, "fields">;
60
+ /**
61
+ * List organization design system source repository configurations
62
+ */
63
+ export declare const designSystemSourceList2: <ThrowOnError extends boolean = false>(options: Options<DesignSystemSourceList2Data, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DesignSystemSourceList2Responses, DesignSystemSourceList2Errors, ThrowOnError, "fields">;
64
+ /**
65
+ * Delete organization design system source repository configurations
66
+ */
67
+ export declare const designSystemSourceBulkDelete: <ThrowOnError extends boolean = false>(options: Options<DesignSystemSourceBulkDeleteData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DesignSystemSourceBulkDeleteResponses, DesignSystemSourceBulkDeleteErrors, ThrowOnError, "fields">;
68
+ /**
69
+ * Create or update organization design system source repository configurations
70
+ */
71
+ export declare const designSystemSourceBulkCreate: <ThrowOnError extends boolean = false>(options: Options<DesignSystemSourceBulkCreateData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DesignSystemSourceBulkCreateResponses, DesignSystemSourceBulkCreateErrors, ThrowOnError, "fields">;
60
72
  /**
61
73
  * Generate a GitHub App installation URL
62
74
  */
@@ -115,6 +115,41 @@ export const designSystemImportPreflight = (options) => {
115
115
  ...options
116
116
  });
117
117
  };
118
+ /**
119
+ * List organization design system source repository configurations
120
+ */
121
+ export const designSystemSourceList2 = (options) => {
122
+ return (options.client ?? _heyApiClient).get({
123
+ url: '/organizations/{orgId}/design_systems/sources/repository-configurations',
124
+ ...options
125
+ });
126
+ };
127
+ /**
128
+ * Delete organization design system source repository configurations
129
+ */
130
+ export const designSystemSourceBulkDelete = (options) => {
131
+ return (options.client ?? _heyApiClient).delete({
132
+ url: '/organizations/{orgId}/design_systems/providers/github/repository_configurations',
133
+ ...options,
134
+ headers: {
135
+ 'Content-Type': 'application/json',
136
+ ...options.headers
137
+ }
138
+ });
139
+ };
140
+ /**
141
+ * Create or update organization design system source repository configurations
142
+ */
143
+ export const designSystemSourceBulkCreate = (options) => {
144
+ return (options.client ?? _heyApiClient).post({
145
+ url: '/organizations/{orgId}/design_systems/providers/github/repository_configurations',
146
+ ...options,
147
+ headers: {
148
+ 'Content-Type': 'application/json',
149
+ ...options.headers
150
+ }
151
+ });
152
+ };
118
153
  /**
119
154
  * Generate a GitHub App installation URL
120
155
  */
@@ -1911,6 +1911,7 @@ export type DesignSystemImportCreateData = {
1911
1911
  };
1912
1912
  query?: {
1913
1913
  access_token?: string;
1914
+ includeImpact?: string;
1914
1915
  };
1915
1916
  url: '/spaces/{spaceId}/environments/{environmentId}/design_systems/preview';
1916
1917
  };
@@ -2450,6 +2451,15 @@ export type DesignSystemImportSourcelessPreviewData = {
2450
2451
  body?: {
2451
2452
  allowDeletions?: boolean;
2452
2453
  [key: string]: boolean | undefined;
2454
+ } | {
2455
+ componentsManifest?: {
2456
+ [key: string]: unknown;
2457
+ };
2458
+ tokensManifest?: {
2459
+ [key: string]: unknown;
2460
+ };
2461
+ acknowledgeBreakingChanges?: boolean;
2462
+ allowDeletions?: boolean;
2453
2463
  };
2454
2464
  path: {
2455
2465
  spaceId: string;
@@ -2457,6 +2467,7 @@ export type DesignSystemImportSourcelessPreviewData = {
2457
2467
  };
2458
2468
  query?: {
2459
2469
  access_token?: string;
2470
+ includeImpact?: string;
2460
2471
  };
2461
2472
  url: '/spaces/{spaceId}/environments/{environmentId}/design_systems/imports/preview';
2462
2473
  };
@@ -2880,6 +2891,15 @@ export type DesignSystemImportApplyData = {
2880
2891
  allowDeletions?: boolean;
2881
2892
  acknowledgeBreakingChanges?: boolean;
2882
2893
  [key: string]: boolean | undefined;
2894
+ } | {
2895
+ componentsManifest?: {
2896
+ [key: string]: unknown;
2897
+ };
2898
+ tokensManifest?: {
2899
+ [key: string]: unknown;
2900
+ };
2901
+ acknowledgeBreakingChanges?: boolean;
2902
+ allowDeletions?: boolean;
2883
2903
  } | {
2884
2904
  sourceId?: string;
2885
2905
  create: Array<{
@@ -3893,6 +3913,1028 @@ export type DesignSystemImportPreflightResponses = {
3893
3913
  };
3894
3914
  };
3895
3915
  export type DesignSystemImportPreflightResponse = DesignSystemImportPreflightResponses[keyof DesignSystemImportPreflightResponses];
3916
+ export type DesignSystemSourceList2Data = {
3917
+ body?: never;
3918
+ path: {
3919
+ orgId: string;
3920
+ };
3921
+ query?: {
3922
+ access_token?: string;
3923
+ repo?: string;
3924
+ branch?: string;
3925
+ };
3926
+ url: '/organizations/{orgId}/design_systems/sources/repository-configurations';
3927
+ };
3928
+ export type DesignSystemSourceList2Errors = {
3929
+ /**
3930
+ * 400
3931
+ */
3932
+ 400: {
3933
+ sys?: {
3934
+ type: 'Error';
3935
+ id: string;
3936
+ };
3937
+ message: string;
3938
+ i18nContext?: {
3939
+ code: string;
3940
+ parameters?: {
3941
+ [key: string]: {
3942
+ type: 'string';
3943
+ value: string;
3944
+ } | {
3945
+ type: 'number';
3946
+ value: number;
3947
+ } | {
3948
+ type: 'date';
3949
+ value: string;
3950
+ } | {
3951
+ type: 'array.string';
3952
+ value: Array<string>;
3953
+ } | {
3954
+ type: 'array.number';
3955
+ value: Array<number>;
3956
+ };
3957
+ };
3958
+ pluralCount?: number;
3959
+ };
3960
+ };
3961
+ /**
3962
+ * 401
3963
+ */
3964
+ 401: {
3965
+ sys: {
3966
+ id: string;
3967
+ type: 'Error';
3968
+ };
3969
+ message?: string;
3970
+ requestId?: string;
3971
+ details?: unknown;
3972
+ i18nContext?: {
3973
+ code: string;
3974
+ pluralCount?: number;
3975
+ parameters?: {
3976
+ [key: string]: {
3977
+ type: 'string';
3978
+ value: string;
3979
+ } | {
3980
+ type: 'number';
3981
+ value: number;
3982
+ } | {
3983
+ type: 'date';
3984
+ value: string;
3985
+ } | {
3986
+ type: 'array.string';
3987
+ value: Array<string>;
3988
+ } | {
3989
+ type: 'array.number';
3990
+ value: Array<number>;
3991
+ };
3992
+ };
3993
+ };
3994
+ };
3995
+ /**
3996
+ * 403
3997
+ */
3998
+ 403: {
3999
+ sys?: {
4000
+ type: 'Error';
4001
+ id: string;
4002
+ };
4003
+ message: string;
4004
+ i18nContext?: {
4005
+ code: string;
4006
+ parameters?: {
4007
+ [key: string]: {
4008
+ type: 'string';
4009
+ value: string;
4010
+ } | {
4011
+ type: 'number';
4012
+ value: number;
4013
+ } | {
4014
+ type: 'date';
4015
+ value: string;
4016
+ } | {
4017
+ type: 'array.string';
4018
+ value: Array<string>;
4019
+ } | {
4020
+ type: 'array.number';
4021
+ value: Array<number>;
4022
+ };
4023
+ };
4024
+ pluralCount?: number;
4025
+ };
4026
+ };
4027
+ /**
4028
+ * 404
4029
+ */
4030
+ 404: {
4031
+ sys: {
4032
+ id: string;
4033
+ type: 'Error';
4034
+ };
4035
+ message?: string;
4036
+ requestId?: string;
4037
+ details?: unknown;
4038
+ i18nContext?: {
4039
+ code: string;
4040
+ pluralCount?: number;
4041
+ parameters?: {
4042
+ [key: string]: {
4043
+ type: 'string';
4044
+ value: string;
4045
+ } | {
4046
+ type: 'number';
4047
+ value: number;
4048
+ } | {
4049
+ type: 'date';
4050
+ value: string;
4051
+ } | {
4052
+ type: 'array.string';
4053
+ value: Array<string>;
4054
+ } | {
4055
+ type: 'array.number';
4056
+ value: Array<number>;
4057
+ };
4058
+ };
4059
+ };
4060
+ };
4061
+ /**
4062
+ * 409
4063
+ */
4064
+ 409: {
4065
+ sys: {
4066
+ id: string;
4067
+ type: 'Error';
4068
+ };
4069
+ message?: string;
4070
+ requestId?: string;
4071
+ details?: unknown;
4072
+ i18nContext?: {
4073
+ code: string;
4074
+ pluralCount?: number;
4075
+ parameters?: {
4076
+ [key: string]: {
4077
+ type: 'string';
4078
+ value: string;
4079
+ } | {
4080
+ type: 'number';
4081
+ value: number;
4082
+ } | {
4083
+ type: 'date';
4084
+ value: string;
4085
+ } | {
4086
+ type: 'array.string';
4087
+ value: Array<string>;
4088
+ } | {
4089
+ type: 'array.number';
4090
+ value: Array<number>;
4091
+ };
4092
+ };
4093
+ };
4094
+ };
4095
+ /**
4096
+ * 422
4097
+ */
4098
+ 422: {
4099
+ sys: {
4100
+ id: string;
4101
+ type: 'Error';
4102
+ };
4103
+ message?: string;
4104
+ requestId?: string;
4105
+ details?: unknown;
4106
+ i18nContext?: {
4107
+ code: string;
4108
+ pluralCount?: number;
4109
+ parameters?: {
4110
+ [key: string]: {
4111
+ type: 'string';
4112
+ value: string;
4113
+ } | {
4114
+ type: 'number';
4115
+ value: number;
4116
+ } | {
4117
+ type: 'date';
4118
+ value: string;
4119
+ } | {
4120
+ type: 'array.string';
4121
+ value: Array<string>;
4122
+ } | {
4123
+ type: 'array.number';
4124
+ value: Array<number>;
4125
+ };
4126
+ };
4127
+ };
4128
+ };
4129
+ /**
4130
+ * 500
4131
+ */
4132
+ 500: {
4133
+ sys: {
4134
+ id: string;
4135
+ type: 'Error';
4136
+ };
4137
+ message?: string;
4138
+ requestId?: string;
4139
+ details?: unknown;
4140
+ i18nContext?: {
4141
+ code: string;
4142
+ pluralCount?: number;
4143
+ parameters?: {
4144
+ [key: string]: {
4145
+ type: 'string';
4146
+ value: string;
4147
+ } | {
4148
+ type: 'number';
4149
+ value: number;
4150
+ } | {
4151
+ type: 'date';
4152
+ value: string;
4153
+ } | {
4154
+ type: 'array.string';
4155
+ value: Array<string>;
4156
+ } | {
4157
+ type: 'array.number';
4158
+ value: Array<number>;
4159
+ };
4160
+ };
4161
+ };
4162
+ };
4163
+ /**
4164
+ * 502
4165
+ */
4166
+ 502: {
4167
+ sys?: {
4168
+ type: 'Error';
4169
+ id: string;
4170
+ };
4171
+ message: string;
4172
+ i18nContext?: {
4173
+ code: string;
4174
+ parameters?: {
4175
+ [key: string]: {
4176
+ type: 'string';
4177
+ value: string;
4178
+ } | {
4179
+ type: 'number';
4180
+ value: number;
4181
+ } | {
4182
+ type: 'date';
4183
+ value: string;
4184
+ } | {
4185
+ type: 'array.string';
4186
+ value: Array<string>;
4187
+ } | {
4188
+ type: 'array.number';
4189
+ value: Array<number>;
4190
+ };
4191
+ };
4192
+ pluralCount?: number;
4193
+ };
4194
+ };
4195
+ };
4196
+ export type DesignSystemSourceList2Error = DesignSystemSourceList2Errors[keyof DesignSystemSourceList2Errors];
4197
+ export type DesignSystemSourceList2Responses = {
4198
+ /**
4199
+ * 200
4200
+ */
4201
+ 200: {
4202
+ total: number;
4203
+ items: Array<{
4204
+ repository: string;
4205
+ branch: string;
4206
+ isDefault: boolean;
4207
+ componentsFile?: string;
4208
+ designTokensFile?: string;
4209
+ uniqueSpaceCount: number;
4210
+ totalConnections: number;
4211
+ spaces: Array<{
4212
+ spaceId: string;
4213
+ uniqueEnvironmentCount: number;
4214
+ environments: Array<{
4215
+ environmentId: string;
4216
+ sourceId: string;
4217
+ status: 'connected' | 'suspended' | 'disconnected';
4218
+ isDefault: boolean;
4219
+ }>;
4220
+ }>;
4221
+ }>;
4222
+ };
4223
+ };
4224
+ export type DesignSystemSourceList2Response = DesignSystemSourceList2Responses[keyof DesignSystemSourceList2Responses];
4225
+ export type DesignSystemSourceBulkDeleteData = {
4226
+ /**
4227
+ * Body
4228
+ */
4229
+ body?: {
4230
+ envTargets: Array<{
4231
+ spaceId: string;
4232
+ environmentId: string;
4233
+ id: string;
4234
+ }>;
4235
+ };
4236
+ path: {
4237
+ orgId: string;
4238
+ };
4239
+ query?: {
4240
+ access_token?: string;
4241
+ };
4242
+ url: '/organizations/{orgId}/design_systems/providers/github/repository_configurations';
4243
+ };
4244
+ export type DesignSystemSourceBulkDeleteErrors = {
4245
+ /**
4246
+ * 400
4247
+ */
4248
+ 400: {
4249
+ sys: {
4250
+ id: string;
4251
+ type: 'Error';
4252
+ };
4253
+ message?: string;
4254
+ requestId?: string;
4255
+ details?: unknown;
4256
+ i18nContext?: {
4257
+ code: string;
4258
+ pluralCount?: number;
4259
+ parameters?: {
4260
+ [key: string]: {
4261
+ type: 'string';
4262
+ value: string;
4263
+ } | {
4264
+ type: 'number';
4265
+ value: number;
4266
+ } | {
4267
+ type: 'date';
4268
+ value: string;
4269
+ } | {
4270
+ type: 'array.string';
4271
+ value: Array<string>;
4272
+ } | {
4273
+ type: 'array.number';
4274
+ value: Array<number>;
4275
+ };
4276
+ };
4277
+ };
4278
+ };
4279
+ /**
4280
+ * 401
4281
+ */
4282
+ 401: {
4283
+ sys: {
4284
+ id: string;
4285
+ type: 'Error';
4286
+ };
4287
+ message?: string;
4288
+ requestId?: string;
4289
+ details?: unknown;
4290
+ i18nContext?: {
4291
+ code: string;
4292
+ pluralCount?: number;
4293
+ parameters?: {
4294
+ [key: string]: {
4295
+ type: 'string';
4296
+ value: string;
4297
+ } | {
4298
+ type: 'number';
4299
+ value: number;
4300
+ } | {
4301
+ type: 'date';
4302
+ value: string;
4303
+ } | {
4304
+ type: 'array.string';
4305
+ value: Array<string>;
4306
+ } | {
4307
+ type: 'array.number';
4308
+ value: Array<number>;
4309
+ };
4310
+ };
4311
+ };
4312
+ };
4313
+ /**
4314
+ * 403
4315
+ */
4316
+ 403: {
4317
+ sys: {
4318
+ id: 'AccessDenied';
4319
+ type: 'Error';
4320
+ };
4321
+ message?: string;
4322
+ requestId?: string;
4323
+ details?: unknown;
4324
+ i18nContext?: {
4325
+ code: string;
4326
+ pluralCount?: number;
4327
+ parameters?: {
4328
+ [key: string]: {
4329
+ type: 'string';
4330
+ value: string;
4331
+ } | {
4332
+ type: 'number';
4333
+ value: number;
4334
+ } | {
4335
+ type: 'date';
4336
+ value: string;
4337
+ } | {
4338
+ type: 'array.string';
4339
+ value: Array<string>;
4340
+ } | {
4341
+ type: 'array.number';
4342
+ value: Array<number>;
4343
+ };
4344
+ };
4345
+ };
4346
+ } | {
4347
+ sys?: {
4348
+ type: 'Error';
4349
+ id: string;
4350
+ };
4351
+ message: string;
4352
+ i18nContext?: {
4353
+ code: string;
4354
+ parameters?: {
4355
+ [key: string]: {
4356
+ type: 'string';
4357
+ value: string;
4358
+ } | {
4359
+ type: 'number';
4360
+ value: number;
4361
+ } | {
4362
+ type: 'date';
4363
+ value: string;
4364
+ } | {
4365
+ type: 'array.string';
4366
+ value: Array<string>;
4367
+ } | {
4368
+ type: 'array.number';
4369
+ value: Array<number>;
4370
+ };
4371
+ };
4372
+ pluralCount?: number;
4373
+ };
4374
+ };
4375
+ /**
4376
+ * 404
4377
+ */
4378
+ 404: {
4379
+ sys: {
4380
+ id: string;
4381
+ type: 'Error';
4382
+ };
4383
+ message?: string;
4384
+ requestId?: string;
4385
+ details?: unknown;
4386
+ i18nContext?: {
4387
+ code: string;
4388
+ pluralCount?: number;
4389
+ parameters?: {
4390
+ [key: string]: {
4391
+ type: 'string';
4392
+ value: string;
4393
+ } | {
4394
+ type: 'number';
4395
+ value: number;
4396
+ } | {
4397
+ type: 'date';
4398
+ value: string;
4399
+ } | {
4400
+ type: 'array.string';
4401
+ value: Array<string>;
4402
+ } | {
4403
+ type: 'array.number';
4404
+ value: Array<number>;
4405
+ };
4406
+ };
4407
+ };
4408
+ };
4409
+ /**
4410
+ * 409
4411
+ */
4412
+ 409: {
4413
+ sys: {
4414
+ id: string;
4415
+ type: 'Error';
4416
+ };
4417
+ message?: string;
4418
+ requestId?: string;
4419
+ details?: unknown;
4420
+ i18nContext?: {
4421
+ code: string;
4422
+ pluralCount?: number;
4423
+ parameters?: {
4424
+ [key: string]: {
4425
+ type: 'string';
4426
+ value: string;
4427
+ } | {
4428
+ type: 'number';
4429
+ value: number;
4430
+ } | {
4431
+ type: 'date';
4432
+ value: string;
4433
+ } | {
4434
+ type: 'array.string';
4435
+ value: Array<string>;
4436
+ } | {
4437
+ type: 'array.number';
4438
+ value: Array<number>;
4439
+ };
4440
+ };
4441
+ };
4442
+ };
4443
+ /**
4444
+ * 422
4445
+ */
4446
+ 422: {
4447
+ sys: {
4448
+ id: string;
4449
+ type: 'Error';
4450
+ };
4451
+ message?: string;
4452
+ requestId?: string;
4453
+ details?: unknown;
4454
+ i18nContext?: {
4455
+ code: string;
4456
+ pluralCount?: number;
4457
+ parameters?: {
4458
+ [key: string]: {
4459
+ type: 'string';
4460
+ value: string;
4461
+ } | {
4462
+ type: 'number';
4463
+ value: number;
4464
+ } | {
4465
+ type: 'date';
4466
+ value: string;
4467
+ } | {
4468
+ type: 'array.string';
4469
+ value: Array<string>;
4470
+ } | {
4471
+ type: 'array.number';
4472
+ value: Array<number>;
4473
+ };
4474
+ };
4475
+ };
4476
+ };
4477
+ /**
4478
+ * 500
4479
+ */
4480
+ 500: {
4481
+ sys: {
4482
+ id: string;
4483
+ type: 'Error';
4484
+ };
4485
+ message?: string;
4486
+ requestId?: string;
4487
+ details?: unknown;
4488
+ i18nContext?: {
4489
+ code: string;
4490
+ pluralCount?: number;
4491
+ parameters?: {
4492
+ [key: string]: {
4493
+ type: 'string';
4494
+ value: string;
4495
+ } | {
4496
+ type: 'number';
4497
+ value: number;
4498
+ } | {
4499
+ type: 'date';
4500
+ value: string;
4501
+ } | {
4502
+ type: 'array.string';
4503
+ value: Array<string>;
4504
+ } | {
4505
+ type: 'array.number';
4506
+ value: Array<number>;
4507
+ };
4508
+ };
4509
+ };
4510
+ };
4511
+ /**
4512
+ * 502
4513
+ */
4514
+ 502: {
4515
+ sys?: {
4516
+ type: 'Error';
4517
+ id: string;
4518
+ };
4519
+ message: string;
4520
+ i18nContext?: {
4521
+ code: string;
4522
+ parameters?: {
4523
+ [key: string]: {
4524
+ type: 'string';
4525
+ value: string;
4526
+ } | {
4527
+ type: 'number';
4528
+ value: number;
4529
+ } | {
4530
+ type: 'date';
4531
+ value: string;
4532
+ } | {
4533
+ type: 'array.string';
4534
+ value: Array<string>;
4535
+ } | {
4536
+ type: 'array.number';
4537
+ value: Array<number>;
4538
+ };
4539
+ };
4540
+ pluralCount?: number;
4541
+ };
4542
+ };
4543
+ };
4544
+ export type DesignSystemSourceBulkDeleteError = DesignSystemSourceBulkDeleteErrors[keyof DesignSystemSourceBulkDeleteErrors];
4545
+ export type DesignSystemSourceBulkDeleteResponses = {
4546
+ /**
4547
+ * 200
4548
+ */
4549
+ 200: {
4550
+ total: number;
4551
+ successCount: number;
4552
+ items: Array<{
4553
+ spaceId: string;
4554
+ environmentId: string;
4555
+ status: 'deleted';
4556
+ id: string;
4557
+ } | {
4558
+ spaceId: string;
4559
+ environmentId: string;
4560
+ status: 'failed';
4561
+ id: string;
4562
+ error: {
4563
+ id: 'AccessDenied' | 'NotFound' | 'Conflict' | 'ValidationFailed' | 'InternalError';
4564
+ message: string;
4565
+ };
4566
+ }>;
4567
+ designSystemSourceDefaultReassignment: {
4568
+ action: 'unchanged';
4569
+ } | {
4570
+ action: 'promoted';
4571
+ previousSourceId: string;
4572
+ newSourceId: string;
4573
+ } | {
4574
+ action: 'cleared';
4575
+ previousSourceId: string;
4576
+ } | {
4577
+ action: 'promotion-failed';
4578
+ previousSourceId: string;
4579
+ attemptedSourceId: string;
4580
+ } | {
4581
+ action: 'clear-conflicted';
4582
+ previousSourceId: string;
4583
+ };
4584
+ };
4585
+ };
4586
+ export type DesignSystemSourceBulkDeleteResponse = DesignSystemSourceBulkDeleteResponses[keyof DesignSystemSourceBulkDeleteResponses];
4587
+ export type DesignSystemSourceBulkCreateData = {
4588
+ /**
4589
+ * Body
4590
+ */
4591
+ body?: {
4592
+ repository: string;
4593
+ branch: string;
4594
+ componentsFile?: string;
4595
+ designTokensFile?: string;
4596
+ isDefault?: boolean;
4597
+ envTargets: Array<{
4598
+ spaceId: string;
4599
+ environmentId: string;
4600
+ id?: string;
4601
+ }>;
4602
+ };
4603
+ path: {
4604
+ orgId: string;
4605
+ };
4606
+ query?: {
4607
+ access_token?: string;
4608
+ };
4609
+ url: '/organizations/{orgId}/design_systems/providers/github/repository_configurations';
4610
+ };
4611
+ export type DesignSystemSourceBulkCreateErrors = {
4612
+ /**
4613
+ * 400
4614
+ */
4615
+ 400: {
4616
+ sys: {
4617
+ id: string;
4618
+ type: 'Error';
4619
+ };
4620
+ message?: string;
4621
+ requestId?: string;
4622
+ details?: unknown;
4623
+ i18nContext?: {
4624
+ code: string;
4625
+ pluralCount?: number;
4626
+ parameters?: {
4627
+ [key: string]: {
4628
+ type: 'string';
4629
+ value: string;
4630
+ } | {
4631
+ type: 'number';
4632
+ value: number;
4633
+ } | {
4634
+ type: 'date';
4635
+ value: string;
4636
+ } | {
4637
+ type: 'array.string';
4638
+ value: Array<string>;
4639
+ } | {
4640
+ type: 'array.number';
4641
+ value: Array<number>;
4642
+ };
4643
+ };
4644
+ };
4645
+ };
4646
+ /**
4647
+ * 401
4648
+ */
4649
+ 401: {
4650
+ sys: {
4651
+ id: string;
4652
+ type: 'Error';
4653
+ };
4654
+ message?: string;
4655
+ requestId?: string;
4656
+ details?: unknown;
4657
+ i18nContext?: {
4658
+ code: string;
4659
+ pluralCount?: number;
4660
+ parameters?: {
4661
+ [key: string]: {
4662
+ type: 'string';
4663
+ value: string;
4664
+ } | {
4665
+ type: 'number';
4666
+ value: number;
4667
+ } | {
4668
+ type: 'date';
4669
+ value: string;
4670
+ } | {
4671
+ type: 'array.string';
4672
+ value: Array<string>;
4673
+ } | {
4674
+ type: 'array.number';
4675
+ value: Array<number>;
4676
+ };
4677
+ };
4678
+ };
4679
+ };
4680
+ /**
4681
+ * 403
4682
+ */
4683
+ 403: {
4684
+ sys: {
4685
+ id: 'AccessDenied';
4686
+ type: 'Error';
4687
+ };
4688
+ message?: string;
4689
+ requestId?: string;
4690
+ details?: unknown;
4691
+ i18nContext?: {
4692
+ code: string;
4693
+ pluralCount?: number;
4694
+ parameters?: {
4695
+ [key: string]: {
4696
+ type: 'string';
4697
+ value: string;
4698
+ } | {
4699
+ type: 'number';
4700
+ value: number;
4701
+ } | {
4702
+ type: 'date';
4703
+ value: string;
4704
+ } | {
4705
+ type: 'array.string';
4706
+ value: Array<string>;
4707
+ } | {
4708
+ type: 'array.number';
4709
+ value: Array<number>;
4710
+ };
4711
+ };
4712
+ };
4713
+ } | {
4714
+ sys?: {
4715
+ type: 'Error';
4716
+ id: string;
4717
+ };
4718
+ message: string;
4719
+ i18nContext?: {
4720
+ code: string;
4721
+ parameters?: {
4722
+ [key: string]: {
4723
+ type: 'string';
4724
+ value: string;
4725
+ } | {
4726
+ type: 'number';
4727
+ value: number;
4728
+ } | {
4729
+ type: 'date';
4730
+ value: string;
4731
+ } | {
4732
+ type: 'array.string';
4733
+ value: Array<string>;
4734
+ } | {
4735
+ type: 'array.number';
4736
+ value: Array<number>;
4737
+ };
4738
+ };
4739
+ pluralCount?: number;
4740
+ };
4741
+ };
4742
+ /**
4743
+ * 404
4744
+ */
4745
+ 404: {
4746
+ sys: {
4747
+ id: string;
4748
+ type: 'Error';
4749
+ };
4750
+ message?: string;
4751
+ requestId?: string;
4752
+ details?: unknown;
4753
+ i18nContext?: {
4754
+ code: string;
4755
+ pluralCount?: number;
4756
+ parameters?: {
4757
+ [key: string]: {
4758
+ type: 'string';
4759
+ value: string;
4760
+ } | {
4761
+ type: 'number';
4762
+ value: number;
4763
+ } | {
4764
+ type: 'date';
4765
+ value: string;
4766
+ } | {
4767
+ type: 'array.string';
4768
+ value: Array<string>;
4769
+ } | {
4770
+ type: 'array.number';
4771
+ value: Array<number>;
4772
+ };
4773
+ };
4774
+ };
4775
+ };
4776
+ /**
4777
+ * 409
4778
+ */
4779
+ 409: {
4780
+ sys: {
4781
+ id: string;
4782
+ type: 'Error';
4783
+ };
4784
+ message?: string;
4785
+ requestId?: string;
4786
+ details?: unknown;
4787
+ i18nContext?: {
4788
+ code: string;
4789
+ pluralCount?: number;
4790
+ parameters?: {
4791
+ [key: string]: {
4792
+ type: 'string';
4793
+ value: string;
4794
+ } | {
4795
+ type: 'number';
4796
+ value: number;
4797
+ } | {
4798
+ type: 'date';
4799
+ value: string;
4800
+ } | {
4801
+ type: 'array.string';
4802
+ value: Array<string>;
4803
+ } | {
4804
+ type: 'array.number';
4805
+ value: Array<number>;
4806
+ };
4807
+ };
4808
+ };
4809
+ };
4810
+ /**
4811
+ * 422
4812
+ */
4813
+ 422: {
4814
+ sys: {
4815
+ id: string;
4816
+ type: 'Error';
4817
+ };
4818
+ message?: string;
4819
+ requestId?: string;
4820
+ details?: unknown;
4821
+ i18nContext?: {
4822
+ code: string;
4823
+ pluralCount?: number;
4824
+ parameters?: {
4825
+ [key: string]: {
4826
+ type: 'string';
4827
+ value: string;
4828
+ } | {
4829
+ type: 'number';
4830
+ value: number;
4831
+ } | {
4832
+ type: 'date';
4833
+ value: string;
4834
+ } | {
4835
+ type: 'array.string';
4836
+ value: Array<string>;
4837
+ } | {
4838
+ type: 'array.number';
4839
+ value: Array<number>;
4840
+ };
4841
+ };
4842
+ };
4843
+ };
4844
+ /**
4845
+ * 500
4846
+ */
4847
+ 500: {
4848
+ sys: {
4849
+ id: string;
4850
+ type: 'Error';
4851
+ };
4852
+ message?: string;
4853
+ requestId?: string;
4854
+ details?: unknown;
4855
+ i18nContext?: {
4856
+ code: string;
4857
+ pluralCount?: number;
4858
+ parameters?: {
4859
+ [key: string]: {
4860
+ type: 'string';
4861
+ value: string;
4862
+ } | {
4863
+ type: 'number';
4864
+ value: number;
4865
+ } | {
4866
+ type: 'date';
4867
+ value: string;
4868
+ } | {
4869
+ type: 'array.string';
4870
+ value: Array<string>;
4871
+ } | {
4872
+ type: 'array.number';
4873
+ value: Array<number>;
4874
+ };
4875
+ };
4876
+ };
4877
+ };
4878
+ /**
4879
+ * 502
4880
+ */
4881
+ 502: {
4882
+ sys?: {
4883
+ type: 'Error';
4884
+ id: string;
4885
+ };
4886
+ message: string;
4887
+ i18nContext?: {
4888
+ code: string;
4889
+ parameters?: {
4890
+ [key: string]: {
4891
+ type: 'string';
4892
+ value: string;
4893
+ } | {
4894
+ type: 'number';
4895
+ value: number;
4896
+ } | {
4897
+ type: 'date';
4898
+ value: string;
4899
+ } | {
4900
+ type: 'array.string';
4901
+ value: Array<string>;
4902
+ } | {
4903
+ type: 'array.number';
4904
+ value: Array<number>;
4905
+ };
4906
+ };
4907
+ pluralCount?: number;
4908
+ };
4909
+ };
4910
+ };
4911
+ export type DesignSystemSourceBulkCreateError = DesignSystemSourceBulkCreateErrors[keyof DesignSystemSourceBulkCreateErrors];
4912
+ export type DesignSystemSourceBulkCreateResponses = {
4913
+ /**
4914
+ * 200
4915
+ */
4916
+ 200: {
4917
+ total: number;
4918
+ successCount: number;
4919
+ items: Array<{
4920
+ spaceId: string;
4921
+ environmentId: string;
4922
+ status: 'created' | 'updated';
4923
+ id: string;
4924
+ } | {
4925
+ spaceId: string;
4926
+ environmentId: string;
4927
+ status: 'failed';
4928
+ error: {
4929
+ id: 'AccessDenied' | 'NotFound' | 'Conflict' | 'ValidationFailed' | 'InternalError';
4930
+ message: string;
4931
+ };
4932
+ }>;
4933
+ isDefault: boolean;
4934
+ isDefaultApplied: boolean;
4935
+ };
4936
+ };
4937
+ export type DesignSystemSourceBulkCreateResponse = DesignSystemSourceBulkCreateResponses[keyof DesignSystemSourceBulkCreateResponses];
3896
4938
  export type GitHubInstallationsGenerateData = {
3897
4939
  /**
3898
4940
  * Body
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-client",
3
- "version": "2.35.1-dev-build-08991bee.0",
3
+ "version": "2.35.1-dev-build-c11bca17.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/src/index.js",