@meshery/schemas 1.3.60 → 1.3.62

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 (82) hide show
  1. package/README.md +9 -1
  2. package/dist/cloudApi.d.mts +19666 -6714
  3. package/dist/cloudApi.d.ts +19666 -6714
  4. package/dist/cloudApi.js +1 -1
  5. package/dist/cloudApi.mjs +1 -1
  6. package/dist/constructs/v1beta1/organization_smtp/OrganizationSmtp.d.ts +2 -2
  7. package/dist/constructs/v1beta1/organization_smtp/OrganizationSmtpSchema.js +1 -1
  8. package/dist/constructs/v1beta1/organization_smtp/OrganizationSmtpSchema.mjs +1 -1
  9. package/dist/constructs/v1beta1/registry/Registry.d.ts +6 -6
  10. package/dist/constructs/v1beta1/registry/RegistrySchema.js +3 -3
  11. package/dist/constructs/v1beta1/registry/RegistrySchema.mjs +3 -3
  12. package/dist/constructs/v1beta3/academy/Academy.d.ts +18 -0
  13. package/dist/constructs/v1beta3/academy/AcademySchema.js +2 -2
  14. package/dist/constructs/v1beta3/academy/AcademySchema.mjs +2 -2
  15. package/dist/constructs/v1beta3/blowhorn_binding/BlowhornBinding.d.ts +462 -0
  16. package/dist/constructs/v1beta3/blowhorn_binding/BlowhornBinding.js +1 -0
  17. package/dist/constructs/v1beta3/blowhorn_binding/BlowhornBinding.mjs +0 -0
  18. package/dist/constructs/v1beta3/blowhorn_binding/BlowhornBindingSchema.d.ts +2 -0
  19. package/dist/constructs/v1beta3/blowhorn_binding/BlowhornBindingSchema.js +23 -0
  20. package/dist/constructs/v1beta3/blowhorn_binding/BlowhornBindingSchema.mjs +23 -0
  21. package/dist/constructs/v1beta3/blowhorn_content/BlowhornContent.d.ts +719 -0
  22. package/dist/constructs/v1beta3/blowhorn_content/BlowhornContent.js +1 -0
  23. package/dist/constructs/v1beta3/blowhorn_content/BlowhornContent.mjs +0 -0
  24. package/dist/constructs/v1beta3/blowhorn_content/BlowhornContentSchema.d.ts +2 -0
  25. package/dist/constructs/v1beta3/blowhorn_content/BlowhornContentSchema.js +43 -0
  26. package/dist/constructs/v1beta3/blowhorn_content/BlowhornContentSchema.mjs +43 -0
  27. package/dist/constructs/v1beta3/blowhorn_destination/BlowhornDestination.d.ts +516 -0
  28. package/dist/constructs/v1beta3/blowhorn_destination/BlowhornDestination.js +1 -0
  29. package/dist/constructs/v1beta3/blowhorn_destination/BlowhornDestination.mjs +0 -0
  30. package/dist/constructs/v1beta3/blowhorn_destination/BlowhornDestinationSchema.d.ts +2 -0
  31. package/dist/constructs/v1beta3/blowhorn_destination/BlowhornDestinationSchema.js +23 -0
  32. package/dist/constructs/v1beta3/blowhorn_destination/BlowhornDestinationSchema.mjs +23 -0
  33. package/dist/constructs/v1beta3/blowhorn_health/BlowhornHealth.d.ts +131 -0
  34. package/dist/constructs/v1beta3/blowhorn_health/BlowhornHealth.js +1 -0
  35. package/dist/constructs/v1beta3/blowhorn_health/BlowhornHealth.mjs +0 -0
  36. package/dist/constructs/v1beta3/blowhorn_health/BlowhornHealthSchema.d.ts +2 -0
  37. package/dist/constructs/v1beta3/blowhorn_health/BlowhornHealthSchema.js +7 -0
  38. package/dist/constructs/v1beta3/blowhorn_health/BlowhornHealthSchema.mjs +7 -0
  39. package/dist/constructs/v1beta3/blowhorn_ledger/BlowhornLedger.d.ts +1546 -0
  40. package/dist/constructs/v1beta3/blowhorn_ledger/BlowhornLedger.js +1 -0
  41. package/dist/constructs/v1beta3/blowhorn_ledger/BlowhornLedger.mjs +0 -0
  42. package/dist/constructs/v1beta3/blowhorn_ledger/BlowhornLedgerSchema.d.ts +2 -0
  43. package/dist/constructs/v1beta3/blowhorn_ledger/BlowhornLedgerSchema.js +69 -0
  44. package/dist/constructs/v1beta3/blowhorn_ledger/BlowhornLedgerSchema.mjs +69 -0
  45. package/dist/constructs/v1beta3/blowhorn_profile/BlowhornProfile.d.ts +776 -0
  46. package/dist/constructs/v1beta3/blowhorn_profile/BlowhornProfile.js +1 -0
  47. package/dist/constructs/v1beta3/blowhorn_profile/BlowhornProfile.mjs +0 -0
  48. package/dist/constructs/v1beta3/blowhorn_profile/BlowhornProfileSchema.d.ts +2 -0
  49. package/dist/constructs/v1beta3/blowhorn_profile/BlowhornProfileSchema.js +45 -0
  50. package/dist/constructs/v1beta3/blowhorn_profile/BlowhornProfileSchema.mjs +45 -0
  51. package/dist/constructs/v1beta3/blowhorn_run/BlowhornRun.d.ts +784 -0
  52. package/dist/constructs/v1beta3/blowhorn_run/BlowhornRun.js +1 -0
  53. package/dist/constructs/v1beta3/blowhorn_run/BlowhornRun.mjs +0 -0
  54. package/dist/constructs/v1beta3/blowhorn_run/BlowhornRunSchema.d.ts +2 -0
  55. package/dist/constructs/v1beta3/blowhorn_run/BlowhornRunSchema.js +51 -0
  56. package/dist/constructs/v1beta3/blowhorn_run/BlowhornRunSchema.mjs +51 -0
  57. package/dist/constructs/v1beta3/connection/Connection.d.ts +14 -14
  58. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +1 -1
  59. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +1 -1
  60. package/dist/constructs/v1beta3/environment/Environment.d.ts +12 -12
  61. package/dist/constructs/v1beta3/environment/EnvironmentSchema.js +1 -1
  62. package/dist/constructs/v1beta3/environment/EnvironmentSchema.mjs +1 -1
  63. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +66 -0
  64. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +1 -1
  65. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +1 -1
  66. package/dist/constructs/v1beta3/job_lease/JobLease.d.ts +2570 -0
  67. package/dist/constructs/v1beta3/job_lease/JobLease.js +1 -0
  68. package/dist/constructs/v1beta3/job_lease/JobLease.mjs +0 -0
  69. package/dist/constructs/v1beta3/job_lease/JobLeaseSchema.d.ts +2 -0
  70. package/dist/constructs/v1beta3/job_lease/JobLeaseSchema.js +83 -0
  71. package/dist/constructs/v1beta3/job_lease/JobLeaseSchema.mjs +83 -0
  72. package/dist/constructs/v1beta3/token/Token.d.ts +4 -2
  73. package/dist/constructs/v1beta3/token/TokenSchema.js +1 -1
  74. package/dist/constructs/v1beta3/token/TokenSchema.mjs +1 -1
  75. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +2 -2
  76. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +1 -1
  77. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +1 -1
  78. package/dist/mesheryApi.d.mts +24 -24
  79. package/dist/mesheryApi.d.ts +24 -24
  80. package/dist/mesheryApi.js +1 -1
  81. package/dist/mesheryApi.mjs +1 -1
  82. package/package.json +2 -1
