@distilled.cloud/vanta 1.0.0-rc.16 → 1.0.0-rc.18

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 (51) hide show
  1. package/lib/.lazy.json +1 -0
  2. package/lib/_bundle/lazy.js +4 -0
  3. package/lib/_bundle/sdk.js +2 -0
  4. package/lib/_bundle/sdk.js.map +1 -0
  5. package/lib/credentials.d.ts +2 -1
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -40
  8. package/lib/errors.js +1 -26
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +0 -15
  11. package/lib/index.lazy.js +7 -0
  12. package/lib/pagination.js +1 -8
  13. package/lib/protocol.d.ts +2 -2
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +1 -38
  16. package/lib/retry.js +1 -33
  17. package/lib/services/auditor_api.d.ts.map +1 -1
  18. package/lib/services/auditor_api.js +73 -171
  19. package/lib/services/auditor_api.js.map +1 -0
  20. package/lib/services/build_integrations.d.ts.map +1 -1
  21. package/lib/services/build_integrations.js +49 -124
  22. package/lib/services/build_integrations.js.map +1 -0
  23. package/lib/services/index.js +0 -2
  24. package/lib/services/manage_vanta.d.ts.map +1 -1
  25. package/lib/services/manage_vanta.js +334 -763
  26. package/lib/services/manage_vanta.js.map +1 -0
  27. package/lib/services/webhooks.d.ts.map +1 -1
  28. package/lib/services/webhooks.js +37 -82
  29. package/lib/services/webhooks.js.map +1 -0
  30. package/lib/services.lazy/auditor_api.js +3 -0
  31. package/lib/services.lazy/build_integrations.js +3 -0
  32. package/lib/services.lazy/index.js +3 -0
  33. package/lib/services.lazy/manage_vanta.js +3 -0
  34. package/lib/services.lazy/webhooks.js +3 -0
  35. package/lib/traits.js +1 -11
  36. package/package.json +9 -10
  37. package/src/credentials.ts +4 -2
  38. package/src/index.ts +2 -2
  39. package/src/protocol.ts +3 -2
  40. package/src/services/auditor_api.ts +115 -0
  41. package/src/services/build_integrations.ts +63 -0
  42. package/src/services/manage_vanta.ts +507 -0
  43. package/src/services/webhooks.ts +60 -0
  44. package/lib/credentials.js.map +0 -1
  45. package/lib/errors.js.map +0 -1
  46. package/lib/pagination.js.map +0 -1
  47. package/lib/protocol.js.map +0 -1
  48. package/lib/retry.js.map +0 -1
  49. package/lib/services/index.js.map +0 -1
  50. package/lib/traits.js.map +0 -1
  51. /package/lib/{index.js.map → index.lazy.js.map} +0 -0
@@ -11,6 +11,19 @@ const __s: any[] = [];
11
11
 
12
12
  export type { VantaOpError, VantaOpContext };
13
13
 
14
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
15
+ const TELEMETRY = {
16
+ system: "vanta-api",
17
+ responseHeaders: [
18
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
19
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
20
+ ],
21
+ prefix: "Vanta",
22
+ service: "AuditorApi",
23
+ labels: "vanta",
24
+ propagate: "w3c",
25
+ } as const;
26
+
14
27
  export interface AcceptInformationRequestEvidenceRequest {
15
28
  auditId: string;
16
29
  requestId: string;
@@ -2075,6 +2088,8 @@ export const acceptInformationRequestEvidence: API.OperationMethod<
2075
2088
  errors: [UnknownVantaError],
2076
2089
  protocol: VantaProtocol,
2077
2090
  retry: Retry.Retry,
2091
+ telemetry: TELEMETRY,
2092
+ span: "AcceptInformationRequestEvidence",
2078
2093
  }));
2079
2094
 
2080
2095
  export type CreateAuditorError = VantaOpError;
@@ -2090,6 +2105,8 @@ export const createAuditor: API.OperationMethod<
2090
2105
  errors: [UnknownVantaError],
2091
2106
  protocol: VantaProtocol,
2092
2107
  retry: Retry.Retry,
2108
+ telemetry: TELEMETRY,
2109
+ span: "CreateAuditor",
2093
2110
  }));
2094
2111
 
2095
2112
  export type CreateCommentForAuditEvidenceError = VantaOpError;
@@ -2105,6 +2122,8 @@ export const createCommentForAuditEvidence: API.OperationMethod<
2105
2122
  errors: [UnknownVantaError],
2106
2123
  protocol: VantaProtocol,
2107
2124
  retry: Retry.Retry,
2125
+ telemetry: TELEMETRY,
2126
+ span: "CreateCommentForAuditEvidence",
2108
2127
  }));
2109
2128
 
2110
2129
  export type CreateCommentForControlError = VantaOpError;
@@ -2120,6 +2139,8 @@ export const createCommentForControl: API.OperationMethod<
2120
2139
  errors: [UnknownVantaError],
2121
2140
  protocol: VantaProtocol,
