@bugbug-io/api-schema 14.12.0 → 14.15.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.
@@ -1056,6 +1056,54 @@ export interface paths {
1056
1056
  patch?: never;
1057
1057
  trace?: never;
1058
1058
  };
1059
+ "/api/v2/testruns/{id}/inbox/": {
1060
+ parameters: {
1061
+ query?: never;
1062
+ header?: never;
1063
+ path?: never;
1064
+ cookie?: never;
1065
+ };
1066
+ /**
1067
+ * Get test run inbox
1068
+ * @description Returns the email inbox assigned to the test run (`{{testRunId}}` inbox variable) with the list of received messages.
1069
+ */
1070
+ get: operations["v2_testruns_inbox_retrieve"];
1071
+ put?: never;
1072
+ post?: never;
1073
+ /**
1074
+ * Clear test run inbox
1075
+ * @description Deletes all messages received in the test run inbox.
1076
+ */
1077
+ delete: operations["v2_testruns_inbox_destroy"];
1078
+ options?: never;
1079
+ head?: never;
1080
+ patch?: never;
1081
+ trace?: never;
1082
+ };
1083
+ "/api/v2/testruns/{id}/inbox/messages/{message_id}/": {
1084
+ parameters: {
1085
+ query?: never;
1086
+ header?: never;
1087
+ path?: never;
1088
+ cookie?: never;
1089
+ };
1090
+ /**
1091
+ * Retrieve test run inbox message
1092
+ * @description Returns a single message received in the test run inbox, including its HTML body.
1093
+ */
1094
+ get: operations["v2_testruns_inbox_messages_retrieve"];
1095
+ put?: never;
1096
+ post?: never;
1097
+ /**
1098
+ * Delete test run inbox message
1099
+ * @description Deletes a single message from the test run inbox.
1100
+ */
1101
+ delete: operations["v2_testruns_inbox_messages_destroy"];
1102
+ options?: never;
1103
+ head?: never;
1104
+ patch?: never;
1105
+ trace?: never;
1106
+ };
1059
1107
  "/api/v2/tests/": {
1060
1108
  parameters: {
1061
1109
  query?: never;
@@ -5484,6 +5532,56 @@ export interface components {
5484
5532
  expected?: string | null;
5485
5533
  current?: string | null;
5486
5534
  };
5535
+ InboxAddress: {
5536
+ /** @default */
5537
+ name: string;
5538
+ address?: string | null;
5539
+ };
5540
+ InboxMessage: {
5541
+ /** @description Message identifier within the inbox. */
5542
+ id: string;
5543
+ /** @default */
5544
+ subject: string;
5545
+ /** @description Date the message was received in ISO 8601 format. */
5546
+ receivedAt?: string | null;
5547
+ /** @default false */
5548
+ hasAttachments: boolean;
5549
+ /** @default false */
5550
+ unseen: boolean;
5551
+ from?: components["schemas"]["InboxAddress"][];
5552
+ to?: components["schemas"]["InboxAddress"][];
5553
+ };
5554
+ InboxMessageDetails: {
5555
+ /** @description Message identifier within the inbox. */
5556
+ id: string;
5557
+ /** @default */
5558
+ subject: string;
5559
+ /** @description Date the message was received in ISO 8601 format. */
5560
+ receivedAt?: string | null;
5561
+ /** @default false */
5562
+ hasAttachments: boolean;
5563
+ /** @default false */
5564
+ unseen: boolean;
5565
+ /** @description First 200 characters of the plain text body. */
5566
+ textPreview?: string | null;
5567
+ /** @description HTML body of the message. */
5568
+ readonly html: string | null;
5569
+ from?: components["schemas"]["InboxAddress"][];
5570
+ to?: components["schemas"]["InboxAddress"][];
5571
+ };
5572
+ TestRunInbox: {
5573
+ /**
5574
+ * Format: email
5575
+ * @description Email address of the test run inbox.
5576
+ */
5577
+ address: string;
5578
+ /**
5579
+ * Format: uri
5580
+ * @description Web URL of the test run inbox.
5581
+ */
5582
+ url: string;
5583
+ messages: components["schemas"]["InboxMessage"][];
5584
+ };
5487
5585
  };
5488
5586
  responses: never;
5489
5587
  parameters: never;
@@ -8217,6 +8315,201 @@ export interface operations {
8217
8315
  };
8218
8316
  };
8219
8317
  };
