@@ -72,6 +72,15 @@ export class Events extends APIResource {
7272 * - By default, no more than 100 events can be amended for a single customer in a
7373 * 100 day period. For higher volume updates, consider using the
7474 * [event backfill](create-backfill) endpoint.
75+ *
76+ * @example
77+ * ```ts
78+ * const event = await client.events.update('event_id', {
79+ * event_name: 'event_name',
80+ * properties: { foo: 'bar' },
81+ * timestamp: '2020-12-09T16:09:53Z',
82+ * });
83+ * ```
7584 */
7685 update (
7786 eventId : string ,
@@ -122,6 +131,11 @@ export class Events extends APIResource {
122131 * - By default, no more than 100 events can be deprecated for a single customer in
123132 * a 100 day period. For higher volume updates, consider using the
124133 * [event backfill](create-backfill) endpoint.
134+ *
135+ * @example
136+ * ```ts
137+ * const response = await client.events.deprecate('event_id');
138+ * ```
125139 */
126140 deprecate ( eventId : string , options ?: Core . RequestOptions ) : Core . APIPromise < EventDeprecateResponse > {
127141 return this . _client . put ( `/events/${ eventId } /deprecate` , options ) ;
@@ -332,6 +346,20 @@ export class Events extends APIResource {
332346 * "validation_failed": []
333347 * }
334348 * ```
349+ *
350+ * @example
351+ * ```ts
352+ * const response = await client.events.ingest({
353+ * events: [
354+ * {
355+ * event_name: 'event_name',
356+ * idempotency_key: 'idempotency_key',
357+ * properties: { foo: 'bar' },
358+ * timestamp: '2020-12-09T16:09:53Z',
359+ * },
360+ * ],
361+ * });
362+ * ```
335363 */
336364 ingest ( params : EventIngestParams , options ?: Core . RequestOptions ) : Core . APIPromise < EventIngestResponse > {
337365 const { backfill_id, debug, ...body } = params ;
@@ -354,6 +382,13 @@ export class Events extends APIResource {
354382 *
355383 * By default, Orb will not throw a `404` if no events matched, Orb will return an
356384 * empty array for `data` instead.
385+ *
386+ * @example
387+ * ```ts
388+ * const response = await client.events.search({
389+ * event_ids: ['string'],
390+ * });
391+ * ```
357392 */
358393 search ( body : EventSearchParams , options ?: Core . RequestOptions ) : Core . APIPromise < EventSearchResponse > {
359394 return this . _client . post ( '/events/search' , { body, ...options } ) ;
0 commit comments