2122
2141
  retry: Retry.Retry,
2142
+ telemetry: TELEMETRY,
2143
+ span: "CreateCommentForControl",
2123
2144
  }));
2124
2145
 
2125
2146
  export type CreateCommentForInformationRequestError = VantaOpError;
@@ -2135,6 +2156,8 @@ export const createCommentForInformationRequest: API.OperationMethod<
2135
2156
  errors: [UnknownVantaError],
2136
2157
  protocol: VantaProtocol,
2137
2158
  retry: Retry.Retry,
2159
+ telemetry: TELEMETRY,
2160
+ span: "CreateCommentForInformationRequest",
2138
2161
  }));
2139
2162
 
2140
2163
  export type CreateCustomControlError = VantaOpError;
@@ -2150,6 +2173,8 @@ export const createCustomControl: API.OperationMethod<
2150
2173
  errors: [UnknownVantaError],
2151
2174
  protocol: VantaProtocol,
2152
2175
  retry: Retry.Retry,
2176
+ telemetry: TELEMETRY,
2177
+ span: "CreateCustomControl",
2153
2178
  }));
2154
2179
 
2155
2180
  export type CreateCustomEvidenceRequestError = VantaOpError;
@@ -2165,6 +2190,8 @@ export const createCustomEvidenceRequest: API.OperationMethod<
2165
2190
  errors: [UnknownVantaError],
2166
2191
  protocol: VantaProtocol,
2167
2192
  retry: Retry.Retry,
2193
+ telemetry: TELEMETRY,
2194
+ span: "CreateCustomEvidenceRequest",
2168
2195
  }));
2169
2196
 
2170
2197
  export type CreateInformationRequestError = VantaOpError;
@@ -2180,6 +2207,8 @@ export const createInformationRequest: API.OperationMethod<
2180
2207
  errors: [UnknownVantaError],
2181
2208
  protocol: VantaProtocol,
2182
2209
  retry: Retry.Retry,
2210
+ telemetry: TELEMETRY,
2211
+ span: "CreateInformationRequest",
2183
2212
  }));
2184
2213
 
2185
2214
  export type DeleteCommentForControlError = VantaOpError;
@@ -2195,6 +2224,8 @@ export const deleteCommentForControl: API.OperationMethod<
2195
2224
  errors: [UnknownVantaError],
2196
2225
  protocol: VantaProtocol,
2197
2226
  retry: Retry.Retry,
2227
+ telemetry: TELEMETRY,
2228
+ span: "DeleteCommentForControl",
2198
2229
  }));
2199
2230
 
2200
2231
  export type DeleteCommentForInformationRequestError = VantaOpError;
@@ -2210,6 +2241,8 @@ export const deleteCommentForInformationRequest: API.OperationMethod<
2210
2241
  errors: [UnknownVantaError],
2211
2242
  protocol: VantaProtocol,
2212
2243
  retry: Retry.Retry,
2244
+ telemetry: TELEMETRY,
2245
+ span: "DeleteCommentForInformationRequest",
2213
2246
  }));
2214
2247
 
2215
2248
  export type DeleteInformationRequestError = VantaOpError;
@@ -2225,6 +2258,8 @@ export const deleteInformationRequest: API.OperationMethod<
2225
2258
  errors: [UnknownVantaError],
2226
2259
  protocol: VantaProtocol,
2227
2260
  retry: Retry.Retry,
2261
+ telemetry: TELEMETRY,
2262
+ span: "DeleteInformationRequest",
2228
2263
  }));
2229
2264
 
2230
2265
  export type DuplicateError = VantaOpError;
@@ -2240,6 +2275,8 @@ export const duplicate: API.OperationMethod<
2240
2275
  errors: [UnknownVantaError],
2241
2276
  protocol: VantaProtocol,
2242
2277
  retry: Retry.Retry,
2278
+ telemetry: TELEMETRY,
2279
+ span: "Duplicate",
2243
2280
  }));
2244
2281
 
2245
2282
  export type FlagInformationRequestEvidenceError = VantaOpError;
@@ -2255,6 +2292,8 @@ export const flagInformationRequestEvidence: API.OperationMethod<
2255
2292
  errors: [UnknownVantaError],
2256
2293
  protocol: VantaProtocol,
2257
2294
  retry: Retry.Retry,
2295
+ telemetry: TELEMETRY,
2296
+ span: "FlagInformationRequestEvidence",
2258
2297
  }));
2259
2298
 
2260
2299
  export type GetAuditError = VantaOpError;
@@ -2266,6 +2305,8 @@ export const getAudit: API.OperationMethod<GetAuditRequest, Audit, GetAuditError
2266
2305
  errors: [UnknownVantaError],
2267
2306
  protocol: VantaProtocol,
2268
2307
  retry: Retry.Retry,
2308
+ telemetry: TELEMETRY,
2309
+ span: "GetAudit",
2269
2310
  }));
2270
2311
 
2271
2312
  export type GetAuditEvidenceError = VantaOpError;