8318
+ v2_testruns_inbox_retrieve: {
8319
+ parameters: {
8320
+ query?: {
8321
+ /** @description Message body contains the value. */
8322
+ body?: string;
8323
+ /** @description Sender name or address contains the value. */
8324
+ from?: string;
8325
+ /** @description Only messages with (true) or without (false) attachments. */
8326
+ hasAttachments?: boolean;
8327
+ limit?: number;
8328
+ /** @description * `-receivedAt` - -receivedAt
8329
+ * * `receivedAt` - receivedAt */
8330
+ ordering?: "-receivedAt" | "receivedAt";
8331
+ receivedAfter?: string;
8332
+ receivedBefore?: string;
8333
+ /** @description Case-insensitive match in subject, sender and recipients (names and addresses). */
8334
+ search?: string;
8335
+ /** @description Subject contains the value. */
8336
+ subject?: string;
8337
+ /** @description Recipient name or address contains the value. */
8338
+ to?: string;
8339
+ /** @description Only unread (true) or read (false) messages. */
8340
+ unseen?: boolean;
8341
+ };
8342
+ header?: never;
8343
+ path: {
8344
+ /** @description A UUID string identifying this test run. */
8345
+ id: string;
8346
+ };
8347
+ cookie?: never;
8348
+ };
8349
+ requestBody?: never;
8350
+ responses: {
8351
+ 200: {
8352
+ headers: {
8353
+ [name: string]: unknown;
8354
+ };
8355
+ content: {
8356
+ "application/json": components["schemas"]["TestRunInbox"];
8357
+ };
8358
+ };
8359
+ /** @description Authentication credentials were missing or invalid. */
8360
+ 401: {
8361
+ headers: {
8362
+ [name: string]: unknown;
8363
+ };
8364
+ content?: never;
8365
+ };
8366
+ /** @description Resource not found. */
8367
+ 404: {
8368
+ headers: {
8369
+ [name: string]: unknown;
8370
+ };
8371
+ content?: never;
8372
+ };
8373
+ /** @description Inbox service unavailable */
8374
+ 503: {
8375
+ headers: {
8376
+ [name: string]: unknown;
8377
+ };
8378
+ content?: never;
8379
+ };
8380
+ };
8381
+ };
8382
+ v2_testruns_inbox_destroy: {
8383
+ parameters: {
8384
+ query?: never;
8385
+ header?: never;
8386
+ path: {
8387
+ /** @description A UUID string identifying this test run. */
8388
+ id: string;
8389
+ };
8390
+ cookie?: never;
8391
+ };
8392
+ requestBody?: never;
8393
+ responses: {
8394
+ /** @description Inbox cleared */
8395
+ 204: {
8396
+ headers: {
8397
+ [name: string]: unknown;
8398
+ };
8399
+ content?: never;
8400
+ };
8401
+ /** @description Authentication credentials were missing or invalid. */
8402
+ 401: {
8403
+ headers: {
8404
+ [name: string]: unknown;
8405
+ };
8406
+ content?: never;
8407
+ };
8408
+ /** @description Resource not found. */
8409
+ 404: {
8410
+ headers: {
8411
+ [name: string]: unknown;
8412
+ };
8413
+ content?: never;
8414
+ };
8415
+ /** @description Inbox service unavailable */
8416
+ 503: {
8417
+ headers: {
8418
+ [name: string]: unknown;
8419
+ };
8420
+ content?: never;
8421
+ };
8422
+ };
8423
+ };
8424
+ v2_testruns_inbox_messages_retrieve: {
8425
+ parameters: {
8426
+ query?: never;
8427
+ header?: never;
8428
+ path: {
8429
+ /** @description A UUID string identifying this test run. */
8430
+ id: string;
8431
+ /** @description Message identifier returned by the inbox endpoint. */
8432
+ message_id: string;
8433
+ };
8434
+ cookie?: never;
8435
+ };
8436
+ requestBody?: never;
8437
+ responses: {
8438
+ 200: {
8439
+ headers: {
8440
+ [name: string]: unknown;
8441
+ };
8442
+ content: {
8443
+ "application/json": components["schemas"]["InboxMessageDetails"];
8444
+ };
8445
+ };
8446
+ /** @description Authentication credentials were missing or invalid. */
8447
+ 401: {
8448
+ headers: {
8449
+ [name: string]: unknown;
8450
+ };
8451
+ content?: never;
8452
+ };
8453
+ /** @description Message not found */
8454
+ 404: {
8455
+ headers: {
8456
+ [name: string]: unknown;
8457
+ };
8458
+ content?: never;
8459
+ };
8460
+ /** @description Inbox service unavailable */
8461
+ 503: {
8462
+ headers: {
8463
+ [name: string]: unknown;
8464
+ };
8465
+ content?: never;
8466
+ };
8467
+ };
8468
+ };
8469
+ v2_testruns_inbox_messages_destroy: {
8470
+ parameters: {
8471
+ query?: never;
8472
+ header?: never;
8473
+ path: {
8474
+ /** @description A UUID string identifying this test run. */
8475
+ id: string;
8476
+ /** @description Message identifier returned by the inbox endpoint. */
8477
+ message_id: string;
8478
+ };
8479
+ cookie?: never;
8480
+ };
8481
+ requestBody?: never;
8482
+ responses: {
8483
+ /** @description Message deleted */
8484
+ 204: {
8485
+ headers: {
8486
+ [name: string]: unknown;
8487
+ };
8488
+ content?: never;
8489
+ };
8490
+ /** @description Authentication credentials were missing or invalid. */
8491
+ 401: {
8492
+ headers: {
8493
+ [name: string]: unknown;
8494
+ };
8495
+ content?: never;
8496
+ };
8497
+ /** @description Message not found */
8498
+ 404: {
8499
+ headers: {
8500
+ [name: string]: unknown;
8501
+ };
8502
+ content?: never;
8503
+ };
8504
+ /** @description Inbox service unavailable */
8505
+ 503: {
8506
+ headers: {
8507
+ [name: string]: unknown;
8508
+ };
8509
+ content?: never;
8510
+ };
8511
+ };
8512
+ };
8220
8513
  v2_tests_list: {
8221
8514
  parameters: {
8222
8515
  query?: {