@dazl/api-client 1.0.2 → 1.0.4

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.
@@ -414,11 +414,6 @@ export type UpdateCreditsInput = {
414
414
  */
415
415
  targetDazlUserId: string;
416
416
  };
417
- export type FeatureToggle = {
418
- name: string;
419
- scope: 'RemoteAndEditor' | 'SiteAndEditor';
420
- updatedAt: string;
421
- };
422
417
  export type PurgeUserAccountInput = {
423
418
  /**
424
419
  * dazlId of the admin user performing the purge, for audit purposes
@@ -454,6 +449,11 @@ export type EditReplyInput = {
454
449
  content: string;
455
450
  mentions?: Array<UserMention>;
456
451
  };
452
+ export type FeatureToggle = {
453
+ name: string;
454
+ scope: 'RemoteAndEditor' | 'SiteAndEditor';
455
+ updatedAt: string;
456
+ };
457
457
  export type EnsureMyUserData = {
458
458
  body?: {
459
459
  name?: string;
@@ -2271,6 +2271,123 @@ export type UpdateProjectResponses = {
2271
2271
  };
2272
2272
  };
2273
2273
  export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses];
2274
+ export type MarkProjectAsInitializedData = {
2275
+ body: {
2276
+ /**
2277
+ * The dazl ID of the requesting user, used for permission checks
2278
+ */
2279
+ ownerDazlId: string;
2280
+ };
2281
+ path: {
2282
+ projectId: string;
2283
+ };
2284
+ query?: never;
2285
+ url: '/project/{projectId}/project-init-data';
2286
+ };
2287
+ export type MarkProjectAsInitializedErrors = {
2288
+ /**
2289
+ * Bad request - Invalid parameters or malformed JSON
2290
+ */
2291
+ 400: {
2292
+ message: string;
2293
+ issues?: string;
2294
+ };
2295
+ /**
2296
+ * Unauthorized
2297
+ */
2298
+ 401: ErrorResponse;
2299
+ /**
2300
+ * Forbidden
2301
+ */
2302
+ 403: ErrorResponse;
2303
+ /**
2304
+ * Not Found
2305
+ */
2306
+ 404: ErrorResponse;
2307
+ /**
2308
+ * Conflict
2309
+ */
2310
+ 409: ErrorResponse;
2311
+ /**
2312
+ * Internal server error
2313
+ */
2314
+ 500: ErrorResponse;
2315
+ /**
2316
+ * Service Unavailable
2317
+ */
2318
+ 503: ErrorResponse;
2319
+ };
2320
+ export type MarkProjectAsInitializedError = MarkProjectAsInitializedErrors[keyof MarkProjectAsInitializedErrors];
2321
+ export type MarkProjectAsInitializedResponses = {
2322
+ /**
2323
+ * Returns the project ID and confirmation that the project was marked as initialized
2324
+ */
2325
+ 200: {
2326
+ projectId: string;
2327
+ };
2328
+ };
2329
+ export type MarkProjectAsInitializedResponse = MarkProjectAsInitializedResponses[keyof MarkProjectAsInitializedResponses];
2330
+ export type GetProjectInitDataData = {
2331
+ body?: never;
2332
+ path: {
2333
+ projectId: string;
2334
+ };
2335
+ query: {
2336
+ /**
2337
+ * The dazl ID of the requesting user, used for permission checks
2338
+ */
2339
+ ownerDazlId: string;
2340
+ };
2341
+ url: '/project/{projectId}/project-init-data';
2342
+ };
2343
+ export type GetProjectInitDataErrors = {
2344
+ /**
2345
+ * Bad request - Invalid parameters or malformed JSON
2346
+ */
2347
+ 400: {
2348
+ message: string;
2349
+ issues?: string;
2350
+ };
2351
+ /**
2352
+ * Unauthorized
2353
+ */
2354
+ 401: ErrorResponse;
2355
+ /**
2356
+ * Forbidden
2357
+ */
2358
+ 403: ErrorResponse;
2359
+ /**
2360
+ * Not Found
2361
+ */
2362
+ 404: ErrorResponse;
2363
+ /**
2364
+ * Conflict
2365
+ */
2366
+ 409: ErrorResponse;
2367
+ /**
2368
+ * Internal server error
2369
+ */
2370
+ 500: ErrorResponse;
2371
+ /**
2372
+ * Service Unavailable
2373
+ */
2374
+ 503: ErrorResponse;
2375
+ };
2376
+ export type GetProjectInitDataError = GetProjectInitDataErrors[keyof GetProjectInitDataErrors];
2377
+ export type GetProjectInitDataResponses = {
2378
+ /**
2379
+ * Returns the project initialization data
2380
+ */
2381
+ 200: {
2382
+ projectId: string;
2383
+ gitRepoURL: string;
2384
+ gitBranchToClone: string | null;
2385
+ gitBranchToCreate: string | null;
2386
+ createdAt: string;
2387
+ updatedAt: string;
2388
+ };
2389
+ };
2390
+ export type GetProjectInitDataResponse = GetProjectInitDataResponses[keyof GetProjectInitDataResponses];
2274
2391
  export type CreateProjectData = {
2275
2392
  body: {
2276
2393
  name: string;
@@ -2278,6 +2395,11 @@ export type CreateProjectData = {
2278
2395
  latestScreenshot?: string | null;
2279
2396
  originTemplateId?: string | null;
2280
2397
  createdAt?: string;
2398
+ projectInitData?: {
2399
+ gitRepoURL: string;
2400
+ gitBranchToClone?: string | null;
2401
+ gitBranchToCreate?: string | null;
2402
+ };
2281
2403
  };
2282
2404
  path?: never;
2283
2405
  query?: never;
@@ -5080,57 +5202,6 @@ export type AdminLogActionResponses = {
5080
5202
  };
5081
5203
  };
5082
5204
  export type AdminLogActionResponse = AdminLogActionResponses[keyof AdminLogActionResponses];
5083
- export type GetFeatureTogglesData = {
5084
- body?: never;
5085
- path?: never;
5086
- query?: {
5087
- scope?: 'RemoteAndEditor' | 'SiteAndEditor';
5088
- };
5089
- url: '/env-config';
5090
- };
5091
- export type GetFeatureTogglesErrors = {
5092
- /**
5093
- * Bad request - Invalid parameters or malformed JSON
5094
- */
5095
- 400: {
5096
- message: string;
5097
- issues?: string;
5098
- };
5099
- /**
5100
- * Unauthorized
5101
- */
5102
- 401: ErrorResponse;
5103
- /**
5104
- * Forbidden
5105
- */
5106
- 403: ErrorResponse;
5107
- /**
5108
- * Not Found
5109
- */
5110
- 404: ErrorResponse;
5111
- /**
5112
- * Conflict
5113
- */
5114
- 409: ErrorResponse;
5115
- /**
5116
- * Internal server error
5117
- */
5118
- 500: ErrorResponse;
5119
- /**
5120
- * Service Unavailable
5121
- */
5122
- 503: ErrorResponse;
5123
- };
5124
- export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
5125
- export type GetFeatureTogglesResponses = {
5126
- /**
5127
- * Returns feature toggles, optionally filtered by scope
5128
- */
5129
- 200: {
5130
- toggles: Array<FeatureToggle>;
5131
- };
5132
- };
5133
- export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
5134
5205
  export type OpenFeatureToggleData = {
5135
5206
  body: {
5136
5207
  name: string;
@@ -6417,4 +6488,157 @@ export type EditReplyResponses = {
6417
6488
  };
6418
6489
  };
6419
6490
  export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
6491
+ export type GetMyUserData = {
6492
+ body?: never;
6493
+ path?: never;
6494
+ query?: never;
6495
+ url: '/user/me';
6496
+ };
6497
+ export type GetMyUserErrors = {
6498
+ /**
6499
+ * Bad request - Invalid parameters or malformed JSON
6500
+ */
6501
+ 400: {
6502
+ message: string;
6503
+ issues?: string;
6504
+ };
6505
+ /**
6506
+ * Unauthorized
6507
+ */
6508
+ 401: ErrorResponse;
6509
+ /**
6510
+ * Forbidden
6511
+ */
6512
+ 403: ErrorResponse;
6513
+ /**
6514
+ * Not Found
6515
+ */
6516
+ 404: ErrorResponse;
6517
+ /**
6518
+ * Conflict
6519
+ */
6520
+ 409: ErrorResponse;
6521
+ /**
6522
+ * Internal server error
6523
+ */
6524
+ 500: ErrorResponse;
6525
+ /**
6526
+ * Service Unavailable
6527
+ */
6528
+ 503: ErrorResponse;
6529
+ };
6530
+ export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
6531
+ export type GetMyUserResponses = {
6532
+ /**
6533
+ * Returns the requested user
6534
+ */
6535
+ 200: {
6536
+ user: UserRaw;
6537
+ };
6538
+ };
6539
+ export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
6540
+ export type UpdateMyUserData = {
6541
+ body: {
6542
+ picture?: string | null;
6543
+ name?: string;
6544
+ jobRole?: string | null;
6545
+ };
6546
+ path?: never;
6547
+ query?: never;
6548
+ url: '/user/me';
6549
+ };
6550
+ export type UpdateMyUserErrors = {
6551
+ /**
6552
+ * Bad request - Invalid parameters or malformed JSON
6553
+ */
6554
+ 400: {
6555
+ message: string;
6556
+ issues?: string;
6557
+ };
6558
+ /**
6559
+ * Unauthorized
6560
+ */
6561
+ 401: ErrorResponse;
6562
+ /**
6563
+ * Forbidden
6564
+ */
6565
+ 403: ErrorResponse;
6566
+ /**
6567
+ * Not Found
6568
+ */
6569
+ 404: ErrorResponse;
6570
+ /**
6571
+ * Conflict
6572
+ */
6573
+ 409: ErrorResponse;
6574
+ /**
6575
+ * Internal server error
6576
+ */
6577
+ 500: ErrorResponse;
6578
+ /**
6579
+ * Service Unavailable
6580
+ */
6581
+ 503: ErrorResponse;
6582
+ };
6583
+ export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
6584
+ export type UpdateMyUserResponses = {
6585
+ /**
6586
+ * Updates user information
6587
+ */
6588
+ 200: {
6589
+ user: UserRaw;
6590
+ };
6591
+ };
6592
+ export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
6593
+ export type GetFeatureTogglesData = {
6594
+ body?: never;
6595
+ path?: never;
6596
+ query?: {
6597
+ scope?: 'RemoteAndEditor' | 'SiteAndEditor';
6598
+ };
6599
+ url: '/env-config';
6600
+ };
6601
+ export type GetFeatureTogglesErrors = {
6602
+ /**
6603
+ * Bad request - Invalid parameters or malformed JSON
6604
+ */
6605
+ 400: {
6606
+ message: string;
6607
+ issues?: string;
6608
+ };
6609
+ /**
6610
+ * Unauthorized
6611
+ */
6612
+ 401: ErrorResponse;
6613
+ /**
6614
+ * Forbidden
6615
+ */
6616
+ 403: ErrorResponse;
6617
+ /**
6618
+ * Not Found
6619
+ */
6620
+ 404: ErrorResponse;
6621
+ /**
6622
+ * Conflict
6623
+ */
6624
+ 409: ErrorResponse;
6625
+ /**
6626
+ * Internal server error
6627
+ */
6628
+ 500: ErrorResponse;
6629
+ /**
6630
+ * Service Unavailable
6631
+ */
6632
+ 503: ErrorResponse;
6633
+ };
6634
+ export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
6635
+ export type GetFeatureTogglesResponses = {
6636
+ /**
6637
+ * Returns feature toggles, optionally filtered by scope
6638
+ */
6639
+ 200: {
6640
+ toggles: Array<FeatureToggle>;
6641
+ };
6642
+ };
6643
+ export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
6420
6644
  //# sourceMappingURL=types.gen.d.ts.map