@@ -2281,6 +2322,8 @@ export const getAuditEvidence: API.OperationMethod<
2281
2322
  errors: [UnknownVantaError],
2282
2323
  protocol: VantaProtocol,
2283
2324
  retry: Retry.Retry,
2325
+ telemetry: TELEMETRY,
2326
+ span: "GetAuditEvidence",
2284
2327
  }));
2285
2328
 
2286
2329
  export type GetAuditEvidenceCommentError = VantaOpError;
@@ -2296,6 +2339,8 @@ export const getAuditEvidenceComment: API.OperationMethod<
2296
2339
  errors: [UnknownVantaError],
2297
2340
  protocol: VantaProtocol,
2298
2341
  retry: Retry.Retry,
2342
+ telemetry: TELEMETRY,
2343
+ span: "GetAuditEvidenceComment",
2299
2344
  }));
2300
2345
 
2301
2346
  export type GetCommentForInformationRequestError = VantaOpError;
@@ -2311,6 +2356,8 @@ export const getCommentForInformationRequest: API.OperationMethod<
2311
2356
  errors: [UnknownVantaError],
2312
2357
  protocol: VantaProtocol,
2313
2358
  retry: Retry.Retry,
2359
+ telemetry: TELEMETRY,
2360
+ span: "GetCommentForInformationRequest",
2314
2361
  }));
2315
2362
 
2316
2363
  export type GetFrameworkCodesError = VantaOpError;
@@ -2326,6 +2373,8 @@ export const getFrameworkCodes: API.OperationMethod<
2326
2373
  errors: [UnknownVantaError],
2327
2374
  protocol: VantaProtocol,
2328
2375
  retry: Retry.Retry,
2376
+ telemetry: TELEMETRY,
2377
+ span: "GetFrameworkCodes",
2329
2378
  }));
2330
2379
 
2331
2380
  export type GetInformationRequestError = VantaOpError;
@@ -2341,6 +2390,8 @@ export const getInformationRequest: API.OperationMethod<
2341
2390
  errors: [UnknownVantaError],
2342
2391
  protocol: VantaProtocol,
2343
2392
  retry: Retry.Retry,
2393
+ telemetry: TELEMETRY,
2394
+ span: "GetInformationRequest",
2344
2395
  }));
2345
2396
 
2346
2397
  export type GetInformationRequestEvidenceError = VantaOpError;
@@ -2356,6 +2407,8 @@ export const getInformationRequestEvidence: API.OperationMethod<
2356
2407
  errors: [UnknownVantaError],
2357
2408
  protocol: VantaProtocol,
2358
2409
  retry: Retry.Retry,
2410
+ telemetry: TELEMETRY,
2411
+ span: "GetInformationRequestEvidence",
2359
2412
  }));
2360
2413
 
2361
2414
  export type GetInformationRequestTestSnapshotEvidenceDetailError = VantaOpError;
@@ -2375,6 +2428,8 @@ export const getInformationRequestTestSnapshotEvidenceDetail: API.OperationMetho
2375
2428
  errors: [UnknownVantaError],
2376
2429
  protocol: VantaProtocol,
2377
2430
  retry: Retry.Retry,
2431
+ telemetry: TELEMETRY,
2432
+ span: "GetInformationRequestTestSnapshotEvidenceDetail",
2378
2433
  }));
2379
2434
 
2380
2435
  export type GetOrganizationInformationError = VantaOpError;
@@ -2390,6 +2445,8 @@ export const getOrganizationInformation: API.OperationMethod<
2390
2445
  errors: [UnknownVantaError],
2391
2446
  protocol: VantaProtocol,
2392
2447
  retry: Retry.Retry,
2448
+ telemetry: TELEMETRY,
2449
+ span: "GetOrganizationInformation",
2393
2450
  }));
2394
2451
 
2395
2452
  export type GetOrganizationNotificationsError = VantaOpError;
@@ -2405,6 +2462,8 @@ export const getOrganizationNotifications: API.OperationMethod<
2405
2462
  errors: [UnknownVantaError],
2406
2463
  protocol: VantaProtocol,
2407
2464
  retry: Retry.Retry,
2465
+ telemetry: TELEMETRY,
2466
+ span: "GetOrganizationNotifications",
2408
2467
  }));
2409
2468
 
2410
2469
  export type ListAccountAccessServicesError = VantaOpError;
@@ -2420,6 +2479,8 @@ export const listAccountAccessServices: API.OperationMethod<
2420
2479
  errors: [UnknownVantaError],
2421
2480
  protocol: VantaProtocol,
2422
2481
  retry: Retry.Retry,
2482
+ telemetry: TELEMETRY,
2483
+ span: "ListAccountAccessServices",
2423
2484
  }));
2424
2485
 
2425
2486
  export type ListAuditCommentsError = VantaOpError;
@@ -2435,6 +2496,8 @@ export const listAuditComments: API.OperationMethod<
2435
2496
  errors: [UnknownVantaError],
