@odigos/vmagent-api-apollo-client 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,6 +94,42 @@ export type AwsManagedCollectorDetails = ManagedCollectorDetails & {
94
94
  /** ECS service ARN. */
95
95
  workloadRef?: Maybe<Scalars['String']['output']>;
96
96
  };
97
+ /** AWS placement and network policy settings. */
98
+ export type AwsManagedCollectorProviderOverrides = ManagedCollectorProviderOverrides & {
99
+ __typename?: 'AwsManagedCollectorProviderOverrides';
100
+ /** Additional security groups admitted to the Collector's OTLP ports. */
101
+ additionalSecurityGroupIds?: Maybe<Array<Scalars['String']['output']>>;
102
+ /** Whether to fall back to the selected network's CIDR when no sender security group resolves. */
103
+ allowNetworkCidrFallback: Scalars['Boolean']['output'];
104
+ assignPublicIp: Scalars['Boolean']['output'];
105
+ /** AWS cluster reference used for the Collector service. */
106
+ clusterRef?: Maybe<Scalars['String']['output']>;
107
+ /** Customer-provisioned ECS task execution role passed to the Collector task definition. */
108
+ executionRoleArn?: Maybe<Scalars['String']['output']>;
109
+ /** Minimum prefix length for CIDR fallback; larger values allow narrower ranges. */
110
+ minFallbackPrefixLength?: Maybe<Scalars['Int']['output']>;
111
+ provider: Scalars['String']['output'];
112
+ /** Security groups attached to the Collector's network interfaces. */
113
+ securityGroupIds?: Maybe<Array<Scalars['String']['output']>>;
114
+ /** Subnets to place the Collector in. Omit to let Odigos select eligible subnets. */
115
+ subnetIds?: Maybe<Array<Scalars['String']['output']>>;
116
+ /** Whether to use AWS Fargate Spot capacity. */
117
+ useFargateSpot: Scalars['Boolean']['output'];
118
+ };
119
+ export type AwsManagedCollectorProviderOverridesInput = {
120
+ additionalSecurityGroupIds?: InputMaybe<Array<Scalars['String']['input']>>;
121
+ allowNetworkCidrFallback?: InputMaybe<Scalars['Boolean']['input']>;
122
+ assignPublicIp?: InputMaybe<Scalars['Boolean']['input']>;
123
+ /** Required on create in both modes. Must identify an ACTIVE ECS cluster. */
124
+ clusterRef?: InputMaybe<Scalars['String']['input']>;
125
+ /** Required on create in both modes. The ECS task assumes this customer-owned role; Odigos never mutates it. */
126
+ executionRoleArn?: InputMaybe<Scalars['String']['input']>;
127
+ minFallbackPrefixLength?: InputMaybe<Scalars['Int']['input']>;
128
+ securityGroupIds?: InputMaybe<Array<Scalars['String']['input']>>;
129
+ /** Omit to keep the current pin; [] clears it and resumes automatic subnet selection. */
130
+ subnetIds?: InputMaybe<Array<Scalars['String']['input']>>;
131
+ useFargateSpot?: InputMaybe<Scalars['Boolean']['input']>;
132
+ };
97
133
  export type CodeAttributesConfig = {
98
134
  __typename?: 'CodeAttributesConfig';
99
135
  collectColumn?: Maybe<Scalars['Boolean']['output']>;
@@ -252,35 +288,31 @@ export type CreateManagedCollectorDestinationInput = {
252
288
  type: Scalars['String']['input'];
253
289
  };
254
290
  /**
255
- * Settings for one region's Collector. Every field except the region is optional: an omitted field
256
- * inherits `collector.defaults`, which is what makes a bare `{ region }` a valid, fully-defaulted create.
291
+ * Settings for one region's Collector. The region and customer-provisioned deployment identity are
292
+ * required; other omitted fields inherit `collector.defaults`.
257
293
  *
258
294
  * An explicitly empty list means "none" and is NOT the same as omitting the field — omitting inherits the
259
295
  * default's list, and clearing it is the only way to say this region wants none of them.
260
296
  */
261
297
  export type CreateManagedCollectorInput = {
262
298
  arch?: InputMaybe<Scalars['String']['input']>;
263
- assignPublicIp?: InputMaybe<Scalars['Boolean']['input']>;
264
- clusterRef?: InputMaybe<Scalars['String']['input']>;
265
299
  cpu?: InputMaybe<Scalars['String']['input']>;
300
+ /** Customer-provisioned deployment identity. AWS expects an IAM role ARN. */
301
+ deploymentRoleRef: Scalars['String']['input'];
266
302
  endpointOverride?: InputMaybe<Scalars['String']['input']>;
267
- /**
268
- * Pin the Collector to one network. Omit to let Odigos select the region's only eligible network;
269
- * it refuses to guess when several are eligible and reports the candidates.
270
- */
271
- hostNetworkId?: InputMaybe<Scalars['String']['input']>;
272
303
  imageRepositoryOverride?: InputMaybe<Scalars['String']['input']>;
273
304
  ingress?: InputMaybe<ManagedCollectorIngressInput>;
274
305
  logRetentionDays?: InputMaybe<Scalars['Int']['input']>;
275
306
  memory?: InputMaybe<Scalars['String']['input']>;
307
+ /** Required on AWS create in both modes; identifies the host VPC. */
308
+ networkId?: InputMaybe<Scalars['String']['input']>;
309
+ providerOverrides?: InputMaybe<ManagedCollectorProviderOverridesInput>;
276
310
  region: Scalars['String']['input'];
311
+ retention?: InputMaybe<ManagedCollectorRetentionInput>;
277
312
  /** How many workloads one cutover pass may re-point at this Collector. 0 uses the connector default. */
278
313
  rolloutBatchSize?: InputMaybe<Scalars['Int']['input']>;
279
314
  scaling?: InputMaybe<ManagedCollectorScalingInput>;
280
- securityGroupIds?: InputMaybe<Array<Scalars['String']['input']>>;
281
- subnetIds?: InputMaybe<Array<Scalars['String']['input']>>;
282
315
  transport?: InputMaybe<ManagedCollectorTransportInput>;
283
- useFargateSpot?: InputMaybe<Scalars['Boolean']['input']>;
284
316
  };
285
317
  export type CreateSourceInput = {
286
318
  config?: InputMaybe<SourceConfigInput>;
@@ -695,6 +727,40 @@ export type InstrumentationRuleTypeOption = {
695
727
  supportedLanguages: Array<Scalars['String']['output']>;
696
728
  type: Scalars['String']['output'];
697
729
  };
730
+ /**
731
+ * Parameters for issuing the OpAMP credential that a customer-managed Collector uses to connect to
732
+ * Odigos.
733
+ *
734
+ * This operation is available only for a Collector deployed in manual mode. `networkId` is the network
735
+ * where the customer will deploy the Collector, and `secretRef` identifies the customer-owned secret
736
+ * where they will store the returned authorization header.
737
+ */
738
+ export type IssueManagedCollectorCredentialInput = {
739
+ networkId: Scalars['String']['input'];
740
+ region: Scalars['String']['input'];
741
+ /**
742
+ * Replace an existing active credential. Use this when the prior one was not received or must be
743
+ * rotated; the previous credential remains valid until its replacement connects.
744
+ */
745
+ rotate?: InputMaybe<Scalars['Boolean']['input']>;
746
+ /** A customer-owned secret reference. Odigos records the reference but never writes this secret. */
747
+ secretRef: Scalars['String']['input'];
748
+ };
749
+ /**
750
+ * The one-time OpAMP credential for a customer-managed Collector.
751
+ *
752
+ * `authorizationHeader` is revealed only by the successful issuance response and is never retained by
753
+ * Odigos. Store it immediately in `secretRef` and redeploy the Collector. If this response is lost, issue
754
+ * a replacement credential; the value cannot be retrieved again.
755
+ */
756
+ export type IssueManagedCollectorCredentialPayload = {
757
+ __typename?: 'IssueManagedCollectorCredentialPayload';
758
+ /** The complete HTTP Authorization header value, including the Bearer scheme. */
759
+ authorizationHeader: Scalars['String']['output'];
760
+ collectorId: Scalars['String']['output'];
761
+ credentialId: Scalars['String']['output'];
762
+ secretRef: Scalars['String']['output'];
763
+ };
698
764
  export type JavaProbe = {
699
765
  __typename?: 'JavaProbe';
700
766
  className: Scalars['String']['output'];
@@ -761,8 +827,8 @@ export type ManagedCollectorConfigIssueDetails = ManagedCollectorIssueDetails &
761
827
  validationError?: Maybe<Scalars['String']['output']>;
762
828
  };
763
829
  /**
764
- * A condition fixed by setting something under `collector.regions.<region>` — no usable subnets, no
765
- * egress route, no security group resolving, a refused TLS or ingress value, several eligible host
830
+ * A condition fixed by setting something under `collector.regions.<region>` — no usable network segments,
831
+ * no egress route, no network access policy resolving, a refused TLS or ingress value, or several eligible
766
832
  * networks with none pinned.
767
833
  *
768
834
  * Carries the region and the key so a client can send someone straight to the setting instead of asking
@@ -772,7 +838,7 @@ export type ManagedCollectorConfigurationIssueDetails = ManagedCollectorIssueDet
772
838
  __typename?: 'ManagedCollectorConfigurationIssueDetails';
773
839
  /**
774
840
  * The candidates a refusal was choosing between, when the refusal was an ambiguity — e.g. the eligible
775
- * host networks found in this region when none was pinned. Empty for every other condition.
841
+ * networks found in this region when none was pinned. Empty for every other condition.
776
842
  *
777
843
  * Present because "Odigos refused to guess" is only actionable if the reader is told what it was
778
844
  * choosing between.
@@ -782,7 +848,7 @@ export type ManagedCollectorConfigurationIssueDetails = ManagedCollectorIssueDet
782
848
  /** The value that was refused, when there was one. Null when the setting is simply absent. */
783
849
  refusedValue?: Maybe<Scalars['String']['output']>;
784
850
  region: Scalars['String']['output'];
785
- /** The setting to change, relative to the region, e.g. "hostNetworkId", "tls.hostname". */
851
+ /** The setting to change, relative to the region, e.g. "networkId", "tls.hostname". */
786
852
  settingKey: Scalars['String']['output'];
787
853
  };
788
854
  /**
@@ -825,9 +891,9 @@ export type ManagedCollectorCurrent = {
825
891
  export type ManagedCollectorDesired = {
826
892
  __typename?: 'ManagedCollectorDesired';
827
893
  arch: Scalars['String']['output'];
828
- assignPublicIp: Scalars['Boolean']['output'];
829
- clusterRef?: Maybe<Scalars['String']['output']>;
830
894
  cpu: Scalars['String']['output'];
895
+ /** Customer-provisioned identity used for Collector operations in this region. */
896
+ deploymentRoleRef?: Maybe<Scalars['String']['output']>;
831
897
  /**
832
898
  * Whether this region gets a Collector at all. Resolved: an unset region inherits the feature
833
899
  * switch, and an explicit false wins over it.
@@ -835,11 +901,6 @@ export type ManagedCollectorDesired = {
835
901
  enabled: Scalars['Boolean']['output'];
836
902
  /** When set, Odigos creates no load balancer and publishes this address instead. */
837
903
  endpointOverride?: Maybe<Scalars['String']['output']>;
838
- /**
839
- * The network the customer pinned the Collector to. Empty means Odigos selects the region's only
840
- * eligible network, and refuses to guess when several are eligible.
841
- */
842
- hostNetworkId?: Maybe<Scalars['String']['output']>;
843
904
  imageRepositoryOverride?: Maybe<Scalars['String']['output']>;
844
905
  ingress: ManagedCollectorIngress;
845
906
  logRetentionDays: Scalars['Int']['output'];
@@ -848,15 +909,15 @@ export type ManagedCollectorDesired = {
848
909
  * well as a workload change.
849
910
  */
850
911
  memory: Scalars['String']['output'];
851
- scaling: ManagedCollectorScalingTarget;
852
- securityGroupIds?: Maybe<Array<Scalars['String']['output']>>;
853
912
  /**
854
- * Placement the customer pinned. Empty means Odigos chooses.
855
- *
856
- * A value here means the customer pointed Odigos at their OWN object, which is never mutated or deleted
857
- * whatever its tags say — see ManagedCollectorAuthority.
913
+ * The network the customer pinned the Collector to. Empty means Odigos selects the region's only
914
+ * eligible network, and refuses to guess when several are eligible.
858
915
  */
859
- subnetIds?: Maybe<Array<Scalars['String']['output']>>;
916
+ networkId?: Maybe<Scalars['String']['output']>;
917
+ /** Provider-specific desired deployment settings. */
918
+ providerOverrides: ManagedCollectorProviderOverrides;
919
+ retention: ManagedCollectorRetention;
920
+ scaling: ManagedCollectorScalingTarget;
860
921
  transport: ManagedCollectorTransport;
861
922
  };
862
923
  /** Provider-specific infrastructure references, discriminated by `provider`. */
@@ -892,26 +953,11 @@ export type ManagedCollectorImage = {
892
953
  /** Which senders are admitted to the Collector's OTLP ports. */
893
954
  export type ManagedCollectorIngress = {
894
955
  __typename?: 'ManagedCollectorIngress';
895
- /**
896
- * Explicit ranges for senders with no security group, such as workloads in a peered network.
897
- * Validated, never widened.
898
- */
956
+ /** Explicit IP ranges for senders, validated and never widened. */
899
957
  additionalCidrs?: Maybe<Array<Scalars['String']['output']>>;
900
- /** Groups admitted beyond the ones discovery found — senders Odigos does not instrument. */
901
- additionalSecurityGroupIds?: Maybe<Array<Scalars['String']['output']>>;
902
- /**
903
- * Whether the host network's CIDR fallback may be used when no sender security group resolves. False
904
- * skips the deploy with a message rather than widening the rule.
905
- */
906
- allowNetworkCidrFallback: Scalars['Boolean']['output'];
907
- /** Floor on how wide that fallback may go; 0 means the default. Larger number = narrower block. */
908
- minFallbackPrefixLength?: Maybe<Scalars['Int']['output']>;
909
958
  };
910
959
  export type ManagedCollectorIngressInput = {
911
960
  additionalCidrs?: InputMaybe<Array<Scalars['String']['input']>>;
912
- additionalSecurityGroupIds?: InputMaybe<Array<Scalars['String']['input']>>;
913
- allowNetworkCidrFallback?: InputMaybe<Scalars['Boolean']['input']>;
914
- minFallbackPrefixLength?: InputMaybe<Scalars['Int']['input']>;
915
961
  };
916
962
  /**
917
963
  * How to deploy this region's Collector by hand or by IaC.
@@ -922,6 +968,8 @@ export type ManagedCollectorIngressInput = {
922
968
  */
923
969
  export type ManagedCollectorInstructions = {
924
970
  __typename?: 'ManagedCollectorInstructions';
971
+ /** Customer-provisioned identity used to inspect or deploy the Collector. */
972
+ deploymentRoleRef?: Maybe<Scalars['String']['output']>;
925
973
  /**
926
974
  * The deployment rendered per delivery tool, in the connector's preferred order. Never empty.
927
975
  *
@@ -929,10 +977,10 @@ export type ManagedCollectorInstructions = {
929
977
  * content, unresolved) carries nothing workload-specific and needs no Collector-specific twin.
930
978
  */
931
979
  documents: Array<InstructionDocument>;
932
- /** The network the instructions place the Collector in; empty when placement has not resolved one. */
933
- hostNetworkId: Scalars['String']['output'];
934
980
  /** automatic | manual — why the customer is being shown this. */
935
981
  mode: Scalars['String']['output'];
982
+ /** The network the instructions place the Collector in; empty when placement has not resolved one. */
983
+ networkId: Scalars['String']['output'];
936
984
  /**
937
985
  * Caveats that belong with the instructions whichever tool is used — a platform limit, a value the
938
986
  * customer must supply, a step that completes without telemetry actually flowing.
@@ -978,10 +1026,9 @@ export type ManagedCollectorIssueDetails = {
978
1026
  /**
979
1027
  * Throughput and resource counters for one region's Collector.
980
1028
  *
981
- * Two possible sources, and `live` says which one answered: the snapshot the Collector last reported over
982
- * its OpAMP session (cached by the connector, always available), or a round trip to the running Collector
983
- * made for this query. A cached answer is not a degraded one — it is the normal path, and `observedAt`
984
- * says how old it is.
1029
+ * Two possible answers, and `live` says which one answered: the last cached snapshot, or a new periodic
1030
+ * own-metrics report received while this query waited. The Collector exports these metrics by OTLP/HTTP
1031
+ * to the endpoint offered during its OpAMP session. `observedAt` says when the Collector sampled them.
985
1032
  *
986
1033
  * Every counter is nullable because a Collector that has never connected has reported none of them, and a
987
1034
  * zero would be a lie about a Collector nobody has heard from.
@@ -998,10 +1045,7 @@ export type ManagedCollectorMetrics = {
998
1045
  failedMetricPoints?: Maybe<Scalars['Int']['output']>;
999
1046
  /** Failed to send and dropped after retries. The number that means telemetry was LOST. */
1000
1047
  failedSpans?: Maybe<Scalars['Int']['output']>;
1001
- /**
1002
- * True when this came from a round trip to the running Collector; false when it is the cached
1003
- * snapshot from its last periodic report.
1004
- */
1048
+ /** True when a new report arrived while this query waited; false for a cached snapshot. */
1005
1049
  live: Scalars['Boolean']['output'];
1006
1050
  memoryBytes?: Maybe<Scalars['Int']['output']>;
1007
1051
  /** RFC3339 timestamp the snapshot was TAKEN by the Collector, not when it was read here. */
@@ -1021,11 +1065,19 @@ export type ManagedCollectorMetrics = {
1021
1065
  /** Seconds since the Collector process started. */
1022
1066
  uptimeSeconds?: Maybe<Scalars['Int']['output']>;
1023
1067
  };
1068
+ /** Provider-specific settings for the desired Collector deployment. */
1069
+ export type ManagedCollectorProviderOverrides = {
1070
+ provider: Scalars['String']['output'];
1071
+ };
1072
+ export type ManagedCollectorProviderOverridesInput = {
1073
+ /** Provider-specific deployment settings. Supply only the block matching this connector's provider. */
1074
+ aws?: InputMaybe<AwsManagedCollectorProviderOverridesInput>;
1075
+ };
1024
1076
  /**
1025
1077
  * One managed Collector: identity, computed status, and the desired/current split that makes drift
1026
1078
  * visible rather than implicit in a stale message.
1027
1079
  *
1028
- * Identity is `region`. Never the host network (a Collector can be moved between networks in its region)
1080
+ * Identity is `region`. Never the network (a Collector can be moved between networks in its region)
1029
1081
  * and never the OpAMP instance uid (that rotates every time the underlying task is replaced).
1030
1082
  */
1031
1083
  export type ManagedCollectorReport = {
@@ -1041,12 +1093,6 @@ export type ManagedCollectorReport = {
1041
1093
  * ignore this entirely.
1042
1094
  */
1043
1095
  details?: Maybe<ManagedCollectorDetails>;
1044
- /**
1045
- * Provider network the Collector RUNS IN: VPC id on AWS, VNet on Azure, VPC network on GCP.
1046
- *
1047
- * Placement metadata, not identity — see the schema header. Empty before placement has resolved a host.
1048
- */
1049
- hostNetworkId: Scalars['String']['output'];
1050
1096
  /**
1051
1097
  * OpAMP instance uid of the current connection; null when never-connected. Useful for correlating
1052
1098
  * this report with the Collector's own Supervisor logs. Not an identity — see the type doc.
@@ -1058,7 +1104,7 @@ export type ManagedCollectorReport = {
1058
1104
  * on `code`, not parse a sentence back apart.
1059
1105
  */
1060
1106
  issues: Array<ManagedCollectorIssue>;
1061
- /** Collector type, e.g. "aws.fargate-collector". Informational; identity is `region`. */
1107
+ /** Provider-defined Collector implementation kind. Informational; identity is `region`. */
1062
1108
  kind: Scalars['String']['output'];
1063
1109
  /**
1064
1110
  * never-connected | live | stale.
@@ -1075,12 +1121,28 @@ export type ManagedCollectorReport = {
1075
1121
  * because a status a client's version does not recognize still has to render as something.
1076
1122
  */
1077
1123
  message: Scalars['String']['output'];
1124
+ /**
1125
+ * Provider network the Collector runs in. Provider-specific placement settings are in `desired.providerOverrides`.
1126
+ *
1127
+ * Placement metadata, not identity — see the schema header. Empty before placement has resolved a host.
1128
+ */
1129
+ networkId: Scalars['String']['output'];
1078
1130
  region: Scalars['String']['output'];
1079
1131
  /** Pending | Deploying | Ready | Degraded | Error | AwaitingCustomer. */
1080
1132
  status: Scalars['String']['output'];
1081
1133
  /** RFC3339 timestamp of the last report refresh. */
1082
1134
  updatedAt: Scalars['String']['output'];
1083
1135
  };
1136
+ export type ManagedCollectorRetention = {
1137
+ __typename?: 'ManagedCollectorRetention';
1138
+ idleDeleteAfterHours: Scalars['Int']['output'];
1139
+ idleScaleToZeroAfterHours: Scalars['Int']['output'];
1140
+ };
1141
+ /** Hours of continuous idleness before a disabled or source-free Collector is parked or removed. Zero keeps it. */
1142
+ export type ManagedCollectorRetentionInput = {
1143
+ idleDeleteAfterHours?: InputMaybe<Scalars['Int']['input']>;
1144
+ idleScaleToZeroAfterHours?: InputMaybe<Scalars['Int']['input']>;
1145
+ };
1084
1146
  /** Scaling policy. `mode` is manual (fixed desiredCount) or auto (the platform autoscaler bounds). */
1085
1147
  export type ManagedCollectorScalingInput = {
1086
1148
  desiredCount?: InputMaybe<Scalars['Int']['input']>;
@@ -1119,7 +1181,7 @@ export type ManagedCollectorScalingTarget = {
1119
1181
  */
1120
1182
  export type ManagedCollectorTransport = {
1121
1183
  __typename?: 'ManagedCollectorTransport';
1122
- /** Reference to the certificate: an ACM ARN, or a secret ref. Never a certificate or key value. */
1184
+ /** Reference to a certificate or secret containing it. Never a certificate or key value. */
1123
1185
  certificateRef?: Maybe<Scalars['String']['output']>;
1124
1186
  /**
1125
1187
  * A hostname the customer owns, required by every mode that presents a certificate.
@@ -1133,7 +1195,7 @@ export type ManagedCollectorTransport = {
1133
1195
  mode?: Maybe<Scalars['String']['output']>;
1134
1196
  };
1135
1197
  export type ManagedCollectorTransportInput = {
1136
- /** An ACM ARN or a secret ref. Never a certificate or key value. */
1198
+ /** A provider certificate identifier or a secret reference. Never a certificate or key value. */
1137
1199
  certificateRef?: InputMaybe<Scalars['String']['input']>;
1138
1200
  hostname?: InputMaybe<Scalars['String']['input']>;
1139
1201
  /** off | platform | loadBalancer | collector. */
@@ -1175,11 +1237,21 @@ export type Mutation = {
1175
1237
  enableSourceProfiling: SlotResult;
1176
1238
  generateDiagnoseBundle: DiagnoseBundle;
1177
1239
  generateProfileBundle: ProfileBundle;
1240
+ /**
1241
+ * Issue the one-time OpAMP authorization header for a manually deployed Collector.
1242
+ *
1243
+ * Odigos does not create or update the referenced secret, or any other cloud resource. Persist the
1244
+ * returned header in `secretRef` and deploy or redeploy the Collector with it. Set `rotate` to replace
1245
+ * an existing credential, including when a prior one-time response was lost.
1246
+ */
1247
+ issueManagedCollectorCredential: IssueManagedCollectorCredentialPayload;
1178
1248
  /** Trigger an out-of-band provider discovery refresh; returns true if a refresh was enqueued. */
1179
1249
  refreshDiscovery: Scalars['Boolean']['output'];
1180
1250
  /** Request bounded cleanup of connector-created resources. Not implemented in the discovery-only phase. */
1181
1251
  requestCleanup: Scalars['Boolean']['output'];
1182
1252
  restartSource: RestartSourcePayload;
1253
+ /** Admin-only revocation; the Collector must use a replacement credential to reconnect. */
1254
+ revokeManagedCollectorCredential: RevokeManagedCollectorCredentialPayload;
1183
1255
  startBackgroundProfileBundle: ProfileBundleStatus;
1184
1256
  /**
1185
1257
  * Request teardown of one region's Collector.
@@ -1268,12 +1340,18 @@ export type MutationGenerateProfileBundleArgs = {
1268
1340
  durationSeconds?: InputMaybe<Scalars['Int']['input']>;
1269
1341
  service?: InputMaybe<Scalars['String']['input']>;
1270
1342
  };
1343
+ export type MutationIssueManagedCollectorCredentialArgs = {
1344
+ input: IssueManagedCollectorCredentialInput;
1345
+ };
1271
1346
  export type MutationRequestCleanupArgs = {
1272
1347
  id: Scalars['String']['input'];
1273
1348
  };
1274
1349
  export type MutationRestartSourceArgs = {
1275
1350
  input: RestartSourceInput;
1276
1351
  };
1352
+ export type MutationRevokeManagedCollectorCredentialArgs = {
1353
+ input: RevokeManagedCollectorCredentialInput;
1354
+ };
1277
1355
  export type MutationStartBackgroundProfileBundleArgs = {
1278
1356
  durationSeconds?: InputMaybe<Scalars['Int']['input']>;
1279
1357
  service?: InputMaybe<Scalars['String']['input']>;
@@ -1453,9 +1531,9 @@ export type Query = {
1453
1531
  /**
1454
1532
  * Counters for one region's Collector; null when none is recorded there or it has never reported.
1455
1533
  *
1456
- * Cached by default. `refresh: true` asks the running Collector for a fresh snapshot and falls back to
1457
- * the cached one (with `live: false`) when it is not connected or does not answer promptly — a slow
1458
- * Collector degrades this query's freshness, never its availability.
1534
+ * Cached by default. `refresh: true` waits briefly for the next periodic own-metrics report and falls
1535
+ * back to the cached one (with `live: false`) if no report arrives. OpAMP does not provide a synchronous
1536
+ * metrics request, so this argument cannot force a Collector to report immediately.
1459
1537
  */
1460
1538
  managedCollectorMetrics?: Maybe<ManagedCollectorMetrics>;
1461
1539
  /** One Collector by region; null when this connector has none there. */
@@ -1577,6 +1655,17 @@ export type RevisionedServiceWorkloadDetails = WorkloadDetails & {
1577
1655
  /** Fully-qualified platform resource identity: the Cloud Run service name, or the Container App resource id. */
1578
1656
  service?: Maybe<Scalars['String']['output']>;
1579
1657
  };
1658
+ /** Revoke one manual Collector credential after rotation or compromise. */
1659
+ export type RevokeManagedCollectorCredentialInput = {
1660
+ credentialId: Scalars['String']['input'];
1661
+ region: Scalars['String']['input'];
1662
+ };
1663
+ export type RevokeManagedCollectorCredentialPayload = {
1664
+ __typename?: 'RevokeManagedCollectorCredentialPayload';
1665
+ credentialId: Scalars['String']['output'];
1666
+ region: Scalars['String']['output'];
1667
+ revoked: Scalars['Boolean']['output'];
1668
+ };
1580
1669
  export declare enum RuleType {
1581
1670
  CodeAttributes = "CodeAttributes",
1582
1671
  CustomInstrumentation = "CustomInstrumentation",
@@ -1836,31 +1925,31 @@ export type UpdateManagedCollectorDestinationInput = {
1836
1925
  */
1837
1926
  export type UpdateManagedCollectorInput = {
1838
1927
  arch?: InputMaybe<Scalars['String']['input']>;
1839
- assignPublicIp?: InputMaybe<Scalars['Boolean']['input']>;
1840
- clusterRef?: InputMaybe<Scalars['String']['input']>;
1841
1928
  cpu?: InputMaybe<Scalars['String']['input']>;
1929
+ /** Replace the customer-provisioned deployment identity for this region. */
1930
+ deploymentRoleRef?: InputMaybe<Scalars['String']['input']>;
1842
1931
  /**
1843
- * Setting this to false stops convergence and leaves everything running — it does NOT remove the
1844
- * Collector. Use teardownManagedCollector to destroy it.
1932
+ * Setting this to false stops convergence. Default retention keeps the Collector running;
1933
+ * a configured retention policy can park or remove it after its idle grace.
1845
1934
  */
1846
1935
  enabled?: InputMaybe<Scalars['Boolean']['input']>;
1847
1936
  endpointOverride?: InputMaybe<Scalars['String']['input']>;
1848
- /**
1849
- * Moving the Collector to another network is a REDEPLOYMENT of the same logical Collector: its
1850
- * credential is replaced and its infrastructure rebuilt in the new network.
1851
- */
1852
- hostNetworkId?: InputMaybe<Scalars['String']['input']>;
1853
1937
  imageRepositoryOverride?: InputMaybe<Scalars['String']['input']>;
1854
1938
  ingress?: InputMaybe<ManagedCollectorIngressInput>;
1855
1939
  logRetentionDays?: InputMaybe<Scalars['Int']['input']>;
1856
1940
  memory?: InputMaybe<Scalars['String']['input']>;
1941
+ /**
1942
+ * On AWS automatic mode, a changed VPC starts a resumable old-stack teardown followed by
1943
+ * provisioning in the new VPC; update networkId separately from other fields. In manual mode,
1944
+ * the customer moves IaC and re-issues the revoked network-bound OpAMP credential.
1945
+ */
1946
+ networkId?: InputMaybe<Scalars['String']['input']>;
1947
+ providerOverrides?: InputMaybe<ManagedCollectorProviderOverridesInput>;
1857
1948
  region: Scalars['String']['input'];
1949
+ retention?: InputMaybe<ManagedCollectorRetentionInput>;
1858
1950
  rolloutBatchSize?: InputMaybe<Scalars['Int']['input']>;
1859
1951
  scaling?: InputMaybe<ManagedCollectorScalingInput>;
1860
- securityGroupIds?: InputMaybe<Array<Scalars['String']['input']>>;
1861
- subnetIds?: InputMaybe<Array<Scalars['String']['input']>>;
1862
1952
  transport?: InputMaybe<ManagedCollectorTransportInput>;
1863
- useFargateSpot?: InputMaybe<Scalars['Boolean']['input']>;
1864
1953
  };
1865
1954
  export type UpdateSourceInput = {
1866
1955
  config?: InputMaybe<SourceConfigInput>;
@@ -3255,7 +3344,7 @@ export type GetManagedCollectorReportsQuery = {
3255
3344
  managedCollectorReports: Array<{
3256
3345
  __typename?: 'ManagedCollectorReport';
3257
3346
  region: string;
3258
- hostNetworkId: string;
3347
+ networkId: string;
3259
3348
  kind: string;
3260
3349
  status: string;
3261
3350
  message: string;
@@ -3265,11 +3354,8 @@ export type GetManagedCollectorReportsQuery = {
3265
3354
  desired: {
3266
3355
  __typename?: 'ManagedCollectorDesired';
3267
3356
  enabled: boolean;
3268
- hostNetworkId?: string | null;
3269
- subnetIds?: Array<string> | null;
3270
- securityGroupIds?: Array<string> | null;
3271
- clusterRef?: string | null;
3272
- assignPublicIp: boolean;
3357
+ networkId?: string | null;
3358
+ deploymentRoleRef?: string | null;
3273
3359
  cpu: string;
3274
3360
  memory: string;
3275
3361
  logRetentionDays: number;
@@ -3285,6 +3371,11 @@ export type GetManagedCollectorReportsQuery = {
3285
3371
  targetCpuPercent?: number | null;
3286
3372
  targetMemoryPercent?: number | null;
3287
3373
  };
3374
+ retention: {
3375
+ __typename?: 'ManagedCollectorRetention';
3376
+ idleScaleToZeroAfterHours: number;
3377
+ idleDeleteAfterHours: number;
3378
+ };
3288
3379
  transport: {
3289
3380
  __typename?: 'ManagedCollectorTransport';
3290
3381
  mode?: string | null;
@@ -3293,10 +3384,20 @@ export type GetManagedCollectorReportsQuery = {
3293
3384
  };
3294
3385
  ingress: {
3295
3386
  __typename?: 'ManagedCollectorIngress';
3296
- additionalSecurityGroupIds?: Array<string> | null;
3297
3387
  additionalCidrs?: Array<string> | null;
3388
+ };
3389
+ providerOverrides: {
3390
+ __typename?: 'AwsManagedCollectorProviderOverrides';
3391
+ executionRoleArn?: string | null;
3392
+ subnetIds?: Array<string> | null;
3393
+ securityGroupIds?: Array<string> | null;
3394
+ clusterRef?: string | null;
3395
+ assignPublicIp: boolean;
3396
+ useFargateSpot: boolean;
3397
+ additionalSecurityGroupIds?: Array<string> | null;
3298
3398
  allowNetworkCidrFallback: boolean;
3299
3399
  minFallbackPrefixLength?: number | null;
3400
+ provider: string;
3300
3401
  };
3301
3402
  };
3302
3403
  current: {
@@ -3380,7 +3481,7 @@ export type GetManagedCollectorReportQuery = {
3380
3481
  managedCollectorReport?: {
3381
3482
  __typename?: 'ManagedCollectorReport';
3382
3483
  region: string;
3383
- hostNetworkId: string;
3484
+ networkId: string;
3384
3485
  kind: string;
3385
3486
  status: string;
3386
3487
  message: string;
@@ -3390,11 +3491,8 @@ export type GetManagedCollectorReportQuery = {
3390
3491
  desired: {
3391
3492
  __typename?: 'ManagedCollectorDesired';
3392
3493
  enabled: boolean;
3393
- hostNetworkId?: string | null;
3394
- subnetIds?: Array<string> | null;
3395
- securityGroupIds?: Array<string> | null;
3396
- clusterRef?: string | null;
3397
- assignPublicIp: boolean;
3494
+ networkId?: string | null;
3495
+ deploymentRoleRef?: string | null;
3398
3496
  cpu: string;
3399
3497
  memory: string;
3400
3498
  logRetentionDays: number;
@@ -3410,6 +3508,11 @@ export type GetManagedCollectorReportQuery = {
3410
3508
  targetCpuPercent?: number | null;
3411
3509
  targetMemoryPercent?: number | null;
3412
3510
  };
3511
+ retention: {
3512
+ __typename?: 'ManagedCollectorRetention';
3513
+ idleScaleToZeroAfterHours: number;
3514
+ idleDeleteAfterHours: number;
3515
+ };
3413
3516
  transport: {
3414
3517
  __typename?: 'ManagedCollectorTransport';
3415
3518
  mode?: string | null;
@@ -3418,10 +3521,20 @@ export type GetManagedCollectorReportQuery = {
3418
3521
  };
3419
3522
  ingress: {
3420
3523
  __typename?: 'ManagedCollectorIngress';
3421
- additionalSecurityGroupIds?: Array<string> | null;
3422
3524
  additionalCidrs?: Array<string> | null;
3525
+ };
3526
+ providerOverrides: {
3527
+ __typename?: 'AwsManagedCollectorProviderOverrides';
3528
+ executionRoleArn?: string | null;
3529
+ subnetIds?: Array<string> | null;
3530
+ securityGroupIds?: Array<string> | null;
3531
+ clusterRef?: string | null;
3532
+ assignPublicIp: boolean;
3533
+ useFargateSpot: boolean;
3534
+ additionalSecurityGroupIds?: Array<string> | null;
3423
3535
  allowNetworkCidrFallback: boolean;
3424
3536
  minFallbackPrefixLength?: number | null;
3537
+ provider: string;
3425
3538
  };
3426
3539
  };
3427
3540
  current: {
@@ -3505,7 +3618,8 @@ export type GetManagedCollectorInstructionsQuery = {
3505
3618
  managedCollectorInstructions?: {
3506
3619
  __typename?: 'ManagedCollectorInstructions';
3507
3620
  region: string;
3508
- hostNetworkId: string;
3621
+ deploymentRoleRef?: string | null;
3622
+ networkId: string;
3509
3623
  mode: string;
3510
3624
  notes: Array<string>;
3511
3625
  updatedAt: string;
@@ -3565,7 +3679,7 @@ export type CreateManagedCollectorMutation = {
3565
3679
  createManagedCollector: {
3566
3680
  __typename?: 'ManagedCollectorReport';
3567
3681
  region: string;
3568
- hostNetworkId: string;
3682
+ networkId: string;
3569
3683
  kind: string;
3570
3684
  status: string;
3571
3685
  message: string;
@@ -3575,11 +3689,8 @@ export type CreateManagedCollectorMutation = {
3575
3689
  desired: {
3576
3690
  __typename?: 'ManagedCollectorDesired';
3577
3691
  enabled: boolean;
3578
- hostNetworkId?: string | null;
3579
- subnetIds?: Array<string> | null;
3580
- securityGroupIds?: Array<string> | null;
3581
- clusterRef?: string | null;
3582
- assignPublicIp: boolean;
3692
+ networkId?: string | null;
3693
+ deploymentRoleRef?: string | null;
3583
3694
  cpu: string;
3584
3695
  memory: string;
3585
3696
  logRetentionDays: number;
@@ -3595,6 +3706,11 @@ export type CreateManagedCollectorMutation = {
3595
3706
  targetCpuPercent?: number | null;
3596
3707
  targetMemoryPercent?: number | null;
3597
3708
  };
3709
+ retention: {
3710
+ __typename?: 'ManagedCollectorRetention';
3711
+ idleScaleToZeroAfterHours: number;
3712
+ idleDeleteAfterHours: number;
3713
+ };
3598
3714
  transport: {
3599
3715
  __typename?: 'ManagedCollectorTransport';
3600
3716
  mode?: string | null;
@@ -3603,10 +3719,20 @@ export type CreateManagedCollectorMutation = {
3603
3719
  };
3604
3720
  ingress: {
3605
3721
  __typename?: 'ManagedCollectorIngress';
3606
- additionalSecurityGroupIds?: Array<string> | null;
3607
3722
  additionalCidrs?: Array<string> | null;
3723
+ };
3724
+ providerOverrides: {
3725
+ __typename?: 'AwsManagedCollectorProviderOverrides';
3726
+ executionRoleArn?: string | null;
3727
+ subnetIds?: Array<string> | null;
3728
+ securityGroupIds?: Array<string> | null;
3729
+ clusterRef?: string | null;
3730
+ assignPublicIp: boolean;
3731
+ useFargateSpot: boolean;
3732
+ additionalSecurityGroupIds?: Array<string> | null;
3608
3733
  allowNetworkCidrFallback: boolean;
3609
3734
  minFallbackPrefixLength?: number | null;
3735
+ provider: string;
3610
3736
  };
3611
3737
  };
3612
3738
  current: {
@@ -3690,7 +3816,7 @@ export type UpdateManagedCollectorMutation = {
3690
3816
  updateManagedCollector: {
3691
3817
  __typename?: 'ManagedCollectorReport';
3692
3818
  region: string;
3693
- hostNetworkId: string;
3819
+ networkId: string;
3694
3820
  kind: string;
3695
3821
  status: string;
3696
3822
  message: string;
@@ -3700,11 +3826,8 @@ export type UpdateManagedCollectorMutation = {
3700
3826
  desired: {
3701
3827
  __typename?: 'ManagedCollectorDesired';
3702
3828
  enabled: boolean;
3703
- hostNetworkId?: string | null;
3704
- subnetIds?: Array<string> | null;
3705
- securityGroupIds?: Array<string> | null;
3706
- clusterRef?: string | null;
3707
- assignPublicIp: boolean;
3829
+ networkId?: string | null;
3830
+ deploymentRoleRef?: string | null;
3708
3831
  cpu: string;
3709
3832
  memory: string;
3710
3833
  logRetentionDays: number;
@@ -3720,6 +3843,11 @@ export type UpdateManagedCollectorMutation = {
3720
3843
  targetCpuPercent?: number | null;
3721
3844
  targetMemoryPercent?: number | null;
3722
3845
  };
3846
+ retention: {
3847
+ __typename?: 'ManagedCollectorRetention';
3848
+ idleScaleToZeroAfterHours: number;
3849
+ idleDeleteAfterHours: number;
3850
+ };
3723
3851
  transport: {
3724
3852
  __typename?: 'ManagedCollectorTransport';
3725
3853
  mode?: string | null;
@@ -3728,10 +3856,20 @@ export type UpdateManagedCollectorMutation = {
3728
3856
  };
3729
3857
  ingress: {
3730
3858
  __typename?: 'ManagedCollectorIngress';
3731
- additionalSecurityGroupIds?: Array<string> | null;
3732
3859
  additionalCidrs?: Array<string> | null;
3860
+ };
3861
+ providerOverrides: {
3862
+ __typename?: 'AwsManagedCollectorProviderOverrides';
3863
+ executionRoleArn?: string | null;
3864
+ subnetIds?: Array<string> | null;
3865
+ securityGroupIds?: Array<string> | null;
3866
+ clusterRef?: string | null;
3867
+ assignPublicIp: boolean;
3868
+ useFargateSpot: boolean;
3869
+ additionalSecurityGroupIds?: Array<string> | null;
3733
3870
  allowNetworkCidrFallback: boolean;
3734
3871
  minFallbackPrefixLength?: number | null;
3872
+ provider: string;
3735
3873
  };
3736
3874
  };
3737
3875
  current: {
@@ -3820,10 +3958,35 @@ export type TeardownManagedCollectorMutation = {
3820
3958
  retained: Array<string>;
3821
3959
  };
3822
3960
  };
3961
+ export type IssueManagedCollectorCredentialMutationVariables = Exact<{
3962
+ input: IssueManagedCollectorCredentialInput;
3963
+ }>;
3964
+ export type IssueManagedCollectorCredentialMutation = {
3965
+ __typename?: 'Mutation';
3966
+ issueManagedCollectorCredential: {
3967
+ __typename?: 'IssueManagedCollectorCredentialPayload';
3968
+ collectorId: string;
3969
+ credentialId: string;
3970
+ authorizationHeader: string;
3971
+ secretRef: string;
3972
+ };
3973
+ };
3974
+ export type RevokeManagedCollectorCredentialMutationVariables = Exact<{
3975
+ input: RevokeManagedCollectorCredentialInput;
3976
+ }>;
3977
+ export type RevokeManagedCollectorCredentialMutation = {
3978
+ __typename?: 'Mutation';
3979
+ revokeManagedCollectorCredential: {
3980
+ __typename?: 'RevokeManagedCollectorCredentialPayload';
3981
+ region: string;
3982
+ credentialId: string;
3983
+ revoked: boolean;
3984
+ };
3985
+ };
3823
3986
  export type ManagedCollectorReportFieldsFragment = {
3824
3987
  __typename?: 'ManagedCollectorReport';
3825
3988
  region: string;
3826
- hostNetworkId: string;
3989
+ networkId: string;
3827
3990
  kind: string;
3828
3991
  status: string;
3829
3992
  message: string;
@@ -3833,11 +3996,8 @@ export type ManagedCollectorReportFieldsFragment = {
3833
3996
  desired: {
3834
3997
  __typename?: 'ManagedCollectorDesired';
3835
3998
  enabled: boolean;
3836
- hostNetworkId?: string | null;
3837
- subnetIds?: Array<string> | null;
3838
- securityGroupIds?: Array<string> | null;
3839
- clusterRef?: string | null;
3840
- assignPublicIp: boolean;
3999
+ networkId?: string | null;
4000
+ deploymentRoleRef?: string | null;
3841
4001
  cpu: string;
3842
4002
  memory: string;
3843
4003
  logRetentionDays: number;
@@ -3853,6 +4013,11 @@ export type ManagedCollectorReportFieldsFragment = {
3853
4013
  targetCpuPercent?: number | null;
3854
4014
  targetMemoryPercent?: number | null;
3855
4015
  };
4016
+ retention: {
4017
+ __typename?: 'ManagedCollectorRetention';
4018
+ idleScaleToZeroAfterHours: number;
4019
+ idleDeleteAfterHours: number;
4020
+ };
3856
4021
  transport: {
3857
4022
  __typename?: 'ManagedCollectorTransport';
3858
4023
  mode?: string | null;
@@ -3861,10 +4026,20 @@ export type ManagedCollectorReportFieldsFragment = {
3861
4026
  };
3862
4027
  ingress: {
3863
4028
  __typename?: 'ManagedCollectorIngress';
3864
- additionalSecurityGroupIds?: Array<string> | null;
3865
4029
  additionalCidrs?: Array<string> | null;
4030
+ };
4031
+ providerOverrides: {
4032
+ __typename?: 'AwsManagedCollectorProviderOverrides';
4033
+ executionRoleArn?: string | null;
4034
+ subnetIds?: Array<string> | null;
4035
+ securityGroupIds?: Array<string> | null;
4036
+ clusterRef?: string | null;
4037
+ assignPublicIp: boolean;
4038
+ useFargateSpot: boolean;
4039
+ additionalSecurityGroupIds?: Array<string> | null;
3866
4040
  allowNetworkCidrFallback: boolean;
3867
4041
  minFallbackPrefixLength?: number | null;
4042
+ provider: string;
3868
4043
  };
3869
4044
  };
3870
4045
  current: {
@@ -5715,6 +5890,8 @@ export declare const GetManagedCollectorMetricsDocument: DocumentNode<GetManaged
5715
5890
  export declare const CreateManagedCollectorDocument: DocumentNode<CreateManagedCollectorMutation, CreateManagedCollectorMutationVariables>;
5716
5891
  export declare const UpdateManagedCollectorDocument: DocumentNode<UpdateManagedCollectorMutation, UpdateManagedCollectorMutationVariables>;
5717
5892
  export declare const TeardownManagedCollectorDocument: DocumentNode<TeardownManagedCollectorMutation, TeardownManagedCollectorMutationVariables>;
5893
+ export declare const IssueManagedCollectorCredentialDocument: DocumentNode<IssueManagedCollectorCredentialMutation, IssueManagedCollectorCredentialMutationVariables>;
5894
+ export declare const RevokeManagedCollectorCredentialDocument: DocumentNode<RevokeManagedCollectorCredentialMutation, RevokeManagedCollectorCredentialMutationVariables>;
5718
5895
  export declare const GetManagedCollectorDestinationTypesDocument: DocumentNode<GetManagedCollectorDestinationTypesQuery, GetManagedCollectorDestinationTypesQueryVariables>;
5719
5896
  export declare const ListManagedCollectorDestinationsDocument: DocumentNode<ListManagedCollectorDestinationsQuery, ListManagedCollectorDestinationsQueryVariables>;
5720
5897
  export declare const GetManagedCollectorDestinationDocument: DocumentNode<GetManagedCollectorDestinationQuery, GetManagedCollectorDestinationQueryVariables>;