@distilled.cloud/resend 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.
@@ -13,6 +13,19 @@ const __s: any[] = [];
13
13
 
14
14
  export type { ResendOpError, ResendOpContext };
15
15
 
16
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
17
+ const TELEMETRY = {
18
+ system: "resend-api",
19
+ responseHeaders: [
20
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
21
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
22
+ ],
23
+ prefix: "Resend",
24
+ service: "Resend",
25
+ labels: "resend",
26
+ propagate: "w3c",
27
+ } as const;
28
+
16
29
  export interface CancelEmailRequest {
17
30
  /** The ID of the email. */
18
31
  email_id: string;
@@ -2114,6 +2127,8 @@ export const cancelEmail: API.OperationMethod<
2114
2127
  errors: [UnknownResendError],
2115
2128
  protocol: ResendProtocol,
2116
2129
  retry: Retry.Retry,
2130
+ telemetry: TELEMETRY,
2131
+ span: "CancelEmail",
2117
2132
  }));
2118
2133
 
2119
2134
  export type CreateApiKeyError = ResendOpError;
@@ -2129,6 +2144,8 @@ export const createApiKey: API.OperationMethod<
2129
2144
  errors: [UnknownResendError],
2130
2145
  protocol: ResendProtocol,
2131
2146
  retry: Retry.Retry,
2147
+ telemetry: TELEMETRY,
2148
+ span: "CreateApiKey",
2132
2149
  }));
2133
2150
 
2134
2151
  export type CreateAutomationError = ResendOpError;
@@ -2144,6 +2161,8 @@ export const createAutomation: API.OperationMethod<
2144
2161
  errors: [UnknownResendError],
2145
2162
  protocol: ResendProtocol,
2146
2163
  retry: Retry.Retry,
2164
+ telemetry: TELEMETRY,
2165
+ span: "CreateAutomation",
2147
2166
  }));
2148
2167
 
2149
2168
  export type CreateBroadcastError = ResendOpError;
@@ -2159,6 +2178,8 @@ export const createBroadcast: API.OperationMethod<
2159
2178
  errors: [UnknownResendError],
2160
2179
  protocol: ResendProtocol,
2161
2180
  retry: Retry.Retry,
2181
+ telemetry: TELEMETRY,
2182
+ span: "CreateBroadcast",
2162
2183
  }));
2163
2184
 
2164
2185
  export type CreateContactError = ResendOpError;
@@ -2174,6 +2195,8 @@ export const createContact: API.OperationMethod<
2174
2195
  errors: [UnknownResendError],
2175
2196
  protocol: ResendProtocol,
2176
2197
  retry: Retry.Retry,
2198
+ telemetry: TELEMETRY,
2199
+ span: "CreateContact",
2177
2200
  }));
2178
2201
 
2179
2202
  export type CreateContactPropertyError = ResendOpError;
@@ -2189,6 +2212,8 @@ export const createContactProperty: API.OperationMethod<
2189
2212
  errors: [UnknownResendError],
2190
2213
  protocol: ResendProtocol,
2191
2214
  retry: Retry.Retry,
2215
+ telemetry: TELEMETRY,
2216
+ span: "CreateContactProperty",
2192
2217
  }));
2193
2218
 
2194
2219
  export type CreateDomainError = ResendOpError;
@@ -2204,6 +2229,8 @@ export const createDomain: API.OperationMethod<
2204
2229
  errors: [UnknownResendError],
2205
2230
  protocol: ResendProtocol,
2206
2231
  retry: Retry.Retry,
2232
+ telemetry: TELEMETRY,
2233
+ span: "CreateDomain",
2207
2234
  }));
2208
2235
 
2209
2236
  export type CreateEmailError = ResendOpError;
@@ -2219,6 +2246,8 @@ export const createEmail: API.OperationMethod<
2219
2246
  errors: [UnknownResendError],
2220
2247
  protocol: ResendProtocol,
2221
2248
  retry: Retry.Retry,
2249
+ telemetry: TELEMETRY,
2250
+ span: "CreateEmail",
2222
2251
  }));
2223
2252
 
2224
2253
  export type CreateEmailBatchError = ResendOpError;
@@ -2234,6 +2263,8 @@ export const createEmailBatch: API.OperationMethod<
2234
2263
  errors: [UnknownResendError],
2235
2264
  protocol: ResendProtocol,
2236
2265
  retry: Retry.Retry,
2266
+ telemetry: TELEMETRY,
2267
+ span: "CreateEmailBatch",
2237
2268
  }));
2238
2269
 
2239
2270
  export type CreateEventError = ResendOpError;
@@ -2249,6 +2280,8 @@ export const createEvent: API.OperationMethod<
2249
2280
  errors: [UnknownResendError],
