@meshery/schemas 1.3.78 → 1.3.79

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.
@@ -193,7 +193,7 @@ declare const injectedRtkApi: _reduxjs_toolkit_query.Api<_reduxjs_toolkit_query.
193
193
  updateEventStatus: _reduxjs_toolkit_query.MutationDefinition<UpdateEventStatusApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", UpdateEventStatusApiResponse, "cloudRtkSchemasApi", unknown>;
194
194
  getEventsOfWorkspace: _reduxjs_toolkit_query.QueryDefinition<GetEventsOfWorkspaceApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventsOfWorkspaceApiResponse, "cloudRtkSchemasApi", unknown>;
195
195
  getEventsAggregate: _reduxjs_toolkit_query.QueryDefinition<GetEventsAggregateApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventsAggregateApiResponse, "cloudRtkSchemasApi", unknown>;
196
- createEvent: _reduxjs_toolkit_query.MutationDefinition<CreateEventApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", unknown, "cloudRtkSchemasApi", unknown>;
196
+ createEvent: _reduxjs_toolkit_query.MutationDefinition<CreateEventApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", CreateEventApiResponse, "cloudRtkSchemasApi", unknown>;
197
197
  getEvents: _reduxjs_toolkit_query.QueryDefinition<GetEventsApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventsApiResponse, "cloudRtkSchemasApi", unknown>;
198
198
  getEventSummaryByUser: _reduxjs_toolkit_query.QueryDefinition<GetEventSummaryByUserApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventSummaryByUserApiResponse, "cloudRtkSchemasApi", unknown>;
199
199
  getEventTypes: _reduxjs_toolkit_query.QueryDefinition<GetEventTypesApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventTypesApiResponse, "cloudRtkSchemasApi", unknown>;
@@ -12801,7 +12801,78 @@ type GetEventsAggregateApiArg = {
12801
12801
  /** When true, return cumulative aggregate counts across all time. */
12802
12802
  cumulative?: boolean;
12803
12803
  };