2436
2497
  protocol: VantaProtocol,
2437
2498
  retry: Retry.Retry,
2499
+ telemetry: TELEMETRY,
2500
+ span: "ListAuditComments",
2438
2501
  }));
2439
2502
 
2440
2503
  export type ListAuditControlsError = VantaOpError;
@@ -2450,6 +2513,8 @@ export const listAuditControls: API.OperationMethod<
2450
2513
  errors: [UnknownVantaError],
2451
2514
  protocol: VantaProtocol,
2452
2515
  retry: Retry.Retry,
2516
+ telemetry: TELEMETRY,
2517
+ span: "ListAuditControls",
2453
2518
  }));
2454
2519
 
2455
2520
  export type ListAuditEvidenceError = VantaOpError;
@@ -2465,6 +2530,8 @@ export const listAuditEvidence: API.OperationMethod<
2465
2530
  errors: [UnknownVantaError],
2466
2531
  protocol: VantaProtocol,
2467
2532
  retry: Retry.Retry,
2533
+ telemetry: TELEMETRY,
2534
+ span: "ListAuditEvidence",
2468
2535
  }));
2469
2536
 
2470
2537
  export type ListAuditEvidenceUrlsError = VantaOpError;
@@ -2480,6 +2547,8 @@ export const listAuditEvidenceUrls: API.OperationMethod<
2480
2547
  errors: [UnknownVantaError],
2481
2548
  protocol: VantaProtocol,
2482
2549
  retry: Retry.Retry,
2550
+ telemetry: TELEMETRY,
2551
+ span: "ListAuditEvidenceUrls",
2483
2552
  }));
2484
2553
 
2485
2554
  export type ListAuditIssuesError = VantaOpError;
@@ -2495,6 +2564,8 @@ export const listAuditIssues: API.OperationMethod<
2495
2564
  errors: [UnknownVantaError],
2496
2565
  protocol: VantaProtocol,
2497
2566
  retry: Retry.Retry,
2567
+ telemetry: TELEMETRY,
2568
+ span: "ListAuditIssues",
2498
2569
  }));
2499
2570
 
2500
2571
  export type ListAuditRisksError = VantaOpError;
@@ -2510,6 +2581,8 @@ export const listAuditRisks: API.OperationMethod<
2510
2581
  errors: [UnknownVantaError],
2511
2582
  protocol: VantaProtocol,
2512
2583
  retry: Retry.Retry,
2584
+ telemetry: TELEMETRY,
2585
+ span: "ListAuditRisks",
2513
2586
  }));
2514
2587
 
2515
2588
  export type ListAuditsError = VantaOpError;
@@ -2525,6 +2598,8 @@ export const listAudits: API.OperationMethod<
2525
2598
  errors: [UnknownVantaError],
2526
2599
  protocol: VantaProtocol,
2527
2600
  retry: Retry.Retry,
2601
+ telemetry: TELEMETRY,
2602
+ span: "ListAudits",
2528
2603
  }));
2529
2604
 
2530
2605
  export type ListAuditSnapshotsError = VantaOpError;
@@ -2540,6 +2615,8 @@ export const listAuditSnapshots: API.OperationMethod<
2540
2615
  errors: [UnknownVantaError],
2541
2616
  protocol: VantaProtocol,
2542
2617
  retry: Retry.Retry,
2618
+ telemetry: TELEMETRY,
2619
+ span: "ListAuditSnapshots",
2543
2620
  }));
2544
2621
 
2545
2622
  export type ListCodeChangesError = VantaOpError;
@@ -2555,6 +2632,8 @@ export const listCodeChanges: API.OperationMethod<
2555
2632
  errors: [UnknownVantaError],
2556
2633
  protocol: VantaProtocol,
2557
2634
  retry: Retry.Retry,
2635
+ telemetry: TELEMETRY,
2636
+ span: "ListCodeChanges",
2558
2637
  }));
2559
2638
 
2560
2639
  export type ListCommentsForControlError = VantaOpError;
@@ -2570,6 +2649,8 @@ export const listCommentsForControl: API.OperationMethod<
2570
2649
  errors: [UnknownVantaError],
2571
2650
  protocol: VantaProtocol,
2572
2651
  retry: Retry.Retry,
2652
+ telemetry: TELEMETRY,
2653
+ span: "ListCommentsForControl",
2573
2654
  }));
2574
2655
 
2575
2656
  export type ListCommentsForInformationRequestError = VantaOpError;
@@ -2585,6 +2666,8 @@ export const listCommentsForInformationRequest: API.OperationMethod<
2585
2666
  errors: [UnknownVantaError],
2586
2667
  protocol: VantaProtocol,
2587
2668
  retry: Retry.Retry,
2669
+ telemetry: TELEMETRY,
2670
+ span: "ListCommentsForInformationRequest",
2588
2671
  }));
2589
2672
 
2590
2673
  export type ListInformationRequestActivityError = VantaOpError;