2250
2281
  protocol: ResendProtocol,
2251
2282
  retry: Retry.Retry,
2283
+ telemetry: TELEMETRY,
2284
+ span: "CreateEvent",
2252
2285
  }));
2253
2286
 
2254
2287
  export type CreateSegmentError = ResendOpError;
@@ -2264,6 +2297,8 @@ export const createSegment: API.OperationMethod<
2264
2297
  errors: [UnknownResendError],
2265
2298
  protocol: ResendProtocol,
2266
2299
  retry: Retry.Retry,
2300
+ telemetry: TELEMETRY,
2301
+ span: "CreateSegment",
2267
2302
  }));
2268
2303
 
2269
2304
  export type CreateTemplateError = ResendOpError;
@@ -2279,6 +2314,8 @@ export const createTemplate: API.OperationMethod<
2279
2314
  errors: [UnknownResendError],
2280
2315
  protocol: ResendProtocol,
2281
2316
  retry: Retry.Retry,
2317
+ telemetry: TELEMETRY,
2318
+ span: "CreateTemplate",
2282
2319
  }));
2283
2320
 
2284
2321
  export type CreateTopicError = ResendOpError;
@@ -2294,6 +2331,8 @@ export const createTopic: API.OperationMethod<
2294
2331
  errors: [UnknownResendError],
2295
2332
  protocol: ResendProtocol,
2296
2333
  retry: Retry.Retry,
2334
+ telemetry: TELEMETRY,
2335
+ span: "CreateTopic",
2297
2336
  }));
2298
2337
 
2299
2338
  export type CreateWebhookError = ResendOpError;
@@ -2309,6 +2348,8 @@ export const createWebhook: API.OperationMethod<
2309
2348
  errors: [UnknownResendError],
2310
2349
  protocol: ResendProtocol,
2311
2350
  retry: Retry.Retry,
2351
+ telemetry: TELEMETRY,
2352
+ span: "CreateWebhook",
2312
2353
  }));
2313
2354
 
2314
2355
  export type DeleteApiKeyError = ResendOpError;
@@ -2324,6 +2365,8 @@ export const deleteApiKey: API.OperationMethod<
2324
2365
  errors: [UnknownResendError],
2325
2366
  protocol: ResendProtocol,
2326
2367
  retry: Retry.Retry,
2368
+ telemetry: TELEMETRY,
2369
+ span: "DeleteApiKey",
2327
2370
  }));
2328
2371
 
2329
2372
  export type DeleteAutomationError = ResendOpError;
@@ -2339,6 +2382,8 @@ export const deleteAutomation: API.OperationMethod<
2339
2382
  errors: [UnknownResendError],
2340
2383
  protocol: ResendProtocol,
2341
2384
  retry: Retry.Retry,
2385
+ telemetry: TELEMETRY,
2386
+ span: "DeleteAutomation",
2342
2387
  }));
2343
2388
 
2344
2389
  export type DeleteBroadcastError = ResendOpError;
@@ -2354,6 +2399,8 @@ export const deleteBroadcast: API.OperationMethod<
2354
2399
  errors: [UnknownResendError],
2355
2400
  protocol: ResendProtocol,
2356
2401
  retry: Retry.Retry,
2402
+ telemetry: TELEMETRY,
2403
+ span: "DeleteBroadcast",
2357
2404
  }));
2358
2405
 
2359
2406
  export type DeleteContactError = ResendOpError;
@@ -2369,6 +2416,8 @@ export const deleteContact: API.OperationMethod<
2369
2416
  errors: [UnknownResendError],
2370
2417
  protocol: ResendProtocol,
2371
2418
  retry: Retry.Retry,
2419
+ telemetry: TELEMETRY,
2420
+ span: "DeleteContact",
2372
2421
  }));
2373
2422
 
2374
2423
  export type DeleteContactPropertyError = ResendOpError;
@@ -2384,6 +2433,8 @@ export const deleteContactProperty: API.OperationMethod<
2384
2433
  errors: [UnknownResendError],
2385
2434
  protocol: ResendProtocol,
2386
2435
  retry: Retry.Retry,
2436
+ telemetry: TELEMETRY,
2437
+ span: "DeleteContactProperty",
2387
2438
  }));
2388
2439
 
2389
2440
  export type DeleteContactSegmentError = ResendOpError;
@@ -2399,6 +2450,8 @@ export const deleteContactSegment: API.OperationMethod<
2399
2450
  errors: [UnknownResendError],
2400
2451
  protocol: ResendProtocol,
2401
2452
  retry: Retry.Retry,
2453
+ telemetry: TELEMETRY,
2454
+ span: "DeleteContactSegment",
2402
2455
  }));
2403
2456
 
2404
2457
  export type DeleteDomainError = ResendOpError;
@@ -2414,6 +2467,8 @@ export const deleteDomain: API.OperationMethod<
2414
2467
  errors: [UnknownResendError],
2415
2468
  protocol: ResendProtocol,
2416
2469
  retry: Retry.Retry,
2470
+ telemetry: TELEMETRY,
2471
+ span: "DeleteDomain",
2417
2472
  }));
2418
2473
 
2419
2474
  export type DeleteEventError = ResendOpError;
@@ -2429,6 +2484,8 @@ export const deleteEvent: API.OperationMethod<
2429
2484
  errors: [UnknownResendError],
2430
2485
  protocol: ResendProtocol,
2431
2486
  retry: Retry.Retry,
2487
+ telemetry: TELEMETRY,
2488
+ span: "DeleteEvent",
2432
2489
  }));
2433
2490
 
2434
2491
  export type DeleteSegmentError = ResendOpError;
@@ -2444,6 +2501,8 @@ export const deleteSegment: API.OperationMethod<
2444
2501
  errors: [UnknownResendError],
2445
2502
  protocol: ResendProtocol,
2446
2503
  retry: Retry.Retry,
2504
+ telemetry: TELEMETRY,
2505
+ span: "DeleteSegment",
2447
2506
  }));
2448
2507
 
2449
2508
  export type DeleteTemplateError = ResendOpError;
@@ -2459,6 +2518,8 @@ export const deleteTemplate: API.OperationMethod<
2459
2518
  errors: [UnknownResendError],
2460
2519
  protocol: ResendProtocol,
2461
2520
  retry: Retry.Retry,
2521
+ telemetry: TELEMETRY,
2522
+ span: "DeleteTemplate",
2462
2523
  }));
2463
2524
 
2464
2525
  export type DeleteTopicError = ResendOpError;
@@ -2474,6 +2535,8 @@ export const deleteTopic: API.OperationMethod<
2474
2535
  errors: [UnknownResendError],
2475
2536
  protocol: ResendProtocol,
2476
2537
  retry: Retry.Retry,
2538
+ telemetry: TELEMETRY,
2539
+ span: "DeleteTopic",
2477
2540
  }));
2478
2541
 
2479
2542
  export type DeleteWebhookError = ResendOpError;
@@ -2489,6 +2552,8 @@ export const deleteWebhook: API.OperationMethod<
2489
2552
  errors: [UnknownResendError],
2490
2553
  protocol: ResendProtocol,
2491
2554
  retry: Retry.Retry,
2555
+ telemetry: TELEMETRY,
2556
+ span: "DeleteWebhook",
2492
2557
  }));
2493
2558
 
2494
2559
  export type DuplicateTemplateError = ResendOpError;
@@ -2504,6 +2569,8 @@ export const duplicateTemplate: API.OperationMethod<
2504
2569
  errors: [UnknownResendError],
2505
2570
  protocol: ResendProtocol,
2506
2571
  retry: Retry.Retry,
2572
+ telemetry: TELEMETRY,
2573
+ span: "DuplicateTemplate",
2507
2574
  }));
2508
2575
 
2509
2576
  export type GetAutomationError = ResendOpError;
@@ -2519,6 +2586,8 @@ export const getAutomation: API.OperationMethod<
2519
2586
  errors: [UnknownResendError],
2520
2587
  protocol: ResendProtocol,
2521
2588
  retry: Retry.Retry,
2589
+ telemetry: TELEMETRY,
2590
+ span: "GetAutomation",
2522
2591
  }));
2523
2592
 
2524
2593
  export type GetAutomationRunError = ResendOpError;
@@ -2534,6 +2603,8 @@ export const getAutomationRun: API.OperationMethod<
2534
2603
  errors: [UnknownResendError],
2535
2604
  protocol: ResendProtocol,
2536
2605
  retry: Retry.Retry,
2606
+ telemetry: TELEMETRY,
2607
+ span: "GetAutomationRun",
2537
2608
  }));
2538
2609
 
2539
2610
  export type GetBroadcastError = ResendOpError;
@@ -2549,6 +2620,8 @@ export const getBroadcast: API.OperationMethod<
2549
2620
  errors: [UnknownResendError],
2550
2621
  protocol: ResendProtocol,
2551
2622
  retry: Retry.Retry,
2623
+ telemetry: TELEMETRY,
2624
+ span: "GetBroadcast",
2552
2625
  }));
2553
2626
 
2554
2627
  export type GetContactError = ResendOpError;
@@ -2564,6 +2637,8 @@ export const getContact: API.OperationMethod<
2564
2637
  errors: [UnknownResendError],
2565
2638
  protocol: ResendProtocol,
2566
2639
  retry: Retry.Retry,
2640
+ telemetry: TELEMETRY,
2641
+ span: "GetContact",
2567
2642
  }));
2568
2643
 
2569
2644
  export type GetContactPropertyError = ResendOpError;
@@ -2579,6 +2654,8 @@ export const getContactProperty: API.OperationMethod<
2579
2654
  errors: [UnknownResendError],
2580
2655
  protocol: ResendProtocol,
2581
2656
  retry: Retry.Retry,
2657
+ telemetry: TELEMETRY,
2658
+ span: "GetContactProperty",
2582
2659
  }));
2583
2660
 
2584
2661
  export type GetDomainError = ResendOpError;
@@ -2594,6 +2671,8 @@ export const getDomain: API.OperationMethod<
2594
2671
  errors: [UnknownResendError],
2595
2672
  protocol: ResendProtocol,
2596
2673
  retry: Retry.Retry,
2674
+ telemetry: TELEMETRY,
2675
+ span: "GetDomain",
2597
2676
  }));
2598
2677
 
2599
2678
  export type GetEmailError = ResendOpError;
@@ -2605,6 +2684,8 @@ export const getEmail: API.OperationMethod<GetEmailRequest, Email, GetEmailError
2605
2684
  errors: [UnknownResendError],
2606
2685
  protocol: ResendProtocol,
2607
2686
  retry: Retry.Retry,
2687
+ telemetry: TELEMETRY,
2688
+ span: "GetEmail",
2608
2689
  }));
2609
2690
 
2610
2691
  export type GetEmailAttachmentError = ResendOpError;
@@ -2620,6 +2701,8 @@ export const getEmailAttachment: API.OperationMethod<
2620
2701
  errors: [UnknownResendError],
2621
2702
  protocol: ResendProtocol,
2622
2703
  retry: Retry.Retry,
2704
+ telemetry: TELEMETRY,
2705
+ span: "GetEmailAttachment",
2623
2706
  }));
2624
2707
 
2625
2708
  export type GetEmailReceivingError = ResendOpError;
@@ -2635,6 +2718,8 @@ export const getEmailReceiving: API.OperationMethod<
2635
2718
  errors: [UnknownResendError],
2636
2719
  protocol: ResendProtocol,
2637
2720
  retry: Retry.Retry,
2721
+ telemetry: TELEMETRY,
2722
+ span: "GetEmailReceiving",
2638
2723
  }));
2639
2724
 
2640
2725
  export type GetEmailReceivingAttachmentError = ResendOpError;
@@ -2650,6 +2735,8 @@ export const getEmailReceivingAttachment: API.OperationMethod<
2650
2735
  errors: [UnknownResendError],
2651
2736
  protocol: ResendProtocol,
2652
2737
  retry: Retry.Retry,
2738
+ telemetry: TELEMETRY,
2739
+ span: "GetEmailReceivingAttachment",
2653
2740
  }));
2654
2741
 
2655
2742
  export type GetEventError = ResendOpError;
@@ -2661,6 +2748,8 @@ export const getEvent: API.OperationMethod<GetEventRequest, Event, GetEventError
2661
2748
  errors: [UnknownResendError],
2662
2749
  protocol: ResendProtocol,
2663
2750
  retry: Retry.Retry,
2751
+ telemetry: TELEMETRY,
2752
+ span: "GetEvent",
2664
2753
  }));
2665
2754
 
2666
2755
  export type GetLogError = ResendOpError;
@@ -2672,6 +2761,8 @@ export const getLog: API.OperationMethod<GetLogRequest, Log, GetLogError, Resend
2672
2761
  errors: [UnknownResendError],
2673
2762
  protocol: ResendProtocol,
2674
2763
  retry: Retry.Retry,
2764
+ telemetry: TELEMETRY,
2765
+ span: "GetLog",
2675
2766
  }));
2676
2767
 
2677
2768
  export type GetSegmentError = ResendOpError;
@@ -2687,6 +2778,8 @@ export const getSegment: API.OperationMethod<
2687
2778
  errors: [UnknownResendError],
2688
2779
  protocol: ResendProtocol,
2689
2780
  retry: Retry.Retry,
2781
+ telemetry: TELEMETRY,
2782
+ span: "GetSegment",
2690
2783
  }));
2691
2784
 
2692
2785
  export type GetTemplateError = ResendOpError;
@@ -2702,6 +2795,8 @@ export const getTemplate: API.OperationMethod<
2702
2795
  errors: [UnknownResendError],
2703
2796
  protocol: ResendProtocol,
2704
2797
  retry: Retry.Retry,
2798
+ telemetry: TELEMETRY,
2799
+ span: "GetTemplate",
2705
2800
  }));
2706
2801
 
2707
2802
  export type GetTopicError = ResendOpError;
@@ -2717,6 +2812,8 @@ export const getTopic: API.OperationMethod<
2717
2812
  errors: [UnknownResendError],
2718
2813
  protocol: ResendProtocol,
2719
2814
  retry: Retry.Retry,
2815
+ telemetry: TELEMETRY,
2816
+ span: "GetTopic",
2720
2817
  }));
2721
2818
 
2722
2819
  export type GetWebhookError = ResendOpError;
@@ -2732,6 +2829,8 @@ export const getWebhook: API.OperationMethod<
2732
2829
  errors: [UnknownResendError],
2733
2830
  protocol: ResendProtocol,
2734
2831
  retry: Retry.Retry,
2832
+ telemetry: TELEMETRY,
2833
+ span: "GetWebhook",
2735
2834
  }));
2736
2835
 
2737
2836
  export type ListApiKeysError = ResendOpError;
@@ -2749,6 +2848,8 @@ export const listApiKeys: API.PaginatedOperationMethod<
2749
2848
  errors: [UnknownResendError],
2750
2849
  protocol: ResendProtocol,
2751
2850
  retry: Retry.Retry,
2851
+ telemetry: TELEMETRY,
2852
+ span: "ListApiKeys",
2752
2853
  pagination: {
2753
2854
  mode: "cursor",
2754
2855
  inputToken: "after",
@@ -2775,6 +2876,8 @@ export const listAutomationRuns: API.PaginatedOperationMethod<
2775
2876
  errors: [UnknownResendError],
2776
2877
  protocol: ResendProtocol,
2777
2878
  retry: Retry.Retry,
2879
+ telemetry: TELEMETRY,
2880
+ span: "ListAutomationRuns",
2778
2881
  pagination: {
2779
2882
  mode: "cursor",
2780
2883
  inputToken: "after",
@@ -2801,6 +2904,8 @@ export const listAutomations: API.PaginatedOperationMethod<
2801
2904
  errors: [UnknownResendError],
2802
2905
  protocol: ResendProtocol,
2803
2906
  retry: Retry.Retry,
2907
+ telemetry: TELEMETRY,
2908
+ span: "ListAutomations",
2804
2909
  pagination: {
2805
2910
  mode: "cursor",
2806
2911
  inputToken: "after",
@@ -2827,6 +2932,8 @@ export const listBroadcasts: API.PaginatedOperationMethod<
2827
2932
  errors: [UnknownResendError],
2828
2933
  protocol: ResendProtocol,
2829
2934
  retry: Retry.Retry,
2935
+ telemetry: TELEMETRY,
2936
+ span: "ListBroadcasts",
2830
2937
  pagination: {
2831
2938
  mode: "cursor",
2832
2939
  inputToken: "after",
@@ -2853,6 +2960,8 @@ export const listContactProperties: API.PaginatedOperationMethod<
2853
2960
  errors: [UnknownResendError],
2854
2961
  protocol: ResendProtocol,
2855
2962
  retry: Retry.Retry,
2963
+ telemetry: TELEMETRY,
2964
+ span: "ListContactProperties",
2856
2965
  pagination: {
2857
2966
  mode: "cursor",
2858
2967
  inputToken: "after",
@@ -2877,6 +2986,8 @@ export const listContacts: API.OperationMethod<
2877
2986
  errors: [UnknownResendError],
2878
2987
  protocol: ResendProtocol,
2879
2988
  retry: Retry.Retry,
2989
+ telemetry: TELEMETRY,
2990
+ span: "ListContacts",
2880
2991
  }));
2881
2992
 
2882
2993
  export type ListContactSegmentsError = ResendOpError;
@@ -2894,6 +3005,8 @@ export const listContactSegments: API.PaginatedOperationMethod<
2894
3005
  errors: [UnknownResendError],
2895
3006
  protocol: ResendProtocol,
2896
3007
  retry: Retry.Retry,
3008
+ telemetry: TELEMETRY,
3009
+ span: "ListContactSegments",
2897
3010
  pagination: {
2898
3011
  mode: "cursor",
2899
3012
  inputToken: "after",
@@ -2920,6 +3033,8 @@ export const listContactTopics: API.PaginatedOperationMethod<
2920
3033
  errors: [UnknownResendError],
2921
3034
  protocol: ResendProtocol,
2922
3035
  retry: Retry.Retry,
3036
+ telemetry: TELEMETRY,
3037
+ span: "ListContactTopics",
2923
3038
  pagination: {
2924
3039
  mode: "cursor",
2925
3040
  inputToken: "after",
@@ -2946,6 +3061,8 @@ export const listDomains: API.PaginatedOperationMethod<
2946
3061
  errors: [UnknownResendError],
2947
3062
  protocol: ResendProtocol,
2948
3063
  retry: Retry.Retry,
3064
+ telemetry: TELEMETRY,
3065
+ span: "ListDomains",
2949
3066
  pagination: {
2950
3067
  mode: "cursor",
2951
3068
  inputToken: "after",
@@ -2972,6 +3089,8 @@ export const listEmailAttachments: API.PaginatedOperationMethod<
2972
3089
  errors: [UnknownResendError],
2973
3090
  protocol: ResendProtocol,
2974
3091
  retry: Retry.Retry,
3092
+ telemetry: TELEMETRY,
3093
+ span: "ListEmailAttachments",
2975
3094
  pagination: {
2976
3095
  mode: "cursor",
2977
3096
  inputToken: "after",
@@ -2998,6 +3117,8 @@ export const listEmailReceiving: API.PaginatedOperationMethod<
2998
3117
  errors: [UnknownResendError],
2999
3118
  protocol: ResendProtocol,
3000
3119
  retry: Retry.Retry,
3120
+ telemetry: TELEMETRY,
3121
+ span: "ListEmailReceiving",
3001
3122
  pagination: {
3002
3123
  mode: "cursor",
3003
3124
  inputToken: "after",
@@ -3024,6 +3145,8 @@ export const listEmailReceivingAttachments: API.PaginatedOperationMethod<
3024
3145
  errors: [UnknownResendError],
3025
3146
  protocol: ResendProtocol,
3026
3147
  retry: Retry.Retry,
3148
+ telemetry: TELEMETRY,
3149
+ span: "ListEmailReceivingAttachments",
3027
3150
  pagination: {
3028
3151
  mode: "cursor",
3029
3152
  inputToken: "after",
@@ -3050,6 +3173,8 @@ export const listEmails: API.PaginatedOperationMethod<
3050
3173
  errors: [UnknownResendError],
3051
3174
  protocol: ResendProtocol,
3052
3175
  retry: Retry.Retry,
3176
+ telemetry: TELEMETRY,
3177
+ span: "ListEmails",
3053
3178
  pagination: {
3054
3179
  mode: "cursor",
3055
3180
  inputToken: "after",
@@ -3076,6 +3201,8 @@ export const listEvents: API.PaginatedOperationMethod<
3076
3201
  errors: [UnknownResendError],
3077
3202
  protocol: ResendProtocol,
3078
3203
  retry: Retry.Retry,
3204
+ telemetry: TELEMETRY,
3205
+ span: "ListEvents",
3079
3206
  pagination: {
3080
3207
  mode: "cursor",
3081
3208
  inputToken: "after",
@@ -3102,6 +3229,8 @@ export const listLogs: API.PaginatedOperationMethod<
3102
3229
  errors: [UnknownResendError],
3103
3230
  protocol: ResendProtocol,
3104
3231
  retry: Retry.Retry,
3232
+ telemetry: TELEMETRY,
3233
+ span: "ListLogs",
3105
3234
  pagination: {
3106
3235
  mode: "cursor",
3107
3236
  inputToken: "after",
@@ -3128,6 +3257,8 @@ export const listSegments: API.PaginatedOperationMethod<
3128
3257
  errors: [UnknownResendError],
3129
3258
  protocol: ResendProtocol,
3130
3259
  retry: Retry.Retry,
3260
+ telemetry: TELEMETRY,
3261
+ span: "ListSegments",
3131
3262
  pagination: {
3132
3263
  mode: "cursor",
3133
3264
  inputToken: "after",
@@ -3154,6 +3285,8 @@ export const listTemplates: API.PaginatedOperationMethod<
3154
3285
  errors: [UnknownResendError],
3155
3286
  protocol: ResendProtocol,
3156
3287
  retry: Retry.Retry,
3288
+ telemetry: TELEMETRY,
3289
+ span: "ListTemplates",
3157
3290
  pagination: {
3158
3291
  mode: "cursor",
3159
3292
  inputToken: "after",
@@ -3180,6 +3313,8 @@ export const listTopics: API.PaginatedOperationMethod<
3180
3313
  errors: [UnknownResendError],
3181
3314
  protocol: ResendProtocol,
3182
3315
  retry: Retry.Retry,
3316
+ telemetry: TELEMETRY,
3317
+ span: "ListTopics",
3183
3318
  pagination: {
3184
3319
  mode: "cursor",
3185
3320
  inputToken: "after",
@@ -3206,6 +3341,8 @@ export const listWebhooks: API.PaginatedOperationMethod<
3206
3341
  errors: [UnknownResendError],
3207
3342
  protocol: ResendProtocol,
3208
3343
  retry: Retry.Retry,
3344
+ telemetry: TELEMETRY,
3345
+ span: "ListWebhooks",
3209
3346
  pagination: {
3210
3347
  mode: "cursor",
3211
3348
  inputToken: "after",
@@ -3230,6 +3367,8 @@ export const publishTemplate: API.OperationMethod<
3230
3367
  errors: [UnknownResendError],
3231
3368
  protocol: ResendProtocol,
3232
3369
  retry: Retry.Retry,
3370
+ telemetry: TELEMETRY,
3371
+ span: "PublishTemplate",
3233
3372
  }));
3234
3373
 
3235
3374
  export type SendBroadcastError = ResendOpError;
@@ -3245,6 +3384,8 @@ export const sendBroadcast: API.OperationMethod<
3245
3384
  errors: [UnknownResendError],
3246
3385
  protocol: ResendProtocol,
3247
3386
  retry: Retry.Retry,
3387
+ telemetry: TELEMETRY,
3388
+ span: "SendBroadcast",
3248
3389
  }));
3249
3390
 
3250
3391
  export type SendEventError = ResendOpError;
@@ -3260,6 +3401,8 @@ export const sendEvent: API.OperationMethod<
3260
3401
  errors: [UnknownResendError],
3261
3402
  protocol: ResendProtocol,
3262
3403
  retry: Retry.Retry,
3404
+ telemetry: TELEMETRY,
3405
+ span: "SendEvent",
3263
3406
  }));
3264
3407
 
3265
3408
  export type StopAutomationError = ResendOpError;
@@ -3275,6 +3418,8 @@ export const stopAutomation: API.OperationMethod<
3275
3418
  errors: [UnknownResendError],
3276
3419
  protocol: ResendProtocol,
3277
3420
  retry: Retry.Retry,
3421
+ telemetry: TELEMETRY,
3422
+ span: "StopAutomation",
3278
3423
  }));
3279
3424
 
3280
3425
  export type UpdateAutomationError = ResendOpError;
@@ -3290,6 +3435,8 @@ export const updateAutomation: API.OperationMethod<
3290
3435
  errors: [UnknownResendError],
3291
3436
  protocol: ResendProtocol,
3292
3437
  retry: Retry.Retry,
3438
+ telemetry: TELEMETRY,
3439
+ span: "UpdateAutomation",
3293
3440
  }));
3294
3441
 
3295
3442
  export type UpdateBroadcastError = ResendOpError;
@@ -3305,6 +3452,8 @@ export const updateBroadcast: API.OperationMethod<
3305
3452
  errors: [UnknownResendError],
3306
3453
  protocol: ResendProtocol,
3307
3454
  retry: Retry.Retry,
3455
+ telemetry: TELEMETRY,
3456
+ span: "UpdateBroadcast",
3308
3457
  }));
3309
3458
 
3310
3459
  export type UpdateContactError = ResendOpError;
@@ -3320,6 +3469,8 @@ export const updateContact: API.OperationMethod<
3320
3469
  errors: [UnknownResendError],
3321
3470
  protocol: ResendProtocol,
3322
3471
  retry: Retry.Retry,
3472
+ telemetry: TELEMETRY,
3473
+ span: "UpdateContact",
3323
3474
  }));
3324
3475
 
3325
3476
  export type UpdateContactPropertyError = ResendOpError;
@@ -3335,6 +3486,8 @@ export const updateContactProperty: API.OperationMethod<
3335
3486
  errors: [UnknownResendError],
3336
3487
  protocol: ResendProtocol,
3337
3488
  retry: Retry.Retry,
3489
+ telemetry: TELEMETRY,
3490
+ span: "UpdateContactProperty",
3338
3491
  }));
3339
3492
 
3340
3493
  export type UpdateContactSegmentError = ResendOpError;
@@ -3350,6 +3503,8 @@ export const updateContactSegment: API.OperationMethod<
3350
3503
  errors: [UnknownResendError],
3351
3504
  protocol: ResendProtocol,
3352
3505
  retry: Retry.Retry,
3506
+ telemetry: TELEMETRY,
3507
+ span: "UpdateContactSegment",
3353
3508
  }));
3354
3509
 
3355
3510
  export type UpdateContactTopicsError = ResendOpError;
@@ -3365,6 +3520,8 @@ export const updateContactTopics: API.OperationMethod<
3365
3520
  errors: [UnknownResendError],
3366
3521
  protocol: ResendProtocol,
3367
3522
  retry: Retry.Retry,
3523
+ telemetry: TELEMETRY,
3524
+ span: "UpdateContactTopics",
3368
3525
  }));
3369
3526
 
3370
3527
  export type UpdateDomainError = ResendOpError;
@@ -3380,6 +3537,8 @@ export const updateDomain: API.OperationMethod<
3380
3537
  errors: [UnknownResendError],
3381
3538
  protocol: ResendProtocol,
3382
3539
  retry: Retry.Retry,
3540
+ telemetry: TELEMETRY,
3541
+ span: "UpdateDomain",
3383
3542
  }));
3384
3543
 
3385
3544
  export type UpdateEmailError = ResendOpError;
@@ -3395,6 +3554,8 @@ export const updateEmail: API.OperationMethod<
3395
3554
  errors: [UnknownResendError],
3396
3555
  protocol: ResendProtocol,
3397
3556
  retry: Retry.Retry,
3557
+ telemetry: TELEMETRY,
3558
+ span: "UpdateEmail",
3398
3559
  }));
3399
3560
 
3400
3561
  export type UpdateEventError = ResendOpError;
@@ -3410,6 +3571,8 @@ export const updateEvent: API.OperationMethod<
3410
3571
  errors: [UnknownResendError],
3411
3572
  protocol: ResendProtocol,
3412
3573
  retry: Retry.Retry,
3574
+ telemetry: TELEMETRY,
3575
+ span: "UpdateEvent",
3413
3576
  }));
3414
3577
 
3415
3578
  export type UpdateTemplateError = ResendOpError;
@@ -3425,6 +3588,8 @@ export const updateTemplate: API.OperationMethod<
3425
3588
  errors: [UnknownResendError],
3426
3589
  protocol: ResendProtocol,
3427
3590
  retry: Retry.Retry,
3591
+ telemetry: TELEMETRY,
3592
+ span: "UpdateTemplate",
3428
3593
  }));
3429
3594
 
3430
3595
  export type UpdateTopicError = ResendOpError;
@@ -3440,6 +3605,8 @@ export const updateTopic: API.OperationMethod<
3440
3605
  errors: [UnknownResendError],
3441
3606
  protocol: ResendProtocol,
3442
3607
  retry: Retry.Retry,
3608
+ telemetry: TELEMETRY,
3609
+ span: "UpdateTopic",
3443
3610
  }));
3444
3611
 
3445
3612
  export type UpdateWebhookError = ResendOpError;
@@ -3455,6 +3622,8 @@ export const updateWebhook: API.OperationMethod<
3455
3622
  errors: [UnknownResendError],
3456
3623
  protocol: ResendProtocol,
3457
3624
  retry: Retry.Retry,
3625
+ telemetry: TELEMETRY,
3626
+ span: "UpdateWebhook",
3458
3627
  }));
3459
3628
 
3460
3629
  export type VerifyDomainError = ResendOpError;
@@ -3470,6 +3639,8 @@ export const verifyDomain: API.OperationMethod<
3470
3639
  errors: [UnknownResendError],
3471
3640
  protocol: ResendProtocol,
3472
3641
  retry: Retry.Retry,
3642
+ telemetry: TELEMETRY,
3643
+ span: "VerifyDomain",
3473
3644
  }));
3474
3645
 
3475
3646
  // Schema builders: each runs one schema initializer, on that schema's first use.
@@ -1 +0,0 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D;;;;;;GAMG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAO7D,MAAM,OAAO,WACX,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAAsC,CACzE,mBAAmB,CACpB;CAAG;AAEN,yDAAyD;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAG1B,EAA4B,EAAE,CAC7B,KAAK,CAAC,OAAO,CACX,WAAW,EACX,MAAM,CAAC,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,oBAAoB;CACtD,CAAC,CACH,CAAC;AAEJ,0EAA0E;AAC1E,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CAAC,KAAK,CAAC,OAAO,CACrF,WAAW;AACX,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAChC,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;IAE1C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC;YAC5B,OAAO,EAAE,iDAAiD;SAC3D,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QAC7B,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,oBAAoB;KACpE,CAAC;AACJ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CACtB,CAAC"}
package/lib/errors.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,yCAAyC,CAAC;AAElE,8EAA8E;AAC9E,MAAM,OAAO,kBACX,SAAQ,aAAa,CAAb,aAAa,CAAC,MAAM,CAAC,WAAW,EAAsB,CAAC,oBAAoB,EAAE;IACnF,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,MAAM,CAAC,OAAO;CACrB,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;CAAG;AAEtC,kCAAkC;AAClC,MAAM,OAAO,gBACX,SAAQ,aAAa,CAAb,aAAa,CAAC,MAAM,CAAC,WAAW,EAAoB,CAAC,kBAAkB,EAAE;IAC/E,IAAI,EAAE,MAAM,CAAC,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC,OAAO;CACtB,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;CAAG"}