12804
- type CreateEventApiResponse = unknown;
12804
+ type CreateEventApiResponse =
12805
+ /** status 200 An event with this `idempotencyKey` was already recorded by the same caller; it is returned unchanged and no new event is recorded.
12806
+ */
12807
+ {
12808
+ /** Event ID. */
12809
+ id: string;
12810
+ /** ID of the entity on which the event was performed. */
12811
+ actedUpon: string;
12812
+ /** Action taken on the resource, for example `import`. */
12813
+ action: string;
12814
+ /** Resource kind the operation was invoked on, for example `pattern`. */
12815
+ category: string;
12816
+ /** Human-readable summary of what happened. */
12817
+ description: string;
12818
+ /** Event-specific details; the structure varies by event kind. `null` when the producer attached none.
12819
+ */
12820
+ metadata: {
12821
+ [key: string]: any;
12822
+ } | null;
12823
+ /** ID correlating the events one operation emitted. */
12824
+ operationId: string;
12825
+ /** Event level. MeshKit's producers set one of `emergency`, `alert`, `critical`, `error`, `warning`, `informational`, `debug` or `success`. The set is not closed on the wire - the event write APIs persist the value they are given - so consumers must tolerate other values.
12826
+ */
12827
+ severity: string;
12828
+ /** Read state of the event. MeshKit records new events as `unread`, and acknowledged ones become `read`; the event status APIs persist any value they are given, so consumers must tolerate other values.
12829
+ */
12830
+ status: string;
12831
+ /** ID of the system instance that emitted the event. */
12832
+ systemId: string;
12833
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
12834
+ owner?: string;
12835
+ /** Timestamp when the event was recorded. */
12836
+ createdAt: string;
12837
+ /** Timestamp when the event was last updated. */
12838
+ updatedAt: string;
12839
+ /** Timestamp when the event was soft-deleted; omitted when it was not. */
12840
+ deletedAt?: string | null;
12841
+ } | /** status 201 Event created */ {
12842
+ /** Event ID. */
12843
+ id: string;
12844
+ /** ID of the entity on which the event was performed. */
12845
+ actedUpon: string;
12846
+ /** Action taken on the resource, for example `import`. */
12847
+ action: string;
12848
+ /** Resource kind the operation was invoked on, for example `pattern`. */
12849
+ category: string;
12850
+ /** Human-readable summary of what happened. */
12851
+ description: string;
12852
+ /** Event-specific details; the structure varies by event kind. `null` when the producer attached none.
12853
+ */
12854
+ metadata: {
12855
+ [key: string]: any;
12856
+ } | null;
12857
+ /** ID correlating the events one operation emitted. */
12858
+ operationId: string;
12859
+ /** Event level. MeshKit's producers set one of `emergency`, `alert`, `critical`, `error`, `warning`, `informational`, `debug` or `success`. The set is not closed on the wire - the event write APIs persist the value they are given - so consumers must tolerate other values.
12860
+ */
12861
+ severity: string;
12862
+ /** Read state of the event. MeshKit records new events as `unread`, and acknowledged ones become `read`; the event status APIs persist any value they are given, so consumers must tolerate other values.
12863
+ */
12864
+ status: string;
12865
+ /** ID of the system instance that emitted the event. */
12866
+ systemId: string;
12867
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
12868
+ owner?: string;
12869
+ /** Timestamp when the event was recorded. */
12870
+ createdAt: string;
12871
+ /** Timestamp when the event was last updated. */
12872
+ updatedAt: string;
12873
+ /** Timestamp when the event was soft-deleted; omitted when it was not. */
12874
+ deletedAt?: string | null;
12875
+ };
12805
12876
  type CreateEventApiArg = {
12806
12877
  body: {
12807
12878
  /** UUID of the user associated with the event. */
@@ -12812,6 +12883,9 @@ type CreateEventApiArg = {
12812
12883
  action?: string;
12813
12884
  /** Description of the event. */
12814
12885
  description?: string;
12886
+ /** Optional client-chosen key that makes recording this event safe to retry. Keys are scoped to the authenticated caller (organization and user), never to the client-settable `owner` field, so `owner` may be omitted without affecting deduplication. The first event a caller records with a key is kept, and a later create with the same key records nothing and answers 200 with that event, whatever the rest of the payload says. Use a value that names the occurrence, for example a run id, so a client replaying a local queue after a timeout never records a duplicate. Omit it for events that need no deduplication.
12887
+ */
12888
+ idempotencyKey?: string;
12815
12889
  [key: string]: any;
12816
12890
  };
12817
12891
  };
@@ -64243,14 +64317,14 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64243
64317
  status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
64244
64318
  } & Omit<{
64245
64319
  requestId: string;
64246
- data?: unknown;
64320
+ data?: CreateEventApiResponse | undefined;
64247
64321
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64248
64322
  endpointName: string;
64249
64323
  startedTimeStamp: number;
64250
64324
  fulfilledTimeStamp?: number;
64251
64325
  }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
64252
64326
  requestId: string;
64253
- data?: unknown;
64327
+ data?: CreateEventApiResponse | undefined;
64254
64328
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64255
64329
  endpointName: string;
64256
64330
  startedTimeStamp: number;
@@ -64267,7 +64341,7 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64267
64341
  status: _reduxjs_toolkit_query.QueryStatus.pending;
64268
64342
  } & {
64269
64343
  requestId: string;
64270
- data?: unknown;
64344
+ data?: CreateEventApiResponse | undefined;
64271
64345
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64272
64346
  endpointName: string;
64273
64347
  startedTimeStamp: number;
@@ -64284,14 +64358,14 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64284
64358
  status: _reduxjs_toolkit_query.QueryStatus.rejected;
64285
64359
  } & Omit<{
64286
64360
  requestId: string;
64287
- data?: unknown;
64361
+ data?: CreateEventApiResponse | undefined;
64288
64362
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64289
64363
  endpointName: string;
64290
64364
  startedTimeStamp: number;
64291
64365
  fulfilledTimeStamp?: number;
64292
64366
  }, "error"> & Required<Pick<{
64293
64367
  requestId: string;
64294
- data?: unknown;
64368
+ data?: CreateEventApiResponse | undefined;
64295
64369
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64296
64370
  endpointName: string;
64297
64371
  startedTimeStamp: number;
@@ -64321,14 +64395,14 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64321
64395
  status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
64322
64396
  } & Omit<{
64323
64397
  requestId: string;
64324
- data?: unknown;
64398
+ data?: CreateEventApiResponse | undefined;
64325
64399
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64326
64400
  endpointName: string;
64327
64401
  startedTimeStamp: number;
64328
64402
  fulfilledTimeStamp?: number;
64329
64403
  }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
64330
64404
  requestId: string;