@@ -2600,6 +2683,8 @@ export const listInformationRequestActivity: API.OperationMethod<
2600
2683
  errors: [UnknownVantaError],
2601
2684
  protocol: VantaProtocol,
2602
2685
  retry: Retry.Retry,
2686
+ telemetry: TELEMETRY,
2687
+ span: "ListInformationRequestActivity",
2603
2688
  }));
2604
2689
 
2605
2690
  export type ListInformationRequestEvidenceError = VantaOpError;
@@ -2615,6 +2700,8 @@ export const listInformationRequestEvidence: API.OperationMethod<
2615
2700
  errors: [UnknownVantaError],
2616
2701
  protocol: VantaProtocol,
2617
2702
  retry: Retry.Retry,
2703
+ telemetry: TELEMETRY,
2704
+ span: "ListInformationRequestEvidence",
2618
2705
  }));
2619
2706
 
2620
2707
  export type ListInformationRequestsError = VantaOpError;
@@ -2630,6 +2717,8 @@ export const listInformationRequests: API.OperationMethod<
2630
2717
  errors: [UnknownVantaError],
2631
2718
  protocol: VantaProtocol,
2632
2719
  retry: Retry.Retry,
2720
+ telemetry: TELEMETRY,
2721
+ span: "ListInformationRequests",
2633
2722
  }));
2634
2723
 
2635
2724
  export type ListInformationRequestsForControlError = VantaOpError;
@@ -2645,6 +2734,8 @@ export const listInformationRequestsForControl: API.OperationMethod<
2645
2734
  errors: [UnknownVantaError],
2646
2735
  protocol: VantaProtocol,
2647
2736
  retry: Retry.Retry,
2737
+ telemetry: TELEMETRY,
2738
+ span: "ListInformationRequestsForControl",
2648
2739
  }));
2649
2740
 
2650
2741
  export type ListIntegrationsError = VantaOpError;
@@ -2660,6 +2751,8 @@ export const listIntegrations: API.OperationMethod<
2660
2751
  errors: [UnknownVantaError],
2661
2752
  protocol: VantaProtocol,
2662
2753
  retry: Retry.Retry,
2754
+ telemetry: TELEMETRY,
2755
+ span: "ListIntegrations",
2663
2756
  }));
2664
2757
 
2665
2758
  export type ListPersonnelAccountAccessError = VantaOpError;
@@ -2675,6 +2768,8 @@ export const listPersonnelAccountAccess: API.OperationMethod<
2675
2768
  errors: [UnknownVantaError],
2676
2769
  protocol: VantaProtocol,
2677
2770
  retry: Retry.Retry,
2771
+ telemetry: TELEMETRY,
2772
+ span: "ListPersonnelAccountAccess",
2678
2773
  }));
2679
2774
 
2680
2775
  export type ListPersonnelGroupsError = VantaOpError;
@@ -2690,6 +2785,8 @@ export const listPersonnelGroups: API.OperationMethod<
2690
2785
  errors: [UnknownVantaError],
2691
2786
  protocol: VantaProtocol,
2692
2787
  retry: Retry.Retry,
2788
+ telemetry: TELEMETRY,
2789
+ span: "ListPersonnelGroups",
2693
2790
  }));
2694
2791
 
2695
2792
  export type ListPersonnelPeopleError = VantaOpError;
@@ -2705,6 +2802,8 @@ export const listPersonnelPeople: API.OperationMethod<
2705
2802
  errors: [UnknownVantaError],
2706
2803
  protocol: VantaProtocol,
2707
2804
  retry: Retry.Retry,
2805
+ telemetry: TELEMETRY,
2806
+ span: "ListPersonnelPeople",
2708
2807
  }));
2709
2808
 
2710
2809
  export type ListRiskSnapshotsError = VantaOpError;
@@ -2720,6 +2819,8 @@ export const listRiskSnapshots: API.OperationMethod<
2720
2819
  errors: [UnknownVantaError],
2721
2820
  protocol: VantaProtocol,
2722
2821
  retry: Retry.Retry,
2822
+ telemetry: TELEMETRY,
2823
+ span: "ListRiskSnapshots",
2723
2824
  }));
2724
2825
 
2725
2826
  export type ListShareInformationRequestError = VantaOpError;
@@ -2735,6 +2836,8 @@ export const listShareInformationRequest: API.OperationMethod<
2735
2836
  errors: [UnknownVantaError],
2736
2837
  protocol: VantaProtocol,
2737
2838
  retry: Retry.Retry,
2839
+ telemetry: TELEMETRY,
2840
+ span: "ListShareInformationRequest",
2738
2841
  }));
2739
2842
 
2740
2843
  export type ListVendorsError = VantaOpError;
@@ -2750,6 +2853,8 @@ export const listVendors: API.OperationMethod<
2750
2853
  errors: [UnknownVantaError],
2751
2854
  protocol: VantaProtocol,
2752
2855
  retry: Retry.Retry,
2856
+ telemetry: TELEMETRY,
2857
+ span: "ListVendors",
2753
2858
  }));
2754
2859
 
2755
2860
  export type UpdateAuditEvidenceError = VantaOpError;
@@ -2765,6 +2870,8 @@ export const updateAuditEvidence: API.OperationMethod<
2765
2870
  errors: [UnknownVantaError],
2766
2871
  protocol: VantaProtocol,
2767
2872
  retry: Retry.Retry,
2873
+ telemetry: TELEMETRY,
2874
+ span: "UpdateAuditEvidence",
2768
2875
  }));
2769
2876
 
2770
2877
  export type UpdateCommentForControlError = VantaOpError;
@@ -2780,6 +2887,8 @@ export const updateCommentForControl: API.OperationMethod<
2780
2887
  errors: [UnknownVantaError],
2781
2888
  protocol: VantaProtocol,
2782
2889
  retry: Retry.Retry,
2890
+ telemetry: TELEMETRY,
2891
+ span: "UpdateCommentForControl",
2783
2892
  }));
2784
2893
 
2785
2894
  export type UpdateCommentForInformationRequestError = VantaOpError;
@@ -2795,6 +2904,8 @@ export const updateCommentForInformationRequest: API.OperationMethod<
2795
2904
  errors: [UnknownVantaError],
2796
2905
  protocol: VantaProtocol,
2797
2906
  retry: Retry.Retry,
2907
+ telemetry: TELEMETRY,
2908
+ span: "UpdateCommentForInformationRequest",
2798
2909
  }));
2799
2910
 
2800
2911
  export type UpdateInformationRequestError = VantaOpError;
@@ -2810,6 +2921,8 @@ export const updateInformationRequest: API.OperationMethod<
2810
2921
  errors: [UnknownVantaError],
2811
2922
  protocol: VantaProtocol,
2812
2923
  retry: Retry.Retry,
2924
+ telemetry: TELEMETRY,
2925
+ span: "UpdateInformationRequest",
2813
2926
  }));
2814
2927
 
2815
2928
  export type UpsertAssessmentForControlError = VantaOpError;
@@ -2825,6 +2938,8 @@ export const upsertAssessmentForControl: API.OperationMethod<
2825
2938
  errors: [UnknownVantaError],
2826
2939
  protocol: VantaProtocol,
2827
2940
  retry: Retry.Retry,
2941
+ telemetry: TELEMETRY,
2942
+ span: "UpsertAssessmentForControl",
2828
2943
  }));
2829
2944
 
2830
2945
  // Schema builders: each runs one schema initializer, on that schema's first use.
@@ -12,6 +12,19 @@ const __s: any[] = [];
12
12
 
13
13
  export type { VantaOpError, VantaOpContext };
14
14
 
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "vanta-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Vanta",
23
+ service: "BuildIntegrations",
24
+ labels: "vanta",
25
+ propagate: "w3c",
26
+ } as const;
27
+
15
28
  export interface GetApiEndpointVulnerabilityConnectorsRequest {
16
29
  /** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
17
30
  resourceId: string;
@@ -1495,6 +1508,8 @@ export const getApiEndpointVulnerabilityConnectors: API.OperationMethod<
1495
1508
  errors: [UnknownVantaError],
1496
1509
  protocol: VantaProtocol,
1497
1510
  retry: Retry.Retry,
1511
+ telemetry: TELEMETRY,
1512
+ span: "GetApiEndpointVulnerabilityConnectors",
1498
1513
  }));
1499
1514
 
1500
1515
  export type GetBackgroundCheckConnectorError = VantaOpError;
@@ -1510,6 +1525,8 @@ export const getBackgroundCheckConnector: API.OperationMethod<
1510
1525
  errors: [UnknownVantaError],
1511
1526
  protocol: VantaProtocol,
1512
1527
  retry: Retry.Retry,
1528
+ telemetry: TELEMETRY,
1529
+ span: "GetBackgroundCheckConnector",
1513
1530
  }));
1514
1531
 
1515
1532
  export type GetCustomResourceError = VantaOpError;
@@ -1525,6 +1542,8 @@ export const getCustomResource: API.OperationMethod<
1525
1542
  errors: [UnknownVantaError],
1526
1543
  protocol: VantaProtocol,
1527
1544
  retry: Retry.Retry,
1545
+ telemetry: TELEMETRY,
1546
+ span: "GetCustomResource",
1528
1547
  }));
1529
1548
 
1530
1549
  export type GetMacosUserComputerError = VantaOpError;
@@ -1540,6 +1559,8 @@ export const getMacosUserComputer: API.OperationMethod<
1540
1559
  errors: [UnknownVantaError],
1541
1560
  protocol: VantaProtocol,
1542
1561
  retry: Retry.Retry,
1562
+ telemetry: TELEMETRY,
1563
+ span: "GetMacosUserComputer",
1543
1564
  }));
1544
1565
 
1545
1566
  export type GetPackageVulnerabilityConnectorsError = VantaOpError;
@@ -1555,6 +1576,8 @@ export const getPackageVulnerabilityConnectors: API.OperationMethod<
1555
1576
  errors: [UnknownVantaError],
1556
1577
  protocol: VantaProtocol,
1557
1578
  retry: Retry.Retry,
1579
+ telemetry: TELEMETRY,
1580
+ span: "GetPackageVulnerabilityConnectors",
1558
1581
  }));
1559
1582
 
1560
1583
  export type GetSecretError = VantaOpError;
@@ -1570,6 +1593,8 @@ export const getSecret: API.OperationMethod<
1570
1593
  errors: [UnknownVantaError],
1571
1594
  protocol: VantaProtocol,
1572
1595
  retry: Retry.Retry,
1596
+ telemetry: TELEMETRY,
1597
+ span: "GetSecret",
1573
1598
  }));
1574
1599
 
1575
1600
  export type GetSecurityTaskError = VantaOpError;
@@ -1585,6 +1610,8 @@ export const getSecurityTask: API.OperationMethod<
1585
1610
  errors: [UnknownVantaError],
1586
1611
  protocol: VantaProtocol,
1587
1612
  retry: Retry.Retry,
1613
+ telemetry: TELEMETRY,
1614
+ span: "GetSecurityTask",
1588
1615
  }));
1589
1616
 
1590
1617
  export type GetStaticAnalysisCodeVulnerabilityConnectorsError = VantaOpError;
@@ -1604,6 +1631,8 @@ export const getStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
1604
1631
  errors: [UnknownVantaError],
1605
1632
  protocol: VantaProtocol,
1606
1633
  retry: Retry.Retry,
1634
+ telemetry: TELEMETRY,
1635
+ span: "GetStaticAnalysisCodeVulnerabilityConnectors",
1607
1636
  }));
1608
1637
 
1609
1638
  export type GetUserAccountError = VantaOpError;
@@ -1619,6 +1648,8 @@ export const getUserAccount: API.OperationMethod<
1619
1648
  errors: [UnknownVantaError],
1620
1649
  protocol: VantaProtocol,
1621
1650
  retry: Retry.Retry,
1651
+ telemetry: TELEMETRY,
1652
+ span: "GetUserAccount",
1622
1653
  }));
1623
1654
 
1624
1655
  export type GetUserSecurityTrainingStatusError = VantaOpError;
@@ -1634,6 +1665,8 @@ export const getUserSecurityTrainingStatus: API.OperationMethod<
1634
1665
  errors: [UnknownVantaError],
1635
1666
  protocol: VantaProtocol,
1636
1667
  retry: Retry.Retry,
1668
+ telemetry: TELEMETRY,
1669
+ span: "GetUserSecurityTrainingStatus",
1637
1670
  }));
1638
1671
 
1639
1672
  export type GetVulnerableComponentError = VantaOpError;
@@ -1649,6 +1682,8 @@ export const getVulnerableComponent: API.OperationMethod<
1649
1682
  errors: [UnknownVantaError],
1650
1683
  protocol: VantaProtocol,
1651
1684
  retry: Retry.Retry,
1685
+ telemetry: TELEMETRY,
1686
+ span: "GetVulnerableComponent",
1652
1687
  }));
1653
1688
 
1654
1689
  export type GetWindowsUserComputerError = VantaOpError;
@@ -1664,6 +1699,8 @@ export const getWindowsUserComputer: API.OperationMethod<
1664
1699
  errors: [UnknownVantaError],
1665
1700
  protocol: VantaProtocol,
1666
1701
  retry: Retry.Retry,
1702
+ telemetry: TELEMETRY,
1703
+ span: "GetWindowsUserComputer",
1667
1704
  }));
1668
1705
 
1669
1706
  export type PutApiEndpointVulnerabilityConnectorsError = VantaOpError;
@@ -1679,6 +1716,8 @@ export const putApiEndpointVulnerabilityConnectors: API.OperationMethod<
1679
1716
  errors: [UnknownVantaError],
1680
1717
  protocol: VantaProtocol,
1681
1718
  retry: Retry.Retry,
1719
+ telemetry: TELEMETRY,
1720
+ span: "PutApiEndpointVulnerabilityConnectors",
1682
1721
  }));
1683
1722
 
1684
1723
  export type PutBackgroundCheckConnectorError = VantaOpError;
@@ -1694,6 +1733,8 @@ export const putBackgroundCheckConnector: API.OperationMethod<
1694
1733
  errors: [UnknownVantaError],
1695
1734
  protocol: VantaProtocol,
1696
1735
  retry: Retry.Retry,
1736
+ telemetry: TELEMETRY,
1737
+ span: "PutBackgroundCheckConnector",
1697
1738
  }));
1698
1739
 
1699
1740
  export type PutCustomResourceError = VantaOpError;
@@ -1709,6 +1750,8 @@ export const putCustomResource: API.OperationMethod<
1709
1750
  errors: [UnknownVantaError],
1710
1751
  protocol: VantaProtocol,
1711
1752
  retry: Retry.Retry,
1753
+ telemetry: TELEMETRY,
1754
+ span: "PutCustomResource",
1712
1755
  }));
1713
1756
 
1714
1757
  export type PutMacosUserComputerError = VantaOpError;
@@ -1724,6 +1767,8 @@ export const putMacosUserComputer: API.OperationMethod<
1724
1767
  errors: [UnknownVantaError],
1725
1768
  protocol: VantaProtocol,
1726
1769
  retry: Retry.Retry,
1770
+ telemetry: TELEMETRY,
1771
+ span: "PutMacosUserComputer",
1727
1772
  }));
1728
1773
 
1729
1774
  export type PutPackageVulnerabilityConnectorsError = VantaOpError;
@@ -1739,6 +1784,8 @@ export const putPackageVulnerabilityConnectors: API.OperationMethod<
1739
1784
  errors: [UnknownVantaError],
1740
1785
  protocol: VantaProtocol,
1741
1786
  retry: Retry.Retry,
1787
+ telemetry: TELEMETRY,
1788
+ span: "PutPackageVulnerabilityConnectors",
1742
1789
  }));
1743
1790
 
1744
1791
  export type PutSecretError = VantaOpError;
@@ -1754,6 +1801,8 @@ export const putSecret: API.OperationMethod<
1754
1801
  errors: [UnknownVantaError],
1755
1802
  protocol: VantaProtocol,
1756
1803
  retry: Retry.Retry,
1804
+ telemetry: TELEMETRY,
1805
+ span: "PutSecret",
1757
1806
  }));
1758
1807
 
1759
1808
  export type PutSecurityTaskError = VantaOpError;
@@ -1769,6 +1818,8 @@ export const putSecurityTask: API.OperationMethod<
1769
1818
  errors: [UnknownVantaError],
1770
1819
  protocol: VantaProtocol,
1771
1820
  retry: Retry.Retry,
1821
+ telemetry: TELEMETRY,
1822
+ span: "PutSecurityTask",
1772
1823
  }));
1773
1824
 
1774
1825
  export type PutStaticAnalysisCodeVulnerabilityConnectorsError = VantaOpError;
@@ -1788,6 +1839,8 @@ export const putStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
1788
1839
  errors: [UnknownVantaError],
1789
1840
  protocol: VantaProtocol,
1790
1841
  retry: Retry.Retry,
1842
+ telemetry: TELEMETRY,
1843
+ span: "PutStaticAnalysisCodeVulnerabilityConnectors",
1791
1844
  }));
1792
1845
 
1793
1846
  export type PutUserAccountError = VantaOpError;
@@ -1803,6 +1856,8 @@ export const putUserAccount: API.OperationMethod<
1803
1856
  errors: [UnknownVantaError],
1804
1857
  protocol: VantaProtocol,
1805
1858
  retry: Retry.Retry,
1859
+ telemetry: TELEMETRY,
1860
+ span: "PutUserAccount",
1806
1861
  }));
1807
1862
 
1808
1863
  export type PutUserSecurityTrainingStatusError = VantaOpError;
@@ -1818,6 +1873,8 @@ export const putUserSecurityTrainingStatus: API.OperationMethod<
1818
1873
  errors: [UnknownVantaError],
1819
1874
  protocol: VantaProtocol,
1820
1875
  retry: Retry.Retry,
1876
+ telemetry: TELEMETRY,
1877
+ span: "PutUserSecurityTrainingStatus",
1821
1878
  }));
1822
1879
 
1823
1880
  export type PutVulnerableComponentError = VantaOpError;
@@ -1833,6 +1890,8 @@ export const putVulnerableComponent: API.OperationMethod<
1833
1890
  errors: [UnknownVantaError],
1834
1891
  protocol: VantaProtocol,
1835
1892
  retry: Retry.Retry,
1893
+ telemetry: TELEMETRY,
1894
+ span: "PutVulnerableComponent",
1836
1895
  }));
1837
1896
 
1838
1897
  export type PutWindowsUserComputerError = VantaOpError;
@@ -1848,6 +1907,8 @@ export const putWindowsUserComputer: API.OperationMethod<
1848
1907
  errors: [UnknownVantaError],
1849
1908
  protocol: VantaProtocol,
1850
1909
  retry: Retry.Retry,
1910
+ telemetry: TELEMETRY,
1911
+ span: "PutWindowsUserComputer",
1851
1912
  }));
1852
1913
 
1853
1914
  export type UploadFileForDocumentError = VantaOpError;
@@ -1863,6 +1924,8 @@ export const uploadFileForDocument: API.OperationMethod<
1863
1924
  errors: [UnknownVantaError],
1864
1925
  protocol: VantaProtocol,
1865
1926
  retry: Retry.Retry,
1927
+ telemetry: TELEMETRY,
1928
+ span: "UploadFileForDocument",
1866
1929
  }));
1867
1930
 
1868
1931
  // Schema builders: each runs one schema initializer, on that schema's first use.