@stigg/typescript 0.1.0-beta.17 → 0.1.0-beta.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 (61) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/v1/events/data-export/data-export.d.mts +126 -0
  4. package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
  5. package/resources/v1/events/data-export/data-export.d.ts +126 -0
  6. package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
  7. package/resources/v1/events/data-export/data-export.js +45 -0
  8. package/resources/v1/events/data-export/data-export.js.map +1 -0
  9. package/resources/v1/events/data-export/data-export.mjs +40 -0
  10. package/resources/v1/events/data-export/data-export.mjs.map +1 -0
  11. package/resources/v1/events/data-export/destinations.d.mts +124 -0
  12. package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
  13. package/resources/v1/events/data-export/destinations.d.ts +124 -0
  14. package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
  15. package/resources/v1/events/data-export/destinations.js +41 -0
  16. package/resources/v1/events/data-export/destinations.js.map +1 -0
  17. package/resources/v1/events/data-export/destinations.mjs +37 -0
  18. package/resources/v1/events/data-export/destinations.mjs.map +1 -0
  19. package/resources/v1/events/data-export/index.d.mts +3 -0
  20. package/resources/v1/events/data-export/index.d.mts.map +1 -0
  21. package/resources/v1/events/data-export/index.d.ts +3 -0
  22. package/resources/v1/events/data-export/index.d.ts.map +1 -0
  23. package/resources/v1/events/data-export/index.js +9 -0
  24. package/resources/v1/events/data-export/index.js.map +1 -0
  25. package/resources/v1/events/data-export/index.mjs +4 -0
  26. package/resources/v1/events/data-export/index.mjs.map +1 -0
  27. package/resources/v1/events/data-export.d.mts +2 -0
  28. package/resources/v1/events/data-export.d.mts.map +1 -0
  29. package/resources/v1/events/data-export.d.ts +2 -0
  30. package/resources/v1/events/data-export.d.ts.map +1 -0
  31. package/resources/v1/events/data-export.js +6 -0
  32. package/resources/v1/events/data-export.js.map +1 -0
  33. package/resources/v1/events/data-export.mjs +3 -0
  34. package/resources/v1/events/data-export.mjs.map +1 -0
  35. package/resources/v1/events/events.d.mts +4 -0
  36. package/resources/v1/events/events.d.mts.map +1 -1
  37. package/resources/v1/events/events.d.ts +4 -0
  38. package/resources/v1/events/events.d.ts.map +1 -1
  39. package/resources/v1/events/events.js +4 -0
  40. package/resources/v1/events/events.js.map +1 -1
  41. package/resources/v1/events/events.mjs +4 -0
  42. package/resources/v1/events/events.mjs.map +1 -1
  43. package/resources/v1/events/index.d.mts +1 -0
  44. package/resources/v1/events/index.d.mts.map +1 -1
  45. package/resources/v1/events/index.d.ts +1 -0
  46. package/resources/v1/events/index.d.ts.map +1 -1
  47. package/resources/v1/events/index.js +3 -1
  48. package/resources/v1/events/index.js.map +1 -1
  49. package/resources/v1/events/index.mjs +1 -0
  50. package/resources/v1/events/index.mjs.map +1 -1
  51. package/src/resources/v1/events/data-export/data-export.ts +170 -0
  52. package/src/resources/v1/events/data-export/destinations.ts +149 -0
  53. package/src/resources/v1/events/data-export/index.ts +15 -0
  54. package/src/resources/v1/events/data-export.ts +3 -0
  55. package/src/resources/v1/events/events.ts +18 -0
  56. package/src/resources/v1/events/index.ts +7 -0
  57. package/src/version.ts +1 -1
  58. package/version.d.mts +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/version.mjs +1 -1
@@ -0,0 +1,149 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../core/resource';
4
+ import { APIPromise } from '../../../../core/api-promise';
5
+ import { RequestOptions } from '../../../../internal/request-options';
6
+ import { path } from '../../../../internal/utils/path';
7
+
8
+ export class Destinations extends APIResource {
9
+ /**
10
+ * Register a destination on the environment's DATA_EXPORT integration.
11
+ * Lazy-creates the integration row + provider recipient on first call. Idempotent
12
+ * on destinationId.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const destination =
17
+ * await client.v1.events.dataExport.destinations.create({
18
+ * destinationId: 'x',
19
+ * destinationType: 'x',
20
+ * });
21
+ * ```
22
+ */
23
+ create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<DestinationCreateResponse> {
24
+ return this._client.post('/api/v1/data-export/destinations', { body, ...options });
25
+ }
26
+
27
+ /**
28
+ * Remove a destination from the DATA_EXPORT integration metadata. Idempotent.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const destination =
33
+ * await client.v1.events.dataExport.destinations.delete(
34
+ * 'x',
35
+ * );
36
+ * ```
37
+ */
38
+ delete(destinationID: string, options?: RequestOptions): APIPromise<DestinationDeleteResponse> {
39
+ return this._client.delete(path`/api/v1/data-export/destinations/${destinationID}`, options);
40
+ }
41
+ }
42
+
43
+ /**
44
+ * Response object
45
+ */
46
+ export interface DestinationCreateResponse {
47
+ /**
48
+ * Current destinations under the DATA_EXPORT integration.
49
+ */
50
+ data: DestinationCreateResponse.Data;
51
+ }
52
+
53
+ export namespace DestinationCreateResponse {
54
+ /**
55
+ * Current destinations under the DATA_EXPORT integration.
56
+ */
57
+ export interface Data {
58
+ /**
59
+ * Current destinations under the DATA_EXPORT integration
60
+ */
61
+ destinations: Array<Data.Destination>;
62
+ }
63
+
64
+ export namespace Data {
65
+ /**
66
+ * A single destination entry under the DATA_EXPORT integration.
67
+ */
68
+ export interface Destination {
69
+ /**
70
+ * ISO8601 timestamp of when the destination was connected
71
+ */
72
+ connectedAt: string;
73
+
74
+ /**
75
+ * Provider destination ID
76
+ */
77
+ destinationId: string;
78
+
79
+ /**
80
+ * Destination type (snowflake, bigquery, ...)
81
+ */
82
+ type: string;
83
+ }
84
+ }
85
+ }
86
+
87
+ /**
88
+ * Response object
89
+ */
90
+ export interface DestinationDeleteResponse {
91
+ /**
92
+ * Current destinations under the DATA_EXPORT integration.
93
+ */
94
+ data: DestinationDeleteResponse.Data;
95
+ }
96
+
97
+ export namespace DestinationDeleteResponse {
98
+ /**
99
+ * Current destinations under the DATA_EXPORT integration.
100
+ */
101
+ export interface Data {
102
+ /**
103
+ * Current destinations under the DATA_EXPORT integration
104
+ */
105
+ destinations: Array<Data.Destination>;
106
+ }
107
+
108
+ export namespace Data {
109
+ /**
110
+ * A single destination entry under the DATA_EXPORT integration.
111
+ */
112
+ export interface Destination {
113
+ /**
114
+ * ISO8601 timestamp of when the destination was connected
115
+ */
116
+ connectedAt: string;
117
+
118
+ /**
119
+ * Provider destination ID
120
+ */
121
+ destinationId: string;
122
+
123
+ /**
124
+ * Destination type (snowflake, bigquery, ...)
125
+ */
126
+ type: string;
127
+ }
128
+ }
129
+ }
130
+
131
+ export interface DestinationCreateParams {
132
+ /**
133
+ * The provider destination ID returned by the embedded SDK on connect
134
+ */
135
+ destinationId: string;
136
+
137
+ /**
138
+ * The destination type (e.g. snowflake, bigquery)
139
+ */
140
+ destinationType: string;
141
+ }
142
+
143
+ export declare namespace Destinations {
144
+ export {
145
+ type DestinationCreateResponse as DestinationCreateResponse,
146
+ type DestinationDeleteResponse as DestinationDeleteResponse,
147
+ type DestinationCreateParams as DestinationCreateParams,
148
+ };
149
+ }
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ DataExport,
5
+ type DataExportMintScopedTokenResponse,
6
+ type DataExportTriggerSyncResponse,
7
+ type DataExportMintScopedTokenParams,
8
+ type DataExportTriggerSyncParams,
9
+ } from './data-export';
10
+ export {
11
+ Destinations,
12
+ type DestinationCreateResponse,
13
+ type DestinationDeleteResponse,
14
+ type DestinationCreateParams,
15
+ } from './destinations';
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './data-export/index';
@@ -3,6 +3,14 @@
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import * as BetaAPI from './beta/beta';
5
5
  import { Beta } from './beta/beta';
6
+ import * as DataExportAPI from './data-export/data-export';
7
+ import {
8
+ DataExport,
9
+ DataExportMintScopedTokenParams,
10
+ DataExportMintScopedTokenResponse,
11
+ DataExportTriggerSyncParams,
12
+ DataExportTriggerSyncResponse,
13
+ } from './data-export/data-export';
6
14
  import { APIPromise } from '../../../core/api-promise';
7
15
  import { RequestOptions } from '../../../internal/request-options';
8
16
 
@@ -11,6 +19,7 @@ import { RequestOptions } from '../../../internal/request-options';
11
19
  */
12
20
  export class Events extends APIResource {
13
21
  beta: BetaAPI.Beta = new BetaAPI.Beta(this._client);
22
+ dataExport: DataExportAPI.DataExport = new DataExportAPI.DataExport(this._client);
14
23
 
15
24
  /**
16
25
  * Reports raw usage events for event-based metering. Events are ingested
@@ -90,9 +99,18 @@ export namespace EventReportParams {
90
99
  }
91
100
 
92
101
  Events.Beta = Beta;
102
+ Events.DataExport = DataExport;
93
103
 
94
104
  export declare namespace Events {
95
105
  export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
96
106
 
97
107
  export { Beta as Beta };
108
+
109
+ export {
110
+ DataExport as DataExport,
111
+ type DataExportMintScopedTokenResponse as DataExportMintScopedTokenResponse,
112
+ type DataExportTriggerSyncResponse as DataExportTriggerSyncResponse,
113
+ type DataExportMintScopedTokenParams as DataExportMintScopedTokenParams,
114
+ type DataExportTriggerSyncParams as DataExportTriggerSyncParams,
115
+ };
98
116
  }
@@ -1,4 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { Beta } from './beta/index';
4
+ export {
5
+ DataExport,
6
+ type DataExportMintScopedTokenResponse,
7
+ type DataExportTriggerSyncResponse,
8
+ type DataExportMintScopedTokenParams,
9
+ type DataExportTriggerSyncParams,
10
+ } from './data-export/index';
4
11
  export { Events, type EventReportResponse, type EventReportParams } from './events';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-beta.17'; // x-release-please-version
1
+ export const VERSION = '0.1.0-beta.18'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-beta.17";
1
+ export declare const VERSION = "0.1.0-beta.18";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-beta.17";
1
+ export declare const VERSION = "0.1.0-beta.18";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-beta.17'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-beta.18'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-beta.17'; // x-release-please-version
1
+ export const VERSION = '0.1.0-beta.18'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map