64331
- data?: unknown;
64405
+ data?: CreateEventApiResponse | undefined;
64332
64406
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64333
64407
  endpointName: string;
64334
64408
  startedTimeStamp: number;
@@ -64345,7 +64419,7 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64345
64419
  status: _reduxjs_toolkit_query.QueryStatus.pending;
64346
64420
  } & {
64347
64421
  requestId: string;
64348
- data?: unknown;
64422
+ data?: CreateEventApiResponse | undefined;
64349
64423
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64350
64424
  endpointName: string;
64351
64425
  startedTimeStamp: number;
@@ -64362,14 +64436,14 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64362
64436
  status: _reduxjs_toolkit_query.QueryStatus.rejected;
64363
64437
  } & Omit<{
64364
64438
  requestId: string;
64365
- data?: unknown;
64439
+ data?: CreateEventApiResponse | undefined;
64366
64440
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64367
64441
  endpointName: string;
64368
64442
  startedTimeStamp: number;
64369
64443
  fulfilledTimeStamp?: number;
64370
64444
  }, "error"> & Required<Pick<{
64371
64445
  requestId: string;
64372
- data?: unknown;
64446
+ data?: CreateEventApiResponse | undefined;
64373
64447
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64374
64448
  endpointName: string;
64375
64449
  startedTimeStamp: number;
@@ -64382,7 +64456,7 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64382
64456
  isError: true;
64383
64457
  })) => R) | undefined;
64384
64458
  fixedCacheKey?: string;
64385
- } | undefined) => readonly [(arg: CreateEventApiArg) => _reduxjs_toolkit_query.MutationActionCreatorResult<_reduxjs_toolkit_query.MutationDefinition<CreateEventApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", unknown, "cloudRtkSchemasApi", unknown>>, _reduxjs_toolkit_query.TSHelpersNoInfer<R> & {
64459
+ } | undefined) => readonly [(arg: CreateEventApiArg) => _reduxjs_toolkit_query.MutationActionCreatorResult<_reduxjs_toolkit_query.MutationDefinition<CreateEventApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", CreateEventApiResponse, "cloudRtkSchemasApi", unknown>>, _reduxjs_toolkit_query.TSHelpersNoInfer<R> & {
64386
64460
  originalArgs?: CreateEventApiArg | undefined;
64387
64461
  reset: () => void;
64388
64462
  }];
@@ -193,7 +193,7 @@ declare const injectedRtkApi: _reduxjs_toolkit_query.Api<_reduxjs_toolkit_query.
193
193
  updateEventStatus: _reduxjs_toolkit_query.MutationDefinition<UpdateEventStatusApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", UpdateEventStatusApiResponse, "cloudRtkSchemasApi", unknown>;
194
194
  getEventsOfWorkspace: _reduxjs_toolkit_query.QueryDefinition<GetEventsOfWorkspaceApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventsOfWorkspaceApiResponse, "cloudRtkSchemasApi", unknown>;
195
195
  getEventsAggregate: _reduxjs_toolkit_query.QueryDefinition<GetEventsAggregateApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventsAggregateApiResponse, "cloudRtkSchemasApi", unknown>;
196
- createEvent: _reduxjs_toolkit_query.MutationDefinition<CreateEventApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", unknown, "cloudRtkSchemasApi", unknown>;
196
+ createEvent: _reduxjs_toolkit_query.MutationDefinition<CreateEventApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", CreateEventApiResponse, "cloudRtkSchemasApi", unknown>;
197
197
  getEvents: _reduxjs_toolkit_query.QueryDefinition<GetEventsApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventsApiResponse, "cloudRtkSchemasApi", unknown>;
198
198
  getEventSummaryByUser: _reduxjs_toolkit_query.QueryDefinition<GetEventSummaryByUserApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventSummaryByUserApiResponse, "cloudRtkSchemasApi", unknown>;
199
199
  getEventTypes: _reduxjs_toolkit_query.QueryDefinition<GetEventTypesApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", GetEventTypesApiResponse, "cloudRtkSchemasApi", unknown>;
@@ -12801,7 +12801,78 @@ type GetEventsAggregateApiArg = {
12801
12801
  /** When true, return cumulative aggregate counts across all time. */
12802
12802
  cumulative?: boolean;
12803
12803
  };
12804
- type CreateEventApiResponse = unknown;
12804
+ type CreateEventApiResponse =
12805
+ /** status 200 An event with this `idempotencyKey` was already recorded by the same caller; it is returned unchanged and no new event is recorded.
12806
+ */
12807
+ {
12808
+ /** Event ID. */
12809
+ id: string;
12810
+ /** ID of the entity on which the event was performed. */
12811
+ actedUpon: string;
12812
+ /** Action taken on the resource, for example `import`. */
12813
+ action: string;
12814
+ /** Resource kind the operation was invoked on, for example `pattern`. */
12815
+ category: string;
12816
+ /** Human-readable summary of what happened. */
12817
+ description: string;
12818
+ /** Event-specific details; the structure varies by event kind. `null` when the producer attached none.
12819
+ */
12820
+ metadata: {
12821
+ [key: string]: any;
12822
+ } | null;
12823
+ /** ID correlating the events one operation emitted. */
12824
+ operationId: string;
12825
+ /** Event level. MeshKit's producers set one of `emergency`, `alert`, `critical`, `error`, `warning`, `informational`, `debug` or `success`. The set is not closed on the wire - the event write APIs persist the value they are given - so consumers must tolerate other values.
12826
+ */
12827
+ severity: string;
12828
+ /** Read state of the event. MeshKit records new events as `unread`, and acknowledged ones become `read`; the event status APIs persist any value they are given, so consumers must tolerate other values.
12829
+ */
12830
+ status: string;
12831
+ /** ID of the system instance that emitted the event. */
12832
+ systemId: string;
12833
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
12834
+ owner?: string;
12835
+ /** Timestamp when the event was recorded. */
12836
+ createdAt: string;
12837
+ /** Timestamp when the event was last updated. */
12838
+ updatedAt: string;
12839
+ /** Timestamp when the event was soft-deleted; omitted when it was not. */
12840
+ deletedAt?: string | null;
12841
+ } | /** status 201 Event created */ {
12842
+ /** Event ID. */
12843
+ id: string;
12844
+ /** ID of the entity on which the event was performed. */
12845
+ actedUpon: string;
12846
+ /** Action taken on the resource, for example `import`. */
12847
+ action: string;
12848
+ /** Resource kind the operation was invoked on, for example `pattern`. */
12849
+ category: string;
12850
+ /** Human-readable summary of what happened. */
12851
+ description: string;
12852
+ /** Event-specific details; the structure varies by event kind. `null` when the producer attached none.
12853
+ */
12854
+ metadata: {
12855
+ [key: string]: any;
12856
+ } | null;
12857
+ /** ID correlating the events one operation emitted. */
12858
+ operationId: string;
12859
+ /** Event level. MeshKit's producers set one of `emergency`, `alert`, `critical`, `error`, `warning`, `informational`, `debug` or `success`. The set is not closed on the wire - the event write APIs persist the value they are given - so consumers must tolerate other values.
12860
+ */
12861
+ severity: string;
12862
+ /** Read state of the event. MeshKit records new events as `unread`, and acknowledged ones become `read`; the event status APIs persist any value they are given, so consumers must tolerate other values.
12863
+ */
12864
+ status: string;
12865
+ /** ID of the system instance that emitted the event. */
12866
+ systemId: string;
12867
+ /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
12868
+ owner?: string;
12869
+ /** Timestamp when the event was recorded. */
12870
+ createdAt: string;
12871
+ /** Timestamp when the event was last updated. */
12872
+ updatedAt: string;
12873
+ /** Timestamp when the event was soft-deleted; omitted when it was not. */
12874
+ deletedAt?: string | null;
12875
+ };
12805
12876
  type CreateEventApiArg = {
12806
12877
  body: {
12807
12878
  /** UUID of the user associated with the event. */
@@ -12812,6 +12883,9 @@ type CreateEventApiArg = {
12812
12883
  action?: string;
12813
12884
  /** Description of the event. */
12814
12885
  description?: string;
12886
+ /** Optional client-chosen key that makes recording this event safe to retry. Keys are scoped to the authenticated caller (organization and user), never to the client-settable `owner` field, so `owner` may be omitted without affecting deduplication. The first event a caller records with a key is kept, and a later create with the same key records nothing and answers 200 with that event, whatever the rest of the payload says. Use a value that names the occurrence, for example a run id, so a client replaying a local queue after a timeout never records a duplicate. Omit it for events that need no deduplication.
12887
+ */
12888
+ idempotencyKey?: string;
12815
12889
  [key: string]: any;
12816
12890
  };
12817
12891
  };
@@ -64243,14 +64317,14 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64243
64317
  status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
64244
64318
  } & Omit<{
64245
64319
  requestId: string;
64246
- data?: unknown;
64320
+ data?: CreateEventApiResponse | undefined;
64247
64321
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64248
64322
  endpointName: string;
64249
64323
  startedTimeStamp: number;
64250
64324
  fulfilledTimeStamp?: number;
64251
64325
  }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
64252
64326
  requestId: string;
64253
- data?: unknown;
64327
+ data?: CreateEventApiResponse | undefined;
64254
64328
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64255
64329
  endpointName: string;
64256
64330
  startedTimeStamp: number;
@@ -64267,7 +64341,7 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64267
64341
  status: _reduxjs_toolkit_query.QueryStatus.pending;
64268
64342
  } & {
64269
64343
  requestId: string;
64270
- data?: unknown;
64344
+ data?: CreateEventApiResponse | undefined;
64271
64345
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64272
64346
  endpointName: string;
64273
64347
  startedTimeStamp: number;
@@ -64284,14 +64358,14 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64284
64358
  status: _reduxjs_toolkit_query.QueryStatus.rejected;
64285
64359
  } & Omit<{
64286
64360
  requestId: string;
64287
- data?: unknown;
64361
+ data?: CreateEventApiResponse | undefined;
64288
64362
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64289
64363
  endpointName: string;
64290
64364
  startedTimeStamp: number;
64291
64365
  fulfilledTimeStamp?: number;
64292
64366
  }, "error"> & Required<Pick<{
64293
64367
  requestId: string;
64294
- data?: unknown;
64368
+ data?: CreateEventApiResponse | undefined;
64295
64369
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64296
64370
  endpointName: string;
64297
64371
  startedTimeStamp: number;
@@ -64321,14 +64395,14 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64321
64395
  status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
64322
64396
  } & Omit<{
64323
64397
  requestId: string;
64324
- data?: unknown;
64398
+ data?: CreateEventApiResponse | undefined;
64325
64399
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64326
64400
  endpointName: string;
64327
64401
  startedTimeStamp: number;
64328
64402
  fulfilledTimeStamp?: number;
64329
64403
  }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
64330
64404
  requestId: string;
64331
- data?: unknown;
64405
+ data?: CreateEventApiResponse | undefined;
64332
64406
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64333
64407
  endpointName: string;
64334
64408
  startedTimeStamp: number;
@@ -64345,7 +64419,7 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64345
64419
  status: _reduxjs_toolkit_query.QueryStatus.pending;
64346
64420
  } & {
64347
64421
  requestId: string;
64348
- data?: unknown;
64422
+ data?: CreateEventApiResponse | undefined;
64349
64423
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64350
64424
  endpointName: string;
64351
64425
  startedTimeStamp: number;
@@ -64362,14 +64436,14 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64362
64436
  status: _reduxjs_toolkit_query.QueryStatus.rejected;
64363
64437
  } & Omit<{
64364
64438
  requestId: string;
64365
- data?: unknown;
64439
+ data?: CreateEventApiResponse | undefined;
64366
64440
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64367
64441
  endpointName: string;
64368
64442
  startedTimeStamp: number;
64369
64443
  fulfilledTimeStamp?: number;
64370
64444
  }, "error"> & Required<Pick<{
64371
64445
  requestId: string;
64372
- data?: unknown;
64446
+ data?: CreateEventApiResponse | undefined;
64373
64447
  error?: MeshkitFetchBaseQueryError | _reduxjs_toolkit.SerializedError | undefined;
64374
64448
  endpointName: string;
64375
64449
  startedTimeStamp: number;
@@ -64382,7 +64456,7 @@ declare const useCreateEventMutation: <R extends Record<string, any> = ({
64382
64456
  isError: true;
64383
64457
  })) => R) | undefined;
64384
64458
  fixedCacheKey?: string;
64385
- } | undefined) => readonly [(arg: CreateEventApiArg) => _reduxjs_toolkit_query.MutationActionCreatorResult<_reduxjs_toolkit_query.MutationDefinition<CreateEventApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", unknown, "cloudRtkSchemasApi", unknown>>, _reduxjs_toolkit_query.TSHelpersNoInfer<R> & {
64459
+ } | undefined) => readonly [(arg: CreateEventApiArg) => _reduxjs_toolkit_query.MutationActionCreatorResult<_reduxjs_toolkit_query.MutationDefinition<CreateEventApiArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Feature_Features" | "Organization_SMTP_Configuration_OrganizationSmtp" | "Support_Support" | "System_API_System" | "Badge_Badge" | "credential_credentials" | "Key_users" | "Key_Key" | "Keychain_Keychain" | "Model_Models" | "Organization_Organizations" | "Team_teams" | "role_roles" | "schedule_scheduler" | "User_users" | "View_views" | "Academy_API_Academy" | "BlowhornBinding_blowhornBindings" | "BlowhornHealth_blowhornHealth" | "BlowhornLedger_blowhornLedger" | "BlowhornProfile_blowhornProfiles" | "Claim_claims" | "Connection_API_Connections" | "Connection_API_ConnectionDefinitions" | "ContentPiece_contentPieces" | "Design_designs" | "Design_github" | "Environment_environments" | "Events_events" | "Filter_filters" | "GitHub_github" | "Invitation_Invitation" | "PatternResource_patternResources" | "Performance_Profile_performance" | "Plan_Plans" | "Schedule_schedules" | "Subscription_Subscriptions" | "Subscription_Payment Processors" | "token_tokens" | "Workspace_workspaces" | "Workspace_designs" | "Workspace_views", CreateEventApiResponse, "cloudRtkSchemasApi", unknown>>, _reduxjs_toolkit_query.TSHelpersNoInfer<R> & {
64386
64460
  originalArgs?: CreateEventApiArg | undefined;
64387
64461
  reset: () => void;
64388
64462
  }];
@@ -102,7 +102,10 @@ export interface paths {
102
102
  /** Get events aggregate summary */
103
103
  get: operations["getEventsAggregate"];
104
104
  put?: never;
105
- /** Create a new event */
105
+ /**
106
+ * Create a new event
107
+ * @description Records an event and answers 201 with it. When the payload carries an `idempotencyKey` the authenticated caller already used, nothing new is recorded and the answer is 200 with the event first recorded under that key.
108
+ */
106
109
  post: operations["createEvent"];
107
110
  delete?: never;
108
111
  options?: never;
@@ -178,6 +181,8 @@ export interface components {
178
181
  action?: string;
179
182
  /** @description Description of the event. */
180
183
  description?: string;
184
+ /** @description Optional client-chosen key that makes recording this event safe to retry. Keys are scoped to the authenticated caller (organization and user), never to the client-settable `owner` field, so `owner` may be omitted without affecting deduplication. The first event a caller records with a key is kept, and a later create with the same key records nothing and answers 200 with that event, whatever the rest of the payload says. Use a value that names the occurrence, for example a run id, so a client replaying a local queue after a timeout never records a duplicate. Omit it for events that need no deduplication. */
185
+ idempotencyKey?: string;
181
186
  } & {
182
187
  [key: string]: unknown;
183
188
  };
@@ -946,18 +951,141 @@ export interface operations {
946
951
  action?: string;
947
952
  /** @description Description of the event. */
948
953
  description?: string;
954
+ /** @description Optional client-chosen key that makes recording this event safe to retry. Keys are scoped to the authenticated caller (organization and user), never to the client-settable `owner` field, so `owner` may be omitted without affecting deduplication. The first event a caller records with a key is kept, and a later create with the same key records nothing and answers 200 with that event, whatever the rest of the payload says. Use a value that names the occurrence, for example a run id, so a client replaying a local queue after a timeout never records a duplicate. Omit it for events that need no deduplication. */
955
+ idempotencyKey?: string;
949
956
  } & {
950
957
  [key: string]: unknown;
951
958
  };
952
959
  };
953
960
  };
954
961
  responses: {
962
+ /** @description An event with this `idempotencyKey` was already recorded by the same caller; it is returned unchanged and no new event is recorded. */
963
+ 200: {
964
+ headers: {
965
+ [name: string]: unknown;
966
+ };
967
+ content: {
968
+ "application/json": {
969
+ /**
970
+ * Format: uuid
971
+ * @description Event ID.
972
+ */
973
+ id: string;
974
+ /**
975
+ * Format: uuid
976
+ * @description ID of the entity on which the event was performed.
977
+ */
978
+ actedUpon: string;
979
+ /** @description Action taken on the resource, for example `import`. */
980
+ action: string;
981
+ /** @description Resource kind the operation was invoked on, for example `pattern`. */
982
+ category: string;
983
+ /** @description Human-readable summary of what happened. */
984
+ description: string;
985
+ /** @description Event-specific details; the structure varies by event kind. `null` when the producer attached none. */
986
+ metadata: {
987
+ [key: string]: unknown;
988
+ } | null;
989
+ /**
990
+ * Format: uuid
991
+ * @description ID correlating the events one operation emitted.
992
+ */
993
+ operationId: string;
994
+ /** @description Event level. MeshKit's producers set one of `emergency`, `alert`, `critical`, `error`, `warning`, `informational`, `debug` or `success`. The set is not closed on the wire - the event write APIs persist the value they are given - so consumers must tolerate other values. */
995
+ severity: string;
996
+ /** @description Read state of the event. MeshKit records new events as `unread`, and acknowledged ones become `read`; the event status APIs persist any value they are given, so consumers must tolerate other values. */
997
+ status: string;
998
+ /**
999
+ * Format: uuid
1000
+ * @description ID of the system instance that emitted the event.
1001
+ */
1002
+ systemId: string;
1003
+ /**
1004
+ * Format: uuid
1005
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1006
+ */
1007
+ owner?: string;
1008
+ /**
1009
+ * Format: date-time
1010
+ * @description Timestamp when the event was recorded.
1011
+ */
1012
+ createdAt: string;
1013
+ /**
1014
+ * Format: date-time
1015
+ * @description Timestamp when the event was last updated.
1016
+ */
1017
+ updatedAt: string;
1018
+ /**
1019
+ * Format: date-time
1020
+ * @description Timestamp when the event was soft-deleted; omitted when it was not.
1021
+ */
1022
+ deletedAt?: string | null;
1023
+ };
1024
+ };
1025
+ };
955
1026
  /** @description Event created */
956
1027
  201: {
957
1028
  headers: {
958
1029
  [name: string]: unknown;
959
1030
  };
960
- content?: never;
1031
+ content: {
1032
+ "application/json": {
1033
+ /**
1034
+ * Format: uuid
1035
+ * @description Event ID.
1036
+ */
1037
+ id: string;
1038
+ /**
1039
+ * Format: uuid
1040
+ * @description ID of the entity on which the event was performed.
1041
+ */
1042
+ actedUpon: string;
1043
+ /** @description Action taken on the resource, for example `import`. */
1044
+ action: string;
1045
+ /** @description Resource kind the operation was invoked on, for example `pattern`. */
1046
+ category: string;
1047
+ /** @description Human-readable summary of what happened. */
1048
+ description: string;
1049
+ /** @description Event-specific details; the structure varies by event kind. `null` when the producer attached none. */
1050
+ metadata: {
1051
+ [key: string]: unknown;
1052
+ } | null;
1053
+ /**
1054
+ * Format: uuid
1055
+ * @description ID correlating the events one operation emitted.
1056
+ */
1057
+ operationId: string;
1058
+ /** @description Event level. MeshKit's producers set one of `emergency`, `alert`, `critical`, `error`, `warning`, `informational`, `debug` or `success`. The set is not closed on the wire - the event write APIs persist the value they are given - so consumers must tolerate other values. */
1059
+ severity: string;
1060
+ /** @description Read state of the event. MeshKit records new events as `unread`, and acknowledged ones become `read`; the event status APIs persist any value they are given, so consumers must tolerate other values. */
1061
+ status: string;
1062
+ /**
1063
+ * Format: uuid
1064
+ * @description ID of the system instance that emitted the event.
1065
+ */
1066
+ systemId: string;
1067
+ /**
1068
+ * Format: uuid
1069
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
1070
+ */
1071
+ owner?: string;
1072
+ /**
1073
+ * Format: date-time
1074
+ * @description Timestamp when the event was recorded.
1075
+ */
1076
+ createdAt: string;
1077
+ /**
1078
+ * Format: date-time
1079
+ * @description Timestamp when the event was last updated.
1080
+ */
1081
+ updatedAt: string;
1082
+ /**
1083
+ * Format: date-time
1084
+ * @description Timestamp when the event was soft-deleted; omitted when it was not.
1085
+ */
1086
+ deletedAt?: string | null;
1087
+ };
1088
+ };
961
1089
  };
962
1090
  /** @description Invalid request body or request param */
963
1091
  400: {