@@ -0,0 +1 @@
1
+ 'use strict';
@@ -0,0 +1,2 @@
1
+ declare const BlowhornRunSchema: Record<string, unknown>;
2
+ export default BlowhornRunSchema;
@@ -0,0 +1,51 @@
1
+ 'use strict';var e={openapi:"3.0.0",info:{title:"BlowhornRun",description:`OpenAPI schema for the Blowhorn run ledger - idempotent appends of
2
+ run records plus analytics rollups.
3
+ `,version:"v1beta3",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},security:[{jwt:[]}],tags:[{name:"blowhornRuns",description:"Operations related to Blowhorn run records and analytics."}],paths:{"/api/blowhorn/runs":{get:{"x-internal":["cloud"],tags:["blowhornRuns"],summary:"List Blowhorn run records",operationId:"listBlowhornRunRecords",description:"Returns a paginated list of Blowhorn run records in the organization of the authenticated session.",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"integer",minimum:0}},{name:"pageSize",in:"query",description:"Number of items per page (canonical camelCase form).",schema:{type:"integer",minimum:1}},{name:"pagesize",in:"query",description:"Number of items per page. Deprecated alias of pageSize;\ncanonical `pageSize` wins when both are present.\n",deprecated:true,schema:{type:"integer",minimum:1}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"runId",in:"query",required:false,description:"Filter by run identifier.",schema:{type:"string"}},{name:"kind",in:"query",required:false,description:"Filter by record kind.",schema:{type:"string"}},{name:"profile",in:"query",required:false,description:"Filter by profile subject.",schema:{type:"string"}},{name:"platform",in:"query",required:false,description:"Filter by platform (e.g. linkedin).",schema:{type:"string"}}],responses:{200:{description:"Blowhorn run records page",content:{"application/json":{schema:{type:"object",description:"Paginated collection of Blowhorn run records.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},pageSize:{type:"integer",description:"Number of items per page.",minimum:1},totalCount:{type:"integer",description:"Total number of items available.",minimum:0},blowhornRunRecords:{type:"array",items:{"x-go-type":"BlowhornRunRecord",$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Run Record Schema",description:`Server-returned Blowhorn run record as persisted by meshery-cloud. Run
4
+ records form an append-only ledger: appends replay idempotently on the
5
+ (runId, kind, ts, profile, platform) tuple. The local spool stays on the
6
+ machine; only the append crosses the API. Writers also emit Cloud events
7
+ so the organization audit trail sees publishes without a second read
8
+ path.
9
+ `,type:"object",additionalProperties:false,required:["id","organizationId","runId","kind","ts","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn run record ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID","x-oapi-codegen-extra-tags":{db:"run_id"},"x-order":3},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"kind"},"x-order":4},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"ts"},"x-order":5},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255,"x-oapi-codegen-extra-tags":{db:"profile"},"x-order":6},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"platform"},"x-order":7},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"data"},"x-order":8},createdAt:{description:"Timestamp of Blowhorn run record creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn run record modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the Blowhorn run record was soft-deleted.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"},"x-order":11}}},description:"Blowhorn run records included on this page of results."}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["blowhornRuns"],summary:"Append Blowhorn run record",operationId:"appendBlowhornRunRecord",description:`Appends a run record to the ledger, replaying idempotently on the
10
+ (runId, kind, ts, profile, platform) tuple: replaying an existing
11
+ tuple returns the stored record unchanged. Ownership is derived
12
+ from the authenticated session; any client-supplied owner is
13
+ ignored.
14
+ `,requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for appending a Blowhorn run record. Contains only\nclient-settable fields; the owning `organizationId` (derived from\nthe authenticated session) and the server-generated `createdAt` /\n`updatedAt` timestamps are intentionally excluded.\n",required:["runId","kind","ts"],properties:{id:{description:"Existing Blowhorn run record ID; omit on append.","x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID"},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple."},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Blowhorn run record appended",content:{"application/json":{schema:{$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Run Record Schema",description:`Server-returned Blowhorn run record as persisted by meshery-cloud. Run
15
+ records form an append-only ledger: appends replay idempotently on the
16
+ (runId, kind, ts, profile, platform) tuple. The local spool stays on the
17
+ machine; only the append crosses the API. Writers also emit Cloud events
18
+ so the organization audit trail sees publishes without a second read
19
+ path.
20
+ `,type:"object",additionalProperties:false,required:["id","organizationId","runId","kind","ts","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn run record ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID","x-oapi-codegen-extra-tags":{db:"run_id"},"x-order":3},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"kind"},"x-order":4},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"ts"},"x-order":5},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255,"x-oapi-codegen-extra-tags":{db:"profile"},"x-order":6},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"platform"},"x-order":7},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"data"},"x-order":8},createdAt:{description:"Timestamp of Blowhorn run record creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn run record modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the Blowhorn run record was soft-deleted.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"},"x-order":11}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/blowhorn/analytics":{get:{"x-internal":["cloud"],tags:["blowhornRuns"],summary:"List Blowhorn analytics",operationId:"listBlowhornAnalytics",description:"Returns a paginated list of Blowhorn analytics rollups in the organization of the authenticated session.",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"integer",minimum:0}},{name:"pageSize",in:"query",description:"Number of items per page (canonical camelCase form).",schema:{type:"integer",minimum:1}},{name:"pagesize",in:"query",description:"Number of items per page. Deprecated alias of pageSize;\ncanonical `pageSize` wins when both are present.\n",deprecated:true,schema:{type:"integer",minimum:1}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"scope",in:"query",required:false,description:"Filter by aggregation scope.",schema:{type:"string"}}],responses:{200:{description:"Blowhorn analytics page",content:{"application/json":{schema:{type:"object",description:"Paginated collection of Blowhorn analytics rollups.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},pageSize:{type:"integer",description:"Number of items per page.",minimum:1},totalCount:{type:"integer",description:"Total number of items available.",minimum:0},blowhornAnalytics:{type:"array",items:{"x-go-type":"BlowhornAnalytics",$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Analytics Schema",description:`Server-returned Blowhorn analytics rollup as persisted by
21
+ meshery-cloud. Analytics rows aggregate run records per scope and
22
+ window; recording the same (scope, window) pair replaces the stored
23
+ metrics.
24
+ `,type:"object",additionalProperties:false,required:["id","organizationId","scope","metrics","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn analytics ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"scope"},"x-order":3},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"window"},"x-order":4},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"metrics"},"x-order":5},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"computed_at"},"x-order":6},createdAt:{description:"Timestamp of Blowhorn analytics creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn analytics modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},description:"Blowhorn analytics rollups included on this page of results."}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["blowhornRuns"],summary:"Record Blowhorn analytics",operationId:"recordBlowhornAnalytics",description:`Records an analytics rollup, replacing the stored metrics for the
25
+ (scope, window) pair. Ownership is derived from the authenticated
26
+ session; any client-supplied owner is ignored.
27
+ `,requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for recording a Blowhorn analytics rollup. Contains only\nclient-settable fields; the owning `organizationId` (derived from\nthe authenticated session) and the server-generated `createdAt` /\n`updatedAt` timestamps are intentionally excluded.\n",required:["scope","metrics"],properties:{id:{description:"Existing Blowhorn analytics ID for updates; omit on record.","x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed."}}}}}},responses:{200:{description:"Blowhorn analytics recorded",content:{"application/json":{schema:{$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Analytics Schema",description:`Server-returned Blowhorn analytics rollup as persisted by
28
+ meshery-cloud. Analytics rows aggregate run records per scope and
29
+ window; recording the same (scope, window) pair replaces the stored
30
+ metrics.
31
+ `,type:"object",additionalProperties:false,required:["id","organizationId","scope","metrics","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn analytics ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"scope"},"x-order":3},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"window"},"x-order":4},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"metrics"},"x-order":5},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"computed_at"},"x-order":6},createdAt:{description:"Timestamp of Blowhorn analytics creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn analytics modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"Bearer [REDACTED]",bearerFormat:"JWT"}},responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"integer",minimum:0}},pageSize:{name:"pageSize",in:"query",description:"Number of items per page (canonical camelCase form).",schema:{type:"integer",minimum:1}},pagesize:{name:"pagesize",in:"query",description:"Number of items per page. Deprecated alias of pageSize;\ncanonical `pageSize` wins when both are present.\n",deprecated:true,schema:{type:"integer",minimum:1}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}},schemas:{BlowhornRunRecord:{$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Run Record Schema",description:`Server-returned Blowhorn run record as persisted by meshery-cloud. Run
32
+ records form an append-only ledger: appends replay idempotently on the
33
+ (runId, kind, ts, profile, platform) tuple. The local spool stays on the
34
+ machine; only the append crosses the API. Writers also emit Cloud events
35
+ so the organization audit trail sees publishes without a second read
36
+ path.
37
+ `,type:"object",additionalProperties:false,required:["id","organizationId","runId","kind","ts","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn run record ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID","x-oapi-codegen-extra-tags":{db:"run_id"},"x-order":3},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"kind"},"x-order":4},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"ts"},"x-order":5},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255,"x-oapi-codegen-extra-tags":{db:"profile"},"x-order":6},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"platform"},"x-order":7},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"data"},"x-order":8},createdAt:{description:"Timestamp of Blowhorn run record creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn run record modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the Blowhorn run record was soft-deleted.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"},"x-order":11}}},BlowhornAnalytics:{$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Analytics Schema",description:`Server-returned Blowhorn analytics rollup as persisted by
38
+ meshery-cloud. Analytics rows aggregate run records per scope and
39
+ window; recording the same (scope, window) pair replaces the stored
40
+ metrics.
41
+ `,type:"object",additionalProperties:false,required:["id","organizationId","scope","metrics","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn analytics ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"scope"},"x-order":3},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"window"},"x-order":4},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"metrics"},"x-order":5},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"computed_at"},"x-order":6},createdAt:{description:"Timestamp of Blowhorn analytics creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn analytics modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},BlowhornRunRecordPayload:{type:"object",description:"Payload for appending a Blowhorn run record. Contains only\nclient-settable fields; the owning `organizationId` (derived from\nthe authenticated session) and the server-generated `createdAt` /\n`updatedAt` timestamps are intentionally excluded.\n",required:["runId","kind","ts"],properties:{id:{description:"Existing Blowhorn run record ID; omit on append.","x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID"},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple."},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true}}},BlowhornAnalyticsPayload:{type:"object",description:"Payload for recording a Blowhorn analytics rollup. Contains only\nclient-settable fields; the owning `organizationId` (derived from\nthe authenticated session) and the server-generated `createdAt` /\n`updatedAt` timestamps are intentionally excluded.\n",required:["scope","metrics"],properties:{id:{description:"Existing Blowhorn analytics ID for updates; omit on record.","x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed."}}},BlowhornRunRecordPage:{type:"object",description:"Paginated collection of Blowhorn run records.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},pageSize:{type:"integer",description:"Number of items per page.",minimum:1},totalCount:{type:"integer",description:"Total number of items available.",minimum:0},blowhornRunRecords:{type:"array",items:{"x-go-type":"BlowhornRunRecord",$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Run Record Schema",description:`Server-returned Blowhorn run record as persisted by meshery-cloud. Run
42
+ records form an append-only ledger: appends replay idempotently on the
43
+ (runId, kind, ts, profile, platform) tuple. The local spool stays on the
44
+ machine; only the append crosses the API. Writers also emit Cloud events
45
+ so the organization audit trail sees publishes without a second read
46
+ path.
47
+ `,type:"object",additionalProperties:false,required:["id","organizationId","runId","kind","ts","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn run record ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID","x-oapi-codegen-extra-tags":{db:"run_id"},"x-order":3},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"kind"},"x-order":4},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"ts"},"x-order":5},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255,"x-oapi-codegen-extra-tags":{db:"profile"},"x-order":6},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"platform"},"x-order":7},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"data"},"x-order":8},createdAt:{description:"Timestamp of Blowhorn run record creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn run record modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the Blowhorn run record was soft-deleted.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"},"x-order":11}}},description:"Blowhorn run records included on this page of results."}}},BlowhornAnalyticsPage:{type:"object",description:"Paginated collection of Blowhorn analytics rollups.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},pageSize:{type:"integer",description:"Number of items per page.",minimum:1},totalCount:{type:"integer",description:"Total number of items available.",minimum:0},blowhornAnalytics:{type:"array",items:{"x-go-type":"BlowhornAnalytics",$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Analytics Schema",description:`Server-returned Blowhorn analytics rollup as persisted by
48
+ meshery-cloud. Analytics rows aggregate run records per scope and
49
+ window; recording the same (scope, window) pair replaces the stored
50
+ metrics.
51
+ `,type:"object",additionalProperties:false,required:["id","organizationId","scope","metrics","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn analytics ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"scope"},"x-order":3},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"window"},"x-order":4},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"metrics"},"x-order":5},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"computed_at"},"x-order":6},createdAt:{description:"Timestamp of Blowhorn analytics creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn analytics modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},description:"Blowhorn analytics rollups included on this page of results."}}}}}},t=e;module.exports=t;
@@ -0,0 +1,51 @@
1
+ var e={openapi:"3.0.0",info:{title:"BlowhornRun",description:`OpenAPI schema for the Blowhorn run ledger - idempotent appends of
2
+ run records plus analytics rollups.
3
+ `,version:"v1beta3",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},security:[{jwt:[]}],tags:[{name:"blowhornRuns",description:"Operations related to Blowhorn run records and analytics."}],paths:{"/api/blowhorn/runs":{get:{"x-internal":["cloud"],tags:["blowhornRuns"],summary:"List Blowhorn run records",operationId:"listBlowhornRunRecords",description:"Returns a paginated list of Blowhorn run records in the organization of the authenticated session.",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"integer",minimum:0}},{name:"pageSize",in:"query",description:"Number of items per page (canonical camelCase form).",schema:{type:"integer",minimum:1}},{name:"pagesize",in:"query",description:"Number of items per page. Deprecated alias of pageSize;\ncanonical `pageSize` wins when both are present.\n",deprecated:true,schema:{type:"integer",minimum:1}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"runId",in:"query",required:false,description:"Filter by run identifier.",schema:{type:"string"}},{name:"kind",in:"query",required:false,description:"Filter by record kind.",schema:{type:"string"}},{name:"profile",in:"query",required:false,description:"Filter by profile subject.",schema:{type:"string"}},{name:"platform",in:"query",required:false,description:"Filter by platform (e.g. linkedin).",schema:{type:"string"}}],responses:{200:{description:"Blowhorn run records page",content:{"application/json":{schema:{type:"object",description:"Paginated collection of Blowhorn run records.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},pageSize:{type:"integer",description:"Number of items per page.",minimum:1},totalCount:{type:"integer",description:"Total number of items available.",minimum:0},blowhornRunRecords:{type:"array",items:{"x-go-type":"BlowhornRunRecord",$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Run Record Schema",description:`Server-returned Blowhorn run record as persisted by meshery-cloud. Run
4
+ records form an append-only ledger: appends replay idempotently on the
5
+ (runId, kind, ts, profile, platform) tuple. The local spool stays on the
6
+ machine; only the append crosses the API. Writers also emit Cloud events
7
+ so the organization audit trail sees publishes without a second read
8
+ path.
9
+ `,type:"object",additionalProperties:false,required:["id","organizationId","runId","kind","ts","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn run record ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID","x-oapi-codegen-extra-tags":{db:"run_id"},"x-order":3},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"kind"},"x-order":4},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"ts"},"x-order":5},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255,"x-oapi-codegen-extra-tags":{db:"profile"},"x-order":6},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"platform"},"x-order":7},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"data"},"x-order":8},createdAt:{description:"Timestamp of Blowhorn run record creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn run record modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the Blowhorn run record was soft-deleted.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"},"x-order":11}}},description:"Blowhorn run records included on this page of results."}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["blowhornRuns"],summary:"Append Blowhorn run record",operationId:"appendBlowhornRunRecord",description:`Appends a run record to the ledger, replaying idempotently on the
10
+ (runId, kind, ts, profile, platform) tuple: replaying an existing
11
+ tuple returns the stored record unchanged. Ownership is derived
12
+ from the authenticated session; any client-supplied owner is
13
+ ignored.
14
+ `,requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for appending a Blowhorn run record. Contains only\nclient-settable fields; the owning `organizationId` (derived from\nthe authenticated session) and the server-generated `createdAt` /\n`updatedAt` timestamps are intentionally excluded.\n",required:["runId","kind","ts"],properties:{id:{description:"Existing Blowhorn run record ID; omit on append.","x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID"},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple."},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Blowhorn run record appended",content:{"application/json":{schema:{$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Run Record Schema",description:`Server-returned Blowhorn run record as persisted by meshery-cloud. Run
15
+ records form an append-only ledger: appends replay idempotently on the
16
+ (runId, kind, ts, profile, platform) tuple. The local spool stays on the
17
+ machine; only the append crosses the API. Writers also emit Cloud events
18
+ so the organization audit trail sees publishes without a second read
19
+ path.
20
+ `,type:"object",additionalProperties:false,required:["id","organizationId","runId","kind","ts","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn run record ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID","x-oapi-codegen-extra-tags":{db:"run_id"},"x-order":3},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"kind"},"x-order":4},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"ts"},"x-order":5},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255,"x-oapi-codegen-extra-tags":{db:"profile"},"x-order":6},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"platform"},"x-order":7},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"data"},"x-order":8},createdAt:{description:"Timestamp of Blowhorn run record creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn run record modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the Blowhorn run record was soft-deleted.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"},"x-order":11}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/blowhorn/analytics":{get:{"x-internal":["cloud"],tags:["blowhornRuns"],summary:"List Blowhorn analytics",operationId:"listBlowhornAnalytics",description:"Returns a paginated list of Blowhorn analytics rollups in the organization of the authenticated session.",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"integer",minimum:0}},{name:"pageSize",in:"query",description:"Number of items per page (canonical camelCase form).",schema:{type:"integer",minimum:1}},{name:"pagesize",in:"query",description:"Number of items per page. Deprecated alias of pageSize;\ncanonical `pageSize` wins when both are present.\n",deprecated:true,schema:{type:"integer",minimum:1}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"scope",in:"query",required:false,description:"Filter by aggregation scope.",schema:{type:"string"}}],responses:{200:{description:"Blowhorn analytics page",content:{"application/json":{schema:{type:"object",description:"Paginated collection of Blowhorn analytics rollups.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},pageSize:{type:"integer",description:"Number of items per page.",minimum:1},totalCount:{type:"integer",description:"Total number of items available.",minimum:0},blowhornAnalytics:{type:"array",items:{"x-go-type":"BlowhornAnalytics",$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Analytics Schema",description:`Server-returned Blowhorn analytics rollup as persisted by
21
+ meshery-cloud. Analytics rows aggregate run records per scope and
22
+ window; recording the same (scope, window) pair replaces the stored
23
+ metrics.
24
+ `,type:"object",additionalProperties:false,required:["id","organizationId","scope","metrics","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn analytics ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"scope"},"x-order":3},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"window"},"x-order":4},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"metrics"},"x-order":5},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"computed_at"},"x-order":6},createdAt:{description:"Timestamp of Blowhorn analytics creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn analytics modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},description:"Blowhorn analytics rollups included on this page of results."}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["blowhornRuns"],summary:"Record Blowhorn analytics",operationId:"recordBlowhornAnalytics",description:`Records an analytics rollup, replacing the stored metrics for the
25
+ (scope, window) pair. Ownership is derived from the authenticated
26
+ session; any client-supplied owner is ignored.
27
+ `,requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for recording a Blowhorn analytics rollup. Contains only\nclient-settable fields; the owning `organizationId` (derived from\nthe authenticated session) and the server-generated `createdAt` /\n`updatedAt` timestamps are intentionally excluded.\n",required:["scope","metrics"],properties:{id:{description:"Existing Blowhorn analytics ID for updates; omit on record.","x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed."}}}}}},responses:{200:{description:"Blowhorn analytics recorded",content:{"application/json":{schema:{$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Analytics Schema",description:`Server-returned Blowhorn analytics rollup as persisted by
28
+ meshery-cloud. Analytics rows aggregate run records per scope and
29
+ window; recording the same (scope, window) pair replaces the stored
30
+ metrics.
31
+ `,type:"object",additionalProperties:false,required:["id","organizationId","scope","metrics","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn analytics ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"scope"},"x-order":3},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"window"},"x-order":4},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"metrics"},"x-order":5},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"computed_at"},"x-order":6},createdAt:{description:"Timestamp of Blowhorn analytics creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn analytics modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"Bearer [REDACTED]",bearerFormat:"JWT"}},responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"integer",minimum:0}},pageSize:{name:"pageSize",in:"query",description:"Number of items per page (canonical camelCase form).",schema:{type:"integer",minimum:1}},pagesize:{name:"pagesize",in:"query",description:"Number of items per page. Deprecated alias of pageSize;\ncanonical `pageSize` wins when both are present.\n",deprecated:true,schema:{type:"integer",minimum:1}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}},schemas:{BlowhornRunRecord:{$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Run Record Schema",description:`Server-returned Blowhorn run record as persisted by meshery-cloud. Run
32
+ records form an append-only ledger: appends replay idempotently on the
33
+ (runId, kind, ts, profile, platform) tuple. The local spool stays on the
34
+ machine; only the append crosses the API. Writers also emit Cloud events
35
+ so the organization audit trail sees publishes without a second read
36
+ path.
37
+ `,type:"object",additionalProperties:false,required:["id","organizationId","runId","kind","ts","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn run record ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID","x-oapi-codegen-extra-tags":{db:"run_id"},"x-order":3},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"kind"},"x-order":4},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"ts"},"x-order":5},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255,"x-oapi-codegen-extra-tags":{db:"profile"},"x-order":6},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"platform"},"x-order":7},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"data"},"x-order":8},createdAt:{description:"Timestamp of Blowhorn run record creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn run record modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the Blowhorn run record was soft-deleted.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"},"x-order":11}}},BlowhornAnalytics:{$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Analytics Schema",description:`Server-returned Blowhorn analytics rollup as persisted by
38
+ meshery-cloud. Analytics rows aggregate run records per scope and
39
+ window; recording the same (scope, window) pair replaces the stored
40
+ metrics.
41
+ `,type:"object",additionalProperties:false,required:["id","organizationId","scope","metrics","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn analytics ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"scope"},"x-order":3},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"window"},"x-order":4},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"metrics"},"x-order":5},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"computed_at"},"x-order":6},createdAt:{description:"Timestamp of Blowhorn analytics creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn analytics modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},BlowhornRunRecordPayload:{type:"object",description:"Payload for appending a Blowhorn run record. Contains only\nclient-settable fields; the owning `organizationId` (derived from\nthe authenticated session) and the server-generated `createdAt` /\n`updatedAt` timestamps are intentionally excluded.\n",required:["runId","kind","ts"],properties:{id:{description:"Existing Blowhorn run record ID; omit on append.","x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID"},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple."},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true}}},BlowhornAnalyticsPayload:{type:"object",description:"Payload for recording a Blowhorn analytics rollup. Contains only\nclient-settable fields; the owning `organizationId` (derived from\nthe authenticated session) and the server-generated `createdAt` /\n`updatedAt` timestamps are intentionally excluded.\n",required:["scope","metrics"],properties:{id:{description:"Existing Blowhorn analytics ID for updates; omit on record.","x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed."}}},BlowhornRunRecordPage:{type:"object",description:"Paginated collection of Blowhorn run records.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},pageSize:{type:"integer",description:"Number of items per page.",minimum:1},totalCount:{type:"integer",description:"Total number of items available.",minimum:0},blowhornRunRecords:{type:"array",items:{"x-go-type":"BlowhornRunRecord",$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Run Record Schema",description:`Server-returned Blowhorn run record as persisted by meshery-cloud. Run
42
+ records form an append-only ledger: appends replay idempotently on the
43
+ (runId, kind, ts, profile, platform) tuple. The local spool stays on the
44
+ machine; only the append crosses the API. Writers also emit Cloud events
45
+ so the organization audit trail sees publishes without a second read
46
+ path.
47
+ `,type:"object",additionalProperties:false,required:["id","organizationId","runId","kind","ts","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn run record ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},runId:{type:"string",description:"Run identifier grouping the records of one execution.",minLength:1,maxLength:255,"x-go-name":"RunID","x-oapi-codegen-extra-tags":{db:"run_id"},"x-order":3},kind:{type:"string",description:"Record kind within the run.",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"kind"},"x-order":4},ts:{type:"string",format:"date-time",description:"Event time of the record within the run. Part of the idempotency tuple.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"ts"},"x-order":5},profile:{type:"string",description:"Subject of the profile the record concerns.",maxLength:255,"x-oapi-codegen-extra-tags":{db:"profile"},"x-order":6},platform:{type:"string",description:"Platform the record concerns (e.g. linkedin).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"platform"},"x-order":7},data:{type:"object",description:"Record values, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"data"},"x-order":8},createdAt:{description:"Timestamp of Blowhorn run record creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn run record modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the Blowhorn run record was soft-deleted.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"},"x-order":11}}},description:"Blowhorn run records included on this page of results."}}},BlowhornAnalyticsPage:{type:"object",description:"Paginated collection of Blowhorn analytics rollups.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},pageSize:{type:"integer",description:"Number of items per page.",minimum:1},totalCount:{type:"integer",description:"Total number of items available.",minimum:0},blowhornAnalytics:{type:"array",items:{"x-go-type":"BlowhornAnalytics",$schema:"http://json-schema.org/draft-07/schema#",title:"Blowhorn Analytics Schema",description:`Server-returned Blowhorn analytics rollup as persisted by
48
+ meshery-cloud. Analytics rows aggregate run records per scope and
49
+ window; recording the same (scope, window) pair replaces the stored
50
+ metrics.
51
+ `,type:"object",additionalProperties:false,required:["id","organizationId","scope","metrics","createdAt","updatedAt"],properties:{id:{description:"Server-generated Blowhorn analytics ID.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},organizationId:{description:"Owning organization ID. Derived from the authenticated session, never client-settable.","x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},scope:{type:"string",description:"Aggregation scope (e.g. profile subject or organization-wide rollup name).",minLength:1,maxLength:255,"x-oapi-codegen-extra-tags":{db:"scope"},"x-order":3},window:{type:"string",description:"Aggregation window the metrics cover (e.g. day, week).",maxLength:255,"x-oapi-codegen-extra-tags":{db:"window"},"x-order":4},metrics:{type:"object",description:"Aggregated metrics, stored as a JSON blob.","x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"metrics"},"x-order":5},computedAt:{type:"string",format:"date-time",description:"Time the metrics were computed.",nullable:true,"x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"computed_at"},"x-order":6},createdAt:{description:"Timestamp of Blowhorn analytics creation.","x-oapi-codegen-extra-tags":{db:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp of last Blowhorn analytics modification.","x-oapi-codegen-extra-tags":{db:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},description:"Blowhorn analytics rollups included on this page of results."}}}}}},t=e;export{t as default};
@@ -561,7 +561,7 @@ export interface components {
561
561
  */
562
562
  deletedAt?: string | null;
563
563
  /**
564
- * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust.
564
+ * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust. `blowhorn` designates an environment the platform itself provisions to hold an organization's Blowhorn configuration and secrets, resolved by the purpose-typed credential chain; it is privileged in the same sense as `administrative`.
565
565
  *
566
566
  * Absent means `user`. Nothing may read an unset or unrecognised value as administrative: test for the administrative value explicitly rather than for "not user", so the property fails closed.
567
567
  *
@@ -572,7 +572,7 @@ export interface components {
572
572
  * The database index that enforces the uniqueness invariant, the migration path for environments that are administrative by naming convention today, and each consumer's obligations are specified in https://github.com/meshery/schemas/blob/master/docs/environment-purpose-contract.md.
573
573
  * @enum {string}
574
574
  */
575
- purpose?: "user" | "administrative";
575
+ purpose?: "user" | "administrative" | "blowhorn";
576
576
  }[];
577
577
  /**
578
578
  * @description Specifies the version of the schema used for the definition.
@@ -1195,7 +1195,7 @@ export interface components {
1195
1195
  */
1196
1196
  deletedAt?: string | null;
1197
1197
  /**
1198
- * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust.
1198
+ * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust. `blowhorn` designates an environment the platform itself provisions to hold an organization's Blowhorn configuration and secrets, resolved by the purpose-typed credential chain; it is privileged in the same sense as `administrative`.
1199
1199
  *
1200
1200
  * Absent means `user`. Nothing may read an unset or unrecognised value as administrative: test for the administrative value explicitly rather than for "not user", so the property fails closed.
1201
1201
  *
@@ -1206,7 +1206,7 @@ export interface components {
1206
1206
  * The database index that enforces the uniqueness invariant, the migration path for environments that are administrative by naming convention today, and each consumer's obligations are specified in https://github.com/meshery/schemas/blob/master/docs/environment-purpose-contract.md.
1207
1207
  * @enum {string}
1208
1208
  */
1209
- purpose?: "user" | "administrative";
1209
+ purpose?: "user" | "administrative" | "blowhorn";
1210
1210
  }[];
1211
1211
  /**
1212
1212
  * @description Specifies the version of the schema used for the definition.
@@ -2167,7 +2167,7 @@ export interface operations {
2167
2167
  */
2168
2168
  deletedAt?: string | null;
2169
2169
  /**
2170
- * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust.
2170
+ * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust. `blowhorn` designates an environment the platform itself provisions to hold an organization's Blowhorn configuration and secrets, resolved by the purpose-typed credential chain; it is privileged in the same sense as `administrative`.
2171
2171
  *
2172
2172
  * Absent means `user`. Nothing may read an unset or unrecognised value as administrative: test for the administrative value explicitly rather than for "not user", so the property fails closed.
2173
2173
  *
@@ -2178,7 +2178,7 @@ export interface operations {
2178
2178
  * The database index that enforces the uniqueness invariant, the migration path for environments that are administrative by naming convention today, and each consumer's obligations are specified in https://github.com/meshery/schemas/blob/master/docs/environment-purpose-contract.md.
2179
2179
  * @enum {string}
2180
2180
  */
2181
- purpose?: "user" | "administrative";
2181
+ purpose?: "user" | "administrative" | "blowhorn";
2182
2182
  }[];
2183
2183
  /**
2184
2184
  * @description Specifies the version of the schema used for the definition.
@@ -2769,7 +2769,7 @@ export interface operations {
2769
2769
  */
2770
2770
  deletedAt?: string | null;
2771
2771
  /**
2772
- * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust.
2772
+ * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust. `blowhorn` designates an environment the platform itself provisions to hold an organization's Blowhorn configuration and secrets, resolved by the purpose-typed credential chain; it is privileged in the same sense as `administrative`.
2773
2773
  *
2774
2774
  * Absent means `user`. Nothing may read an unset or unrecognised value as administrative: test for the administrative value explicitly rather than for "not user", so the property fails closed.
2775
2775
  *
@@ -2780,7 +2780,7 @@ export interface operations {
2780
2780
  * The database index that enforces the uniqueness invariant, the migration path for environments that are administrative by naming convention today, and each consumer's obligations are specified in https://github.com/meshery/schemas/blob/master/docs/environment-purpose-contract.md.
2781
2781
  * @enum {string}
2782
2782
  */
2783
- purpose?: "user" | "administrative";
2783
+ purpose?: "user" | "administrative" | "blowhorn";
2784
2784
  }[];
2785
2785
  /**
2786
2786
  * @description Specifies the version of the schema used for the definition.
@@ -3295,7 +3295,7 @@ export interface operations {
3295
3295
  */
3296
3296
  deletedAt?: string | null;
3297
3297
  /**
3298
- * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust.
3298
+ * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust. `blowhorn` designates an environment the platform itself provisions to hold an organization's Blowhorn configuration and secrets, resolved by the purpose-typed credential chain; it is privileged in the same sense as `administrative`.
3299
3299
  *
3300
3300
  * Absent means `user`. Nothing may read an unset or unrecognised value as administrative: test for the administrative value explicitly rather than for "not user", so the property fails closed.
3301
3301
  *
@@ -3306,7 +3306,7 @@ export interface operations {
3306
3306
  * The database index that enforces the uniqueness invariant, the migration path for environments that are administrative by naming convention today, and each consumer's obligations are specified in https://github.com/meshery/schemas/blob/master/docs/environment-purpose-contract.md.
3307
3307
  * @enum {string}
3308
3308
  */
3309
- purpose?: "user" | "administrative";
3309
+ purpose?: "user" | "administrative" | "blowhorn";
3310
3310
  }[];
3311
3311
  /**
3312
3312
  * @description Specifies the version of the schema used for the definition.
@@ -3898,7 +3898,7 @@ export interface operations {
3898
3898
  */
3899
3899
  deletedAt?: string | null;
3900
3900
  /**
3901
- * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust.
3901
+ * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust. `blowhorn` designates an environment the platform itself provisions to hold an organization's Blowhorn configuration and secrets, resolved by the purpose-typed credential chain; it is privileged in the same sense as `administrative`.
3902
3902
  *
3903
3903
  * Absent means `user`. Nothing may read an unset or unrecognised value as administrative: test for the administrative value explicitly rather than for "not user", so the property fails closed.
3904
3904
  *
@@ -3909,7 +3909,7 @@ export interface operations {
3909
3909
  * The database index that enforces the uniqueness invariant, the migration path for environments that are administrative by naming convention today, and each consumer's obligations are specified in https://github.com/meshery/schemas/blob/master/docs/environment-purpose-contract.md.
3910
3910
  * @enum {string}
3911
3911
  */
3912
- purpose?: "user" | "administrative";
3912
+ purpose?: "user" | "administrative" | "blowhorn";
3913
3913
  }[];
3914
3914
  /**
3915
3915
  * @description Specifies the version of the schema used for the definition.
@@ -4370,7 +4370,7 @@ export interface operations {
4370
4370
  */
4371
4371
  deletedAt?: string | null;
4372
4372
  /**
4373
- * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust.
4373
+ * @description What the environment exists for. `user` is an ordinary environment that people create to logically group Connections and their Credentials. `administrative` designates an environment the platform itself provisions to hold organization-level configuration, and which resolvers of that configuration therefore trust. `blowhorn` designates an environment the platform itself provisions to hold an organization's Blowhorn configuration and secrets, resolved by the purpose-typed credential chain; it is privileged in the same sense as `administrative`.
4374
4374
  *
4375
4375
  * Absent means `user`. Nothing may read an unset or unrecognised value as administrative: test for the administrative value explicitly rather than for "not user", so the property fails closed.
4376
4376
  *
@@ -4381,7 +4381,7 @@ export interface operations {
4381
4381
  * The database index that enforces the uniqueness invariant, the migration path for environments that are administrative by naming convention today, and each consumer's obligations are specified in https://github.com/meshery/schemas/blob/master/docs/environment-purpose-contract.md.
4382
4382
  * @enum {string}
4383
4383
  */
4384
- purpose?: "user" | "administrative";
4384
+ purpose?: "user" | "administrative" | "blowhorn";
4385
4385
  }[];
4386
4386
  /**
4387
4387
  * @description Specifies the version of the schema used for the definition.