@flowcore/sdk 1.49.0 → 1.50.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.
Files changed (149) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +47 -0
  3. package/esm/_dnt.shims.d.ts +1 -1
  4. package/esm/commands/adapter/reset-adapter.d.ts +52 -0
  5. package/esm/commands/adapter/reset-adapter.d.ts.map +1 -0
  6. package/esm/commands/adapter/reset-adapter.js +38 -0
  7. package/esm/commands/ai-agent-coordinator/conversation-stream.command.js +1 -6
  8. package/esm/commands/api-key/api-key.create.js +8 -21
  9. package/esm/commands/api-key/api-key.delete.js +4 -12
  10. package/esm/commands/api-key/api-key.list.js +4 -12
  11. package/esm/commands/data-core/data-core.create.js +4 -12
  12. package/esm/commands/data-core/data-core.request-delete.js +4 -12
  13. package/esm/commands/event-type/event-type.create.js +4 -12
  14. package/esm/commands/event-type/event-type.request-delete.js +4 -12
  15. package/esm/commands/event-type/event-type.request-truncate.js +4 -12
  16. package/esm/commands/events/event.list.js +4 -12
  17. package/esm/commands/events/events.fetch-time-buckets-by-names.js +4 -12
  18. package/esm/commands/events/events.fetch.js +4 -12
  19. package/esm/commands/events/time-bucket.list.js +4 -12
  20. package/esm/commands/flow-type/flow-type.create.js +4 -12
  21. package/esm/commands/flow-type/flow-type.request-delete.js +4 -12
  22. package/esm/commands/index.d.ts +1 -7
  23. package/esm/commands/index.d.ts.map +1 -1
  24. package/esm/commands/index.js +2 -8
  25. package/esm/commands/ingestion/ingest.batch.js +5 -18
  26. package/esm/commands/ingestion/ingest.event.js +5 -18
  27. package/esm/commands/scenario/scenario.create.js +4 -12
  28. package/esm/commands/scenario/scenario.delete.js +4 -12
  29. package/esm/commands/scenario/scenario.fetch.js +4 -12
  30. package/esm/commands/scenario/scenario.list.js +4 -12
  31. package/esm/commands/scenario/scenario.update.js +4 -12
  32. package/esm/commands/secret/secret.create.js +4 -12
  33. package/esm/commands/secret/secret.delete.js +4 -12
  34. package/esm/commands/secret/secret.list.js +4 -12
  35. package/esm/commands/security/pat.create.js +4 -12
  36. package/esm/commands/security/pat.delete.js +4 -12
  37. package/esm/commands/security/pat.exchange.js +4 -12
  38. package/esm/commands/security/pat.get.js +4 -12
  39. package/esm/commands/security/pat.list.js +4 -12
  40. package/esm/commands/tenant/tenant.list.js +4 -12
  41. package/esm/commands/variable/variable.create.js +4 -12
  42. package/esm/commands/variable/variable.delete.js +4 -12
  43. package/esm/commands/variable/variable.list.js +4 -12
  44. package/esm/common/command-graphql.js +4 -12
  45. package/esm/common/command.js +20 -45
  46. package/esm/common/flowcore-client.js +4 -18
  47. package/esm/common/notification-client.js +15 -72
  48. package/esm/common/websocket-client.js +16 -80
  49. package/esm/exceptions/client-error.js +6 -18
  50. package/esm/exceptions/invalid-response.js +2 -6
  51. package/esm/utils/local-cache.js +5 -19
  52. package/package.json +1 -1
  53. package/script/_dnt.shims.d.ts +1 -1
  54. package/script/commands/adapter/reset-adapter.d.ts +52 -0
  55. package/script/commands/adapter/reset-adapter.d.ts.map +1 -0
  56. package/script/commands/adapter/reset-adapter.js +42 -0
  57. package/script/commands/ai-agent-coordinator/conversation-stream.command.js +1 -6
  58. package/script/commands/api-key/api-key.create.js +8 -21
  59. package/script/commands/api-key/api-key.delete.js +4 -12
  60. package/script/commands/api-key/api-key.list.js +4 -12
  61. package/script/commands/data-core/data-core.create.js +4 -12
  62. package/script/commands/data-core/data-core.request-delete.js +4 -12
  63. package/script/commands/event-type/event-type.create.js +4 -12
  64. package/script/commands/event-type/event-type.request-delete.js +4 -12
  65. package/script/commands/event-type/event-type.request-truncate.js +4 -12
  66. package/script/commands/events/event.list.js +4 -12
  67. package/script/commands/events/events.fetch-time-buckets-by-names.js +4 -12
  68. package/script/commands/events/events.fetch.js +4 -12
  69. package/script/commands/events/time-bucket.list.js +4 -12
  70. package/script/commands/flow-type/flow-type.create.js +4 -12
  71. package/script/commands/flow-type/flow-type.request-delete.js +4 -12
  72. package/script/commands/index.d.ts +1 -7
  73. package/script/commands/index.d.ts.map +1 -1
  74. package/script/commands/index.js +2 -8
  75. package/script/commands/ingestion/ingest.batch.js +5 -18
  76. package/script/commands/ingestion/ingest.event.js +5 -18
  77. package/script/commands/scenario/scenario.create.js +4 -12
  78. package/script/commands/scenario/scenario.delete.js +4 -12
  79. package/script/commands/scenario/scenario.fetch.js +4 -12
  80. package/script/commands/scenario/scenario.list.js +4 -12
  81. package/script/commands/scenario/scenario.update.js +4 -12
  82. package/script/commands/secret/secret.create.js +4 -12
  83. package/script/commands/secret/secret.delete.js +4 -12
  84. package/script/commands/secret/secret.list.js +4 -12
  85. package/script/commands/security/pat.create.js +4 -12
  86. package/script/commands/security/pat.delete.js +4 -12
  87. package/script/commands/security/pat.exchange.js +4 -12
  88. package/script/commands/security/pat.get.js +4 -12
  89. package/script/commands/security/pat.list.js +4 -12
  90. package/script/commands/tenant/tenant.list.js +4 -12
  91. package/script/commands/variable/variable.create.js +4 -12
  92. package/script/commands/variable/variable.delete.js +4 -12
  93. package/script/commands/variable/variable.list.js +4 -12
  94. package/script/common/command-graphql.js +4 -12
  95. package/script/common/command.js +20 -45
  96. package/script/common/flowcore-client.js +4 -18
  97. package/script/common/notification-client.js +15 -72
  98. package/script/common/websocket-client.js +16 -80
  99. package/script/exceptions/client-error.js +6 -18
  100. package/script/exceptions/invalid-response.js +2 -6
  101. package/script/utils/local-cache.js +5 -19
  102. package/esm/commands/iam/api-key-role-association.create.d.ts +0 -45
  103. package/esm/commands/iam/api-key-role-association.create.d.ts.map +0 -1
  104. package/esm/commands/iam/api-key-role-association.create.js +0 -44
  105. package/esm/commands/iam/api-key-role-association.delete.d.ts +0 -45
  106. package/esm/commands/iam/api-key-role-association.delete.d.ts.map +0 -1
  107. package/esm/commands/iam/api-key-role-association.delete.js +0 -44
  108. package/esm/commands/iam/api-key-role-association.list.d.ts +0 -31
  109. package/esm/commands/iam/api-key-role-association.list.d.ts.map +0 -1
  110. package/esm/commands/iam/api-key-role-association.list.js +0 -37
  111. package/esm/commands/iam/role.list.d.ts +0 -33
  112. package/esm/commands/iam/role.list.d.ts.map +0 -1
  113. package/esm/commands/iam/role.list.js +0 -41
  114. package/esm/commands/iam/user-role-association.create.d.ts +0 -42
  115. package/esm/commands/iam/user-role-association.create.d.ts.map +0 -1
  116. package/esm/commands/iam/user-role-association.create.js +0 -40
  117. package/esm/commands/iam/user-role-association.delete.d.ts +0 -42
  118. package/esm/commands/iam/user-role-association.delete.d.ts.map +0 -1
  119. package/esm/commands/iam/user-role-association.delete.js +0 -40
  120. package/esm/commands/iam/user-role-association.list.d.ts +0 -33
  121. package/esm/commands/iam/user-role-association.list.d.ts.map +0 -1
  122. package/esm/commands/iam/user-role-association.list.js +0 -39
  123. package/esm/contracts/iam.d.ts +0 -13
  124. package/esm/contracts/iam.d.ts.map +0 -1
  125. package/esm/contracts/iam.js +0 -9
  126. package/script/commands/iam/api-key-role-association.create.d.ts +0 -45
  127. package/script/commands/iam/api-key-role-association.create.d.ts.map +0 -1
  128. package/script/commands/iam/api-key-role-association.create.js +0 -48
  129. package/script/commands/iam/api-key-role-association.delete.d.ts +0 -45
  130. package/script/commands/iam/api-key-role-association.delete.d.ts.map +0 -1
  131. package/script/commands/iam/api-key-role-association.delete.js +0 -48
  132. package/script/commands/iam/api-key-role-association.list.d.ts +0 -31
  133. package/script/commands/iam/api-key-role-association.list.d.ts.map +0 -1
  134. package/script/commands/iam/api-key-role-association.list.js +0 -41
  135. package/script/commands/iam/role.list.d.ts +0 -33
  136. package/script/commands/iam/role.list.d.ts.map +0 -1
  137. package/script/commands/iam/role.list.js +0 -45
  138. package/script/commands/iam/user-role-association.create.d.ts +0 -42
  139. package/script/commands/iam/user-role-association.create.d.ts.map +0 -1
  140. package/script/commands/iam/user-role-association.create.js +0 -44
  141. package/script/commands/iam/user-role-association.delete.d.ts +0 -42
  142. package/script/commands/iam/user-role-association.delete.d.ts.map +0 -1
  143. package/script/commands/iam/user-role-association.delete.js +0 -44
  144. package/script/commands/iam/user-role-association.list.d.ts +0 -33
  145. package/script/commands/iam/user-role-association.list.d.ts.map +0 -1
  146. package/script/commands/iam/user-role-association.list.js +0 -43
  147. package/script/contracts/iam.d.ts +0 -13
  148. package/script/contracts/iam.d.ts.map +0 -1
  149. package/script/contracts/iam.js +0 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.50.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.49.0...v1.50.0) (2025-06-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * **adapter:** :sparkles: add reset adapter command and documentation ([c234e86](https://github.com/flowcore-io/flowcore-sdk/commit/c234e8672dee6d1b3ae1844d4de43f53ca92f172))
9
+ * **iam:** add role association commands for API key and user roles, reorganize file structure ([288bbef](https://github.com/flowcore-io/flowcore-sdk/commit/288bbef534eaacb171d18c8ff1c119911f983f68))
10
+ * **iam:** add tests for ApiKeyRoleAssociation commands including create, list, and delete functionalities ([76597e4](https://github.com/flowcore-io/flowcore-sdk/commit/76597e45d3ed39bcb924e4ef7cf860d5a77114ce))
11
+ * **iam:** add tests for UserRoleAssociation commands and refactor ApiKeyRoleAssociation tests ([547a29b](https://github.com/flowcore-io/flowcore-sdk/commit/547a29bd66fc5bd57b5a0fc3202a9d45a2b9162b))
12
+ * **iam:** add various IAM commands for auditing, health checks, permissions, policies, and role associations ([78fbe53](https://github.com/flowcore-io/flowcore-sdk/commit/78fbe53ee3a664d21da6f31df40ed7d8562d792f))
13
+ * **tests:** add 'archived' property to role and user role associations in tests ([5531a02](https://github.com/flowcore-io/flowcore-sdk/commit/5531a0239524bce8a5b14f206e70065274be04cf))
14
+ * **tests:** add comprehensive tests for IAM audit, permissions, and policy commands ([f3891f9](https://github.com/flowcore-io/flowcore-sdk/commit/f3891f95ffca8c0c9d3674565360d05efec79432))
15
+ * **tests:** add getAllMocks method to FetchMockBuilder and streamline test setup in IAM command tests ([1ee15e3](https://github.com/flowcore-io/flowcore-sdk/commit/1ee15e38bc2c84e3dae65b043a03bd54207ae0dd))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * added missing slash on rest request ([5dec0a8](https://github.com/flowcore-io/flowcore-sdk/commit/5dec0a8ec01e47ef002d142b59b77f0100440cb5))
21
+ * **build:** :art: update build configuration with type checking and compiler options ([adb3a11](https://github.com/flowcore-io/flowcore-sdk/commit/adb3a118dbc1a0f375f9ad2b50abd32b23e6d67b))
22
+ * **iam:** enhance flowcoreManaged boolean conversion for role policies to ensure type safety ([ffcfde3](https://github.com/flowcore-io/flowcore-sdk/commit/ffcfde300f11ec9170651bc79c434f5fd42b52bf))
23
+ * **iam:** remove variable 'secret' from input in transformer classes ([0cda4f4](https://github.com/flowcore-io/flowcore-sdk/commit/0cda4f4c5bff04ca36c19302537a748d3c9df9aa))
24
+ * **iam:** throw error instead of returning empty array in parseKeyPoliciesResponse ([ba55989](https://github.com/flowcore-io/flowcore-sdk/commit/ba559899fd593f1f232c99e294a9112edccf9a3d))
25
+
3
26
  ## [1.49.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.48.0...v1.49.0) (2025-05-14)
4
27
 
5
28
 
package/README.md CHANGED
@@ -17,6 +17,7 @@ This is the Flowcore SDK, a TypeScript library for interacting with the Flowcore
17
17
  - [Event Type Operations](#event-type-operations)
18
18
  - [Scenario Operations](#scenario-operations)
19
19
  - [Notifications](#notifications)
20
+ - [Adapter Operations](#adapter-operations)
20
21
 
21
22
  ## Installation
22
23
 
@@ -1194,3 +1195,49 @@ You can narrow down your notification subscription by specifying:
1194
1195
  - **eventType**: Optional - Specific event type to monitor (requires flowType to be specified)
1195
1196
 
1196
1197
  > **Important**: The NotificationClient requires OIDC authentication. Make sure your OIDC client implements the required `getToken()` method that returns a Promise with an `accessToken`.
1198
+
1199
+ ### Adapter Operations
1200
+
1201
+ Adapter operations allow you to manage and reset adapters in your Flowcore environment.
1202
+
1203
+ > **Important**: Adapter operations require bearer token authentication and cannot be performed using API key authentication.
1204
+
1205
+ #### Reset an Adapter
1206
+
1207
+ Resets an adapter to a specific state, allowing you to restart processing from a particular time bucket or event.
1208
+
1209
+ ```typescript
1210
+ import { ResetAdapterCommand, FlowcoreClient } from "@flowcore/sdk"
1211
+
1212
+ const command = new ResetAdapterCommand({
1213
+ adapterId: "your-adapter-id",
1214
+ tenant: "your-tenant-name",
1215
+ timeBucket: "20240101000000", // Optional: Time bucket to reset from (format: YYYYMMDDhhiiss)
1216
+ eventId: "your-event-id", // Optional: Specific event ID to reset from
1217
+ reason: "Manual reset for testing" // Optional: Reason for the reset
1218
+ })
1219
+
1220
+ const result = await client.execute(command)
1221
+ // Returns:
1222
+ // {
1223
+ // success: boolean; // Whether the reset was successful
1224
+ // message: string; // A message describing the result
1225
+ // }
1226
+
1227
+ if (result.success) {
1228
+ console.log("Adapter reset successfully:", result.message)
1229
+ } else {
1230
+ console.error("Failed to reset adapter:", result.message)
1231
+ }
1232
+ ```
1233
+
1234
+ #### Reset Parameters
1235
+
1236
+ - **adapterId**: Required - The unique identifier of the adapter to reset
1237
+ - **tenant**: Required - The tenant name where the adapter is located
1238
+ - **timeBucket**: Optional - The time bucket to reset from in `YYYYMMDDhhiiss` format (e.g., `20240101000000`)
1239
+ - **eventId**: Optional - A specific event ID to reset from
1240
+ - **reason**: Optional - A descriptive reason for the reset operation
1241
+
1242
+ > **Note**: If both `timeBucket` and `eventId` are provided, the adapter will reset from the specified event within that time bucket.
1243
+ > **Important**: Resetting an adapter will cause it to reprocess events from the specified point, which may result in duplicate processing if not handled properly in your adapter logic.
@@ -2,7 +2,7 @@ import { Deno } from "@deno/shim-deno";
2
2
  export { Deno } from "@deno/shim-deno";
3
3
  import { default as WebSocket } from "ws";
4
4
  export { default as WebSocket } from "ws";
5
- export declare const dntGlobalThis: Omit<typeof globalThis, "Deno" | "WebSocket"> & {
5
+ export declare const dntGlobalThis: Omit<typeof globalThis, "WebSocket" | "Deno"> & {
6
6
  Deno: typeof Deno;
7
7
  WebSocket: typeof WebSocket;
8
8
  };
@@ -0,0 +1,52 @@
1
+ import { Command } from "@flowcore/sdk";
2
+ /**
3
+ * The input for the reset adapter command
4
+ */
5
+ export interface ResetAdapterInput {
6
+ /** The adapter ID to reset */
7
+ adapterId: string;
8
+ /** The tenant name */
9
+ tenant: string;
10
+ /** The time bucket to reset from (format: YYYYMMDDhhiiss) */
11
+ timeBucket?: string;
12
+ /** The event ID to reset from */
13
+ eventId?: string;
14
+ /** The reason for resetting the adapter */
15
+ reason?: string;
16
+ }
17
+ export interface ResetAdapterResponse {
18
+ /** Whether the reset was successful */
19
+ success: boolean;
20
+ /** A message describing the result */
21
+ message: string;
22
+ }
23
+ /**
24
+ * Reset an adapter
25
+ */
26
+ export declare class ResetAdapterCommand extends Command<ResetAdapterInput, ResetAdapterResponse> {
27
+ /**
28
+ * The dedicated subdomain for the command
29
+ */
30
+ protected dedicatedSubdomain: string;
31
+ /**
32
+ * Whether the command should retry on failure
33
+ */
34
+ protected retryOnFailure: boolean;
35
+ /**
36
+ * Get the method
37
+ */
38
+ protected getMethod(): string;
39
+ /**
40
+ * Get the base url
41
+ */
42
+ protected getBaseUrl(): string;
43
+ /**
44
+ * Get the path
45
+ */
46
+ protected getPath(): string;
47
+ /**
48
+ * Parse the response
49
+ */
50
+ protected parseResponse(rawResponse: unknown): ResetAdapterResponse;
51
+ }
52
+ //# sourceMappingURL=reset-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-adapter.d.ts","sourceRoot":"","sources":["../../../src/commands/adapter/reset-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAA;IAChB,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,oBAAoB,CAAC;IACvF;;OAEG;IACH,UAAmB,kBAAkB,SAAS;IAE9C;;OAEG;IACH,UAAmB,cAAc,UAAO;IAExC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,oBAAoB;CAG7E"}
@@ -0,0 +1,38 @@
1
+ import { Command } from "@flowcore/sdk";
2
+ /**
3
+ * Reset an adapter
4
+ */
5
+ export class ResetAdapterCommand extends Command {
6
+ /**
7
+ * The dedicated subdomain for the command
8
+ */
9
+ dedicatedSubdomain = "logs";
10
+ /**
11
+ * Whether the command should retry on failure
12
+ */
13
+ retryOnFailure = true;
14
+ /**
15
+ * Get the method
16
+ */
17
+ getMethod() {
18
+ return "POST";
19
+ }
20
+ /**
21
+ * Get the base url
22
+ */
23
+ getBaseUrl() {
24
+ return "https://logs.api.flowcore.io";
25
+ }
26
+ /**
27
+ * Get the path
28
+ */
29
+ getPath() {
30
+ return "/api/v1/pods/reset";
31
+ }
32
+ /**
33
+ * Parse the response
34
+ */
35
+ parseResponse(rawResponse) {
36
+ return rawResponse;
37
+ }
38
+ }
@@ -2,13 +2,8 @@
2
2
  * Command to stream conversation events for a specific agent.
3
3
  */
4
4
  export class ConversationStreamCommand {
5
+ config;
5
6
  constructor(config) {
6
- Object.defineProperty(this, "config", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: void 0
11
- });
12
7
  if (!config.conversationId) {
13
8
  throw new Error("conversationId is required in the config for ConversationStreamCommand");
14
9
  }
@@ -27,27 +27,14 @@ const responseSchema = Type.Object({
27
27
  * Create an API key
28
28
  */
29
29
  export class ApiKeyCreateCommand extends GraphQlCommand {
30
- constructor() {
31
- super(...arguments);
32
- /**
33
- * Whether the command should retry on failure
34
- */
35
- Object.defineProperty(this, "retryOnFailure", {
36
- enumerable: true,
37
- configurable: true,
38
- writable: true,
39
- value: false
40
- });
41
- /**
42
- * The allowed modes for the command
43
- */
44
- Object.defineProperty(this, "allowedModes", {
45
- enumerable: true,
46
- configurable: true,
47
- writable: true,
48
- value: ["bearer"]
49
- });
50
- }
30
+ /**
31
+ * Whether the command should retry on failure
32
+ */
33
+ retryOnFailure = false;
34
+ /**
35
+ * The allowed modes for the command
36
+ */
37
+ allowedModes = ["bearer"];
51
38
  /**
52
39
  * Parse the response
53
40
  */
@@ -23,18 +23,10 @@ const responseSchema = Type.Object({
23
23
  * Delete an API key
24
24
  */
25
25
  export class ApiKeyDeleteCommand extends GraphQlCommand {
26
- constructor() {
27
- super(...arguments);
28
- /**
29
- * The allowed modes for the command
30
- */
31
- Object.defineProperty(this, "allowedModes", {
32
- enumerable: true,
33
- configurable: true,
34
- writable: true,
35
- value: ["bearer"]
36
- });
37
- }
26
+ /**
27
+ * The allowed modes for the command
28
+ */
29
+ allowedModes = ["bearer"];
38
30
  /**
39
31
  * Parse the response
40
32
  */
@@ -27,18 +27,10 @@ const responseSchema = Type.Object({
27
27
  * List api keys
28
28
  */
29
29
  export class ApiKeyListCommand extends GraphQlCommand {
30
- constructor() {
31
- super(...arguments);
32
- /**
33
- * The allowed modes for the command
34
- */
35
- Object.defineProperty(this, "allowedModes", {
36
- enumerable: true,
37
- configurable: true,
38
- writable: true,
39
- value: ["bearer"]
40
- });
41
- }
30
+ /**
31
+ * The allowed modes for the command
32
+ */
33
+ allowedModes = ["bearer"];
42
34
  /**
43
35
  * Parse the response
44
36
  */
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
5
  * Create a data core
6
6
  */
7
7
  export class DataCoreCreateCommand extends Command {
8
- constructor() {
9
- super(...arguments);
10
- /**
11
- * Whether the command should retry on failure
12
- */
13
- Object.defineProperty(this, "retryOnFailure", {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value: false
18
- });
19
- }
8
+ /**
9
+ * Whether the command should retry on failure
10
+ */
11
+ retryOnFailure = false;
20
12
  /**
21
13
  * Get the method
22
14
  */
@@ -7,18 +7,10 @@ import { DataCoreExistsCommand } from "./data-core.exists.js";
7
7
  * Request to delete a data core
8
8
  */
9
9
  export class DataCoreRequestDeleteCommand extends Command {
10
- constructor() {
11
- super(...arguments);
12
- /**
13
- * The dedicated subdomain for the command
14
- */
15
- Object.defineProperty(this, "dedicatedSubdomain", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: "delete-manager"
20
- });
21
- }
10
+ /**
11
+ * The dedicated subdomain for the command
12
+ */
13
+ dedicatedSubdomain = "delete-manager";
22
14
  /**
23
15
  * Get the method
24
16
  */
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
5
  * Create an event type
6
6
  */
7
7
  export class EventTypeCreateCommand extends Command {
8
- constructor() {
9
- super(...arguments);
10
- /**
11
- * Whether the command should retry on failure
12
- */
13
- Object.defineProperty(this, "retryOnFailure", {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value: false
18
- });
19
- }
8
+ /**
9
+ * Whether the command should retry on failure
10
+ */
11
+ retryOnFailure = false;
20
12
  /**
21
13
  * Get the method
22
14
  */
@@ -7,18 +7,10 @@ import { EventTypeExistsCommand } from "./event-type.exists.js";
7
7
  * Request to delete an event type
8
8
  */
9
9
  export class EventTypeRequestDeleteCommand extends Command {
10
- constructor() {
11
- super(...arguments);
12
- /**
13
- * The dedicated subdomain for the command
14
- */
15
- Object.defineProperty(this, "dedicatedSubdomain", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: "delete-manager"
20
- });
21
- }
10
+ /**
11
+ * The dedicated subdomain for the command
12
+ */
13
+ dedicatedSubdomain = "delete-manager";
22
14
  /**
23
15
  * Get the method
24
16
  */
@@ -7,18 +7,10 @@ import { EventTypeFetchCommand } from "./event-type.fetch.js";
7
7
  * Request to truncate an event type
8
8
  */
9
9
  export class EventTypeRequestTruncateCommand extends Command {
10
- constructor() {
11
- super(...arguments);
12
- /**
13
- * The dedicated subdomain for the command
14
- */
15
- Object.defineProperty(this, "dedicatedSubdomain", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: "delete-manager"
20
- });
21
- }
10
+ /**
11
+ * The dedicated subdomain for the command
12
+ */
13
+ dedicatedSubdomain = "delete-manager";
22
14
  /**
23
15
  * Get the method
24
16
  */
@@ -13,18 +13,10 @@ const responseSchema = Type.Object({
13
13
  * Fetch time buckets for an event type
14
14
  */
15
15
  export class EventListCommand extends Command {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * The dedicated subdomain for the command
20
- */
21
- Object.defineProperty(this, "dedicatedSubdomain", {
22
- enumerable: true,
23
- configurable: true,
24
- writable: true,
25
- value: "event-source"
26
- });
27
- }
16
+ /**
17
+ * The dedicated subdomain for the command
18
+ */
19
+ dedicatedSubdomain = "event-source";
28
20
  /**
29
21
  * Get the method for the request
30
22
  */
@@ -12,18 +12,10 @@ const responseSchema = Type.Object({
12
12
  * Fetch time buckets for an event type
13
13
  */
14
14
  export class EventsFetchTimeBucketsByNamesCommand extends Command {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * The dedicated subdomain for the command
19
- */
20
- Object.defineProperty(this, "dedicatedSubdomain", {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value: "event-source"
25
- });
26
- }
15
+ /**
16
+ * The dedicated subdomain for the command
17
+ */
18
+ dedicatedSubdomain = "event-source";
27
19
  /**
28
20
  * Get the base url for the request
29
21
  */
@@ -13,18 +13,10 @@ const responseSchema = Type.Object({
13
13
  * Fetch time buckets for an event type
14
14
  */
15
15
  export class EventsFetchCommand extends Command {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * The dedicated subdomain for the command
20
- */
21
- Object.defineProperty(this, "dedicatedSubdomain", {
22
- enumerable: true,
23
- configurable: true,
24
- writable: true,
25
- value: "event-source"
26
- });
27
- }
16
+ /**
17
+ * The dedicated subdomain for the command
18
+ */
19
+ dedicatedSubdomain = "event-source";
28
20
  /**
29
21
  * Get the base url for the request
30
22
  */
@@ -12,18 +12,10 @@ const responseSchema = Type.Object({
12
12
  * Fetch time buckets for an event type
13
13
  */
14
14
  export class TimeBucketListCommand extends Command {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * The dedicated subdomain for the command
19
- */
20
- Object.defineProperty(this, "dedicatedSubdomain", {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value: "event-source"
25
- });
26
- }
15
+ /**
16
+ * The dedicated subdomain for the command
17
+ */
18
+ dedicatedSubdomain = "event-source";
27
19
  /**
28
20
  * Get the method for the request
29
21
  */
@@ -5,18 +5,10 @@ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
5
  * Create a flow type
6
6
  */
7
7
  export class FlowTypeCreateCommand extends Command {
8
- constructor() {
9
- super(...arguments);
10
- /**
11
- * Whether the command should retry on failure
12
- */
13
- Object.defineProperty(this, "retryOnFailure", {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value: false
18
- });
19
- }
8
+ /**
9
+ * Whether the command should retry on failure
10
+ */
11
+ retryOnFailure = false;
20
12
  /**
21
13
  * Get the method
22
14
  */
@@ -7,18 +7,10 @@ import { FlowTypeExistsCommand } from "./flow-type.exists.js";
7
7
  * Request to delete a flow type
8
8
  */
9
9
  export class FlowTypeRequestDeleteCommand extends Command {
10
- constructor() {
11
- super(...arguments);
12
- /**
13
- * The dedicated subdomain for the command
14
- */
15
- Object.defineProperty(this, "dedicatedSubdomain", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: "delete-manager"
20
- });
21
- }
10
+ /**
11
+ * The dedicated subdomain for the command
12
+ */
13
+ dedicatedSubdomain = "delete-manager";
22
14
  /**
23
15
  * Get the method
24
16
  */
@@ -3,6 +3,7 @@ export * from "./tenant/tenant.enable-sensitive-data.js";
3
3
  export * from "./tenant/tenant.fetch.js";
4
4
  export * from "./tenant/tenant.list.js";
5
5
  export * from "./tenant/tenant.translate-name-to-id.js";
6
+ export * from "./adapter/reset-adapter.js";
6
7
  export * from "./api-key/api-key.create.js";
7
8
  export * from "./api-key/api-key.delete.js";
8
9
  export * from "./api-key/api-key.list.js";
@@ -36,13 +37,6 @@ export * from "./event-type/event-type.request-truncate.js";
36
37
  export * from "./event-type/event-type.update.js";
37
38
  export * from "./ingestion/ingest.batch.js";
38
39
  export * from "./ingestion/ingest.event.js";
39
- export * from "./iam/api-key-role-association.create.js";
40
- export * from "./iam/api-key-role-association.delete.js";
41
- export * from "./iam/api-key-role-association.list.js";
42
- export * from "./iam/role.list.js";
43
- export * from "./iam/user-role-association.create.js";
44
- export * from "./iam/user-role-association.delete.js";
45
- export * from "./iam/user-role-association.list.js";
46
40
  export * from "./events/event.list.js";
47
41
  export * from "./events/events.fetch-time-buckets-by-names.js";
48
42
  export * from "./events/events.fetch.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAA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CAA6C,CAAA;AAC3D,cAAc,mCAAmC,CAAA;AAGjD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,wBAAwB,CAAA;AACtC,cAAc,gDAAgD,CAAA;AAC9D,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAG5C,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mDAAmD,CAAA;AAGjE,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA;AAG9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA"}
@@ -4,6 +4,8 @@ export * from "./tenant/tenant.enable-sensitive-data.js";
4
4
  export * from "./tenant/tenant.fetch.js";
5
5
  export * from "./tenant/tenant.list.js";
6
6
  export * from "./tenant/tenant.translate-name-to-id.js";
7
+ // Adapter
8
+ export * from "./adapter/reset-adapter.js";
7
9
  // Api Key
8
10
  export * from "./api-key/api-key.create.js";
9
11
  export * from "./api-key/api-key.delete.js";
@@ -44,14 +46,6 @@ export * from "./event-type/event-type.update.js";
44
46
  // Ingestion
45
47
  export * from "./ingestion/ingest.batch.js";
46
48
  export * from "./ingestion/ingest.event.js";
47
- // IAM
48
- export * from "./iam/api-key-role-association.create.js";
49
- export * from "./iam/api-key-role-association.delete.js";
50
- export * from "./iam/api-key-role-association.list.js";
51
- export * from "./iam/role.list.js";
52
- export * from "./iam/user-role-association.create.js";
53
- export * from "./iam/user-role-association.delete.js";
54
- export * from "./iam/user-role-association.list.js";
55
49
  // Events
56
50
  export * from "./events/event.list.js";
57
51
  export * from "./events/events.fetch-time-buckets-by-names.js";
@@ -12,24 +12,11 @@ const responseSchema = Type.Object({
12
12
  * Ingest a batch of events
13
13
  */
14
14
  export class IngestBatchCommand extends Command {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * The dedicated subdomain for the command
19
- */
20
- Object.defineProperty(this, "dedicatedSubdomain", {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value: "webhook"
25
- });
26
- Object.defineProperty(this, "allowedModes", {
27
- enumerable: true,
28
- configurable: true,
29
- writable: true,
30
- value: ["apiKey"]
31
- });
32
- }
15
+ /**
16
+ * The dedicated subdomain for the command
17
+ */
18
+ dedicatedSubdomain = "webhook";
19
+ allowedModes = ["apiKey"];
33
20
  getMethod() {
34
21
  return "POST";
35
22
  }