@commercetools-frontend/application-shell 27.10.0 → 27.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{index-245e2980.cjs.prod.js → application-entry-point-516fd72c.cjs.prod.js} +70 -4
  2. package/dist/{index-86039df7.esm.js → application-entry-point-e20cafdb.esm.js} +81 -7
  3. package/dist/{index-614accc4.cjs.dev.js → application-entry-point-e5623556.cjs.dev.js} +80 -4
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +14 -13
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +14 -13
  6. package/dist/commercetools-frontend-application-shell.esm.js +12 -11
  7. package/dist/{custom-view-dev-host-c5cae7af.cjs.prod.js → custom-view-dev-host-24cfaf96.cjs.prod.js} +6 -5
  8. package/dist/{custom-view-dev-host-8925c254.esm.js → custom-view-dev-host-802ebe34.esm.js} +6 -5
  9. package/dist/{custom-view-dev-host-16c18b8b.cjs.dev.js → custom-view-dev-host-c2b65fe2.cjs.dev.js} +6 -5
  10. package/dist/declarations/src/types/generated/mc.d.ts +121 -0
  11. package/dist/declarations-connectors/src/components/application-context/application-context.d.ts +4 -0
  12. package/dist/declarations-connectors/src/types/generated/mc.d.ts +121 -0
  13. package/dist/index-177f89cf.esm.js +2075 -0
  14. package/dist/index-3244236c.cjs.dev.js +2136 -0
  15. package/dist/{index-ce507805.cjs.prod.js → index-fc58c6bb.cjs.prod.js} +138 -77
  16. package/dist/{navbar-f4b2552d.cjs.prod.js → navbar-4bc16e7b.cjs.prod.js} +53 -10
  17. package/dist/{navbar-59504b51.cjs.dev.js → navbar-5c41b7a0.cjs.dev.js} +56 -10
  18. package/dist/{navbar-9eb6c972.esm.js → navbar-5e436a16.esm.js} +57 -11
  19. package/dist/{oidc-callback-ec951044.cjs.dev.js → oidc-callback-1c6e8104.cjs.dev.js} +7 -6
  20. package/dist/{oidc-callback-5b213b4f.cjs.prod.js → oidc-callback-b0d573ac.cjs.prod.js} +7 -6
  21. package/dist/{oidc-callback-1836d6f9.esm.js → oidc-callback-b409680a.esm.js} +7 -6
  22. package/dist/{project-container-d44394a1.cjs.prod.js → project-container-4f14fd7c.cjs.prod.js} +12 -13
  23. package/dist/{project-container-7f13b722.esm.js → project-container-b73d2651.esm.js} +12 -13
  24. package/dist/{project-container-bd7b1263.cjs.dev.js → project-container-b75269ed.cjs.dev.js} +12 -13
  25. package/dist/{project-expired-200d21fc.cjs.dev.js → project-expired-1cda3b7e.cjs.dev.js} +8 -7
  26. package/dist/{project-expired-b0f48929.esm.js → project-expired-cb01ca7d.esm.js} +8 -7
  27. package/dist/{project-expired-fbd3b921.cjs.prod.js → project-expired-f19a3356.cjs.prod.js} +8 -7
  28. package/dist/{project-not-found-2c4da477.cjs.prod.js → project-not-found-52441a8a.cjs.prod.js} +8 -7
  29. package/dist/{project-not-found-6a2f3959.cjs.dev.js → project-not-found-548c0653.cjs.dev.js} +8 -7
  30. package/dist/{project-not-found-2b48a462.esm.js → project-not-found-69a22191.esm.js} +8 -7
  31. package/dist/{project-not-initialized-d1532d05.cjs.prod.js → project-not-initialized-6c2babc1.cjs.prod.js} +8 -7
  32. package/dist/{project-not-initialized-a4cdccae.cjs.dev.js → project-not-initialized-bc2258f1.cjs.dev.js} +8 -7
  33. package/dist/{project-not-initialized-8324ddc0.esm.js → project-not-initialized-f0168385.esm.js} +8 -7
  34. package/dist/{project-suspended-0450891d.cjs.prod.js → project-suspended-31c52b75.cjs.prod.js} +8 -7
  35. package/dist/{project-suspended-42ac696c.cjs.dev.js → project-suspended-6a83941a.cjs.dev.js} +8 -7
  36. package/dist/{project-suspended-ab7faf16.esm.js → project-suspended-ef485212.esm.js} +8 -7
  37. package/dist/{redirect-to-login-6675c038.cjs.prod.js → redirect-to-login-18f6e1b8.cjs.prod.js} +1 -1
  38. package/dist/{redirect-to-login-8a61864c.cjs.dev.js → redirect-to-login-4dbf1c4e.cjs.dev.js} +1 -1
  39. package/dist/{redirect-to-login-b79d0910.esm.js → redirect-to-login-79be7369.esm.js} +2 -2
  40. package/dist/{redirect-to-logout-4de14b5d.esm.js → redirect-to-logout-404ac2d3.esm.js} +9 -8
  41. package/dist/{redirect-to-logout-37258f53.cjs.dev.js → redirect-to-logout-4ccdb9c6.cjs.dev.js} +8 -7
  42. package/dist/{redirect-to-logout-71e8db26.cjs.prod.js → redirect-to-logout-a42e3df6.cjs.prod.js} +8 -7
  43. package/dist/{redirect-to-project-create-9249e554.esm.js → redirect-to-project-create-3a88851c.esm.js} +2 -1
  44. package/dist/{redirect-to-project-create-e4ff7797.cjs.prod.js → redirect-to-project-create-603634dd.cjs.prod.js} +2 -1
  45. package/dist/{redirect-to-project-create-f4f01842.cjs.dev.js → redirect-to-project-create-611ee583.cjs.dev.js} +2 -1
  46. package/dist/{requests-in-flight-loader-60a2553f.cjs.dev.js → requests-in-flight-loader-324287e5.cjs.dev.js} +8 -7
  47. package/dist/{requests-in-flight-loader-b33d695b.cjs.prod.js → requests-in-flight-loader-7cc3150d.cjs.prod.js} +8 -7
  48. package/dist/{requests-in-flight-loader-dd13291f.esm.js → requests-in-flight-loader-f969e2f0.esm.js} +8 -7
  49. package/dist/{service-page-project-switcher-70a8155d.cjs.prod.js → service-page-project-switcher-87f8935d.cjs.prod.js} +1 -1
  50. package/dist/{service-page-project-switcher-db1d0801.esm.js → service-page-project-switcher-a55a912e.esm.js} +1 -1
  51. package/dist/{service-page-project-switcher-974235d0.cjs.dev.js → service-page-project-switcher-c91f0690.cjs.dev.js} +1 -1
  52. package/dist/{use-applications-menu-bd718ac8.cjs.dev.js → use-applications-menu-3526c994.cjs.prod.js} +3 -1
  53. package/dist/{use-applications-menu-8984efa1.cjs.prod.js → use-applications-menu-c36dd4d1.cjs.dev.js} +3 -1
  54. package/dist/{use-applications-menu-bc2b9a66.esm.js → use-applications-menu-ed43547f.esm.js} +3 -1
  55. package/dist/{user-settings-menu-2235add2.cjs.prod.js → user-settings-menu-06f023d0.cjs.prod.js} +3 -3
  56. package/dist/user-settings-menu-5ff9536e.cjs.dev.js +345 -0
  57. package/dist/user-settings-menu-64158494.esm.js +320 -0
  58. package/package.json +17 -17
  59. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +6 -6
  60. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +6 -6
  61. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +4 -4
  62. package/dist/application-entry-point-10a5e1a5.esm.js +0 -82
  63. package/dist/application-entry-point-8c4b8e53.cjs.prod.js +0 -86
  64. package/dist/application-entry-point-c87294b0.cjs.dev.js +0 -96
  65. package/dist/index-ac7ed4f7.esm.js +0 -2014
  66. package/dist/index-c7140b1c.cjs.dev.js +0 -2075
  67. package/dist/user-settings-menu-a1d0ba8e.esm.js +0 -320
  68. package/dist/user-settings-menu-b8359b8b.cjs.dev.js +0 -345
@@ -10,9 +10,10 @@ var Constraints = require('@commercetools-uikit/constraints');
10
10
  var PrimaryButton = require('@commercetools-uikit/primary-button');
11
11
  var Spacings = require('@commercetools-uikit/spacings');
12
12
  var Text = require('@commercetools-uikit/text');
13
- var dist_commercetoolsFrontendApplicationShell = require('./index-ce507805.cjs.prod.js');
13
+ var dist_commercetoolsFrontendApplicationShell = require('./index-fc58c6bb.cjs.prod.js');
14
14
  var jsxRuntime = require('@emotion/react/jsx-runtime');
15
- require('./index-245e2980.cjs.prod.js');
15
+ require('@commercetools-frontend/constants');
16
+ require('./application-entry-point-516fd72c.cjs.prod.js');
16
17
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
17
18
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
18
19
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -32,7 +33,6 @@ require('omit-empty-es');
32
33
  require('redux');
33
34
  require('redux-thunk');
34
35
  require('@commercetools-frontend/application-shell-connectors');
35
- require('@commercetools-frontend/constants');
36
36
  require('@commercetools-frontend/notifications');
37
37
  require('@commercetools-frontend/sdk');
38
38
  require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
@@ -42,6 +42,9 @@ require('@commercetools-frontend/sentry');
42
42
  require('@commercetools-frontend/react-notifications');
43
43
  require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
44
44
  require('redux-logger');
45
+ require('tiny-invariant');
46
+ require('@commercetools-frontend/application-config/ssr');
47
+ require('@commercetools-frontend/permissions');
45
48
  require('@emotion/styled/base');
46
49
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
47
50
  require('@babel/runtime-corejs3/core-js-stable/array/is-array');
@@ -79,8 +82,6 @@ require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
79
82
  require('@babel/runtime-corejs3/helpers/getPrototypeOf');
80
83
  require('@babel/runtime-corejs3/helpers/inherits');
81
84
  require('@commercetools-uikit/design-system/materials/resets.css');
82
- require('@commercetools-frontend/application-config/ssr');
83
- require('@commercetools-frontend/permissions');
84
85
  require('@flopflip/memory-adapter');
85
86
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
86
87
  require('@babel/runtime-corejs3/core-js-stable/instance/some');
@@ -8,9 +8,10 @@ import Constraints from '@commercetools-uikit/constraints';
8
8
  import PrimaryButton from '@commercetools-uikit/primary-button';
9
9
  import Spacings from '@commercetools-uikit/spacings';
10
10
  import Text from '@commercetools-uikit/text';
11
- import { A as ApplicationShell } from './index-ac7ed4f7.esm.js';
11
+ import { A as ApplicationShell } from './index-177f89cf.esm.js';
12
12
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
13
- import './index-86039df7.esm.js';
13
+ import '@commercetools-frontend/constants';
14
+ import './application-entry-point-e20cafdb.esm.js';
14
15
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
15
16
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
16
17
  import '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -30,7 +31,6 @@ import 'omit-empty-es';
30
31
  import 'redux';
31
32
  import 'redux-thunk';
32
33
  import '@commercetools-frontend/application-shell-connectors';
33
- import '@commercetools-frontend/constants';
34
34
  import '@commercetools-frontend/notifications';
35
35
  import '@commercetools-frontend/sdk';
36
36
  import '@babel/runtime-corejs3/core-js-stable/instance/index-of';
@@ -40,6 +40,9 @@ import '@commercetools-frontend/sentry';
40
40
  import '@commercetools-frontend/react-notifications';
41
41
  import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
42
42
  import 'redux-logger';
43
+ import 'tiny-invariant';
44
+ import '@commercetools-frontend/application-config/ssr';
45
+ import '@commercetools-frontend/permissions';
43
46
  import '@emotion/styled/base';
44
47
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
45
48
  import '@babel/runtime-corejs3/core-js-stable/array/is-array';
@@ -77,8 +80,6 @@ import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
77
80
  import '@babel/runtime-corejs3/helpers/getPrototypeOf';
78
81
  import '@babel/runtime-corejs3/helpers/inherits';
79
82
  import '@commercetools-uikit/design-system/materials/resets.css';
80
- import '@commercetools-frontend/application-config/ssr';
81
- import '@commercetools-frontend/permissions';
82
83
  import '@flopflip/memory-adapter';
83
84
  import '@babel/runtime-corejs3/core-js-stable/json/stringify';
84
85
  import '@babel/runtime-corejs3/core-js-stable/instance/some';
@@ -10,9 +10,10 @@ var Constraints = require('@commercetools-uikit/constraints');
10
10
  var PrimaryButton = require('@commercetools-uikit/primary-button');
11
11
  var Spacings = require('@commercetools-uikit/spacings');
12
12
  var Text = require('@commercetools-uikit/text');
13
- var dist_commercetoolsFrontendApplicationShell = require('./index-c7140b1c.cjs.dev.js');
13
+ var dist_commercetoolsFrontendApplicationShell = require('./index-3244236c.cjs.dev.js');
14
14
  var jsxRuntime = require('@emotion/react/jsx-runtime');
15
- require('./index-614accc4.cjs.dev.js');
15
+ require('@commercetools-frontend/constants');
16
+ require('./application-entry-point-e5623556.cjs.dev.js');
16
17
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
17
18
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
18
19
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -32,7 +33,6 @@ require('omit-empty-es');
32
33
  require('redux');
33
34
  require('redux-thunk');
34
35
  require('@commercetools-frontend/application-shell-connectors');
35
- require('@commercetools-frontend/constants');
36
36
  require('@commercetools-frontend/notifications');
37
37
  require('@commercetools-frontend/sdk');
38
38
  require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
@@ -42,6 +42,9 @@ require('@commercetools-frontend/sentry');
42
42
  require('@commercetools-frontend/react-notifications');
43
43
  require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
44
44
  require('redux-logger');
45
+ require('tiny-invariant');
46
+ require('@commercetools-frontend/application-config/ssr');
47
+ require('@commercetools-frontend/permissions');
45
48
  require('@emotion/styled/base');
46
49
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
47
50
  require('@babel/runtime-corejs3/core-js-stable/array/is-array');
@@ -79,8 +82,6 @@ require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
79
82
  require('@babel/runtime-corejs3/helpers/getPrototypeOf');
80
83
  require('@babel/runtime-corejs3/helpers/inherits');
81
84
  require('@commercetools-uikit/design-system/materials/resets.css');
82
- require('@commercetools-frontend/application-config/ssr');
83
- require('@commercetools-frontend/permissions');
84
85
  require('@flopflip/memory-adapter');
85
86
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
86
87
  require('@babel/runtime-corejs3/core-js-stable/instance/some');
@@ -18,11 +18,99 @@ export type Scalars = {
18
18
  Boolean: boolean;
19
19
  Int: number;
20
20
  Float: number;
21
+ DateTime: any;
22
+ };
23
+ export declare enum TAiUsageAnalyticsAggregation {
24
+ Count = "COUNT",
25
+ CountDistinct = "COUNT_DISTINCT",
26
+ Max = "MAX",
27
+ Min = "MIN",
28
+ Sum = "SUM"
29
+ }
30
+ export type TAiUsageAnalyticsCounterBreakdownItem = {
31
+ __typename?: 'AIUsageAnalyticsCounterBreakdownItem';
32
+ key: Scalars['ID'];
33
+ value: Scalars['Float'];
34
+ };
35
+ export type TAiUsageAnalyticsCounterInput = {
36
+ aggregation: TAiUsageAnalyticsAggregation;
37
+ groupBy?: InputMaybe<TAiUsageAnalyticsGroupDimension>;
38
+ key: Scalars['String'];
39
+ measure: TAiUsageAnalyticsMeasure;
40
+ };
41
+ export type TAiUsageAnalyticsCounterResult = {
42
+ __typename?: 'AIUsageAnalyticsCounterResult';
43
+ aggregation: TAiUsageAnalyticsAggregation;
44
+ breakdown?: Maybe<Array<TAiUsageAnalyticsCounterBreakdownItem>>;
45
+ groupBy?: Maybe<TAiUsageAnalyticsGroupDimension>;
46
+ key: Scalars['String'];
47
+ measure: TAiUsageAnalyticsMeasure;
48
+ value?: Maybe<Scalars['Float']>;
49
+ };
50
+ export declare enum TAiUsageAnalyticsGroupDimension {
51
+ Agent = "AGENT"
52
+ }
53
+ export declare enum TAiUsageAnalyticsMeasure {
54
+ Requests = "REQUESTS",
55
+ Tokens = "TOKENS",
56
+ TokensIn = "TOKENS_IN",
57
+ TokensOut = "TOKENS_OUT"
58
+ }
59
+ export type TAiUsageAnalyticsPeriodInput = {
60
+ from: Scalars['DateTime'];
61
+ to: Scalars['DateTime'];
62
+ };
63
+ export type TAiUsageAnalyticsResult = {
64
+ __typename?: 'AIUsageAnalyticsResult';
65
+ /**
66
+ * The counters data for the given project keys and organization id.
67
+ * The counters are used to aggregate the data by a specific dimension.
68
+ * For example, the total number of requests, the total number of tokens, the total number of tokens in, the total number of tokens out,
69
+ * the total number of latency, etc.
70
+ */
71
+ counters: Array<TAiUsageAnalyticsCounterResult>;
72
+ /**
73
+ * The existence of the AI usage analytics feature. If there is no data for the given project keys and organization id,
74
+ * the existence will be `false`.
75
+ */
76
+ exists: Scalars['Boolean'];
77
+ /** The time series data for the given project keys and organization id. */
78
+ timeSeries: Array<TAiUsageAnalyticsTimeSeriesGroup>;
79
+ };
80
+ export type TAiUsageAnalyticsResult_CountersArgs = {
81
+ counters: Array<TAiUsageAnalyticsCounterInput>;
82
+ period: TAiUsageAnalyticsPeriodInput;
83
+ };
84
+ export type TAiUsageAnalyticsResult_TimeSeriesArgs = {
85
+ groupBy?: InputMaybe<TAiUsageAnalyticsGroupDimension>;
86
+ interval?: InputMaybe<TAiUsageAnalyticsTimeInterval>;
87
+ measure: TAiUsageAnalyticsMeasure;
88
+ period: TAiUsageAnalyticsPeriodInput;
89
+ };
90
+ export declare enum TAiUsageAnalyticsTimeInterval {
91
+ Day = "DAY",
92
+ Month = "MONTH",
93
+ Week = "WEEK"
94
+ }
95
+ export type TAiUsageAnalyticsTimeSeriesGroup = {
96
+ __typename?: 'AIUsageAnalyticsTimeSeriesGroup';
97
+ key: Scalars['ID'];
98
+ points: Array<TAiUsageAnalyticsTimeSeriesPoint>;
99
+ };
100
+ export type TAiUsageAnalyticsTimeSeriesPoint = {
101
+ __typename?: 'AIUsageAnalyticsTimeSeriesPoint';
102
+ timestamp: Scalars['DateTime'];
103
+ value: Scalars['Float'];
21
104
  };
22
105
  export type TAdditionalUserInfo = {
23
106
  firstName: Scalars['String'];
24
107
  lastName: Scalars['String'];
25
108
  };
109
+ export type TAgentCapability = {
110
+ __typename?: 'AgentCapability';
111
+ agentId: Scalars['String'];
112
+ requiredOAuthScopes: Array<Scalars['String']>;
113
+ };
26
114
  export type TAllPermissionsForAllApplications = {
27
115
  __typename?: 'AllPermissionsForAllApplications';
28
116
  allAppliedActionRights: Array<TAppliedActionRight>;
@@ -80,6 +168,15 @@ export type TDeletedUser = {
80
168
  __typename?: 'DeletedUser';
81
169
  id: Scalars['String'];
82
170
  };
171
+ export type TExportOrganizationMembersResult = {
172
+ __typename?: 'ExportOrganizationMembersResult';
173
+ /**
174
+ * The exported organization members as a CSV document. One row per user
175
+ * (deduplicated across teams), listing the user's email, the teams they belong
176
+ * to, and their last login timestamp in ISO 8601 UTC.
177
+ */
178
+ result: Scalars['String'];
179
+ };
83
180
  export type TFeature = {
84
181
  __typename?: 'Feature';
85
182
  name: Scalars['String'];
@@ -226,6 +323,7 @@ export type TOAuthClient = {
226
323
  createdAt?: Maybe<Scalars['String']>;
227
324
  id: Scalars['ID'];
228
325
  lastUsedAt?: Maybe<Scalars['String']>;
326
+ mcpScopes: Array<Scalars['String']>;
229
327
  name: Scalars['String'];
230
328
  ownerId: Scalars['ID'];
231
329
  permissions: Array<TProjectPermission>;
@@ -354,6 +452,12 @@ export declare enum TProjectSuspensionReason {
354
452
  }
355
453
  export type TQuery = {
356
454
  __typename?: 'Query';
455
+ agentRequiredCapabilities: Array<TAgentCapability>;
456
+ /**
457
+ * Returns the AI usage analytics for the given project key and organization id.
458
+ * Only administrators of the organization may call this query.
459
+ */
460
+ aiUsageAnalytics: TAiUsageAnalyticsResult;
357
461
  allFeatures: Array<TFeature>;
358
462
  allImpliedOAuthScopes: Array<Scalars['String']>;
359
463
  allSupportedActionRights?: Maybe<Array<TSupportedActionRight>>;
@@ -363,6 +467,11 @@ export type TQuery = {
363
467
  allSupportedResources?: Maybe<Array<TSupportedResource>>;
364
468
  allSupportedStoreScopes?: Maybe<Array<TSupportedStoreScope>>;
365
469
  amILoggedIn: Scalars['Boolean'];
470
+ /**
471
+ * Exports every member of every team in the given organization as a CSV
472
+ * document. Only administrators of the organization may call this query.
473
+ */
474
+ exportOrganizationMembers: TExportOrganizationMembersResult;
366
475
  invitation?: Maybe<TInvitationQueryResult>;
367
476
  me?: Maybe<TUser>;
368
477
  oAuthClient?: Maybe<TOAuthClient>;
@@ -374,10 +483,20 @@ export type TQuery = {
374
483
  storeOAuthScopes: Array<Scalars['String']>;
375
484
  systemStatus: TSystemStatus;
376
485
  };
486
+ export type TQuery_AgentRequiredCapabilitiesArgs = {
487
+ projectKey: Scalars['String'];
488
+ };
489
+ export type TQuery_AiUsageAnalyticsArgs = {
490
+ organizationId: Scalars['ID'];
491
+ projectKey: Scalars['String'];
492
+ };
377
493
  export type TQuery_AllImpliedOAuthScopesArgs = {
378
494
  onlyConfiguredOnTrustedClient?: InputMaybe<Scalars['Boolean']>;
379
495
  resourceAccessPermissions: Array<Scalars['String']>;
380
496
  };
497
+ export type TQuery_ExportOrganizationMembersArgs = {
498
+ organizationId: Scalars['ID'];
499
+ };
381
500
  export type TQuery_InvitationArgs = {
382
501
  where?: InputMaybe<TInvitationWhereInput>;
383
502
  };
@@ -527,6 +646,7 @@ export type TUser = TMetaData & {
527
646
  gravatarHash: Scalars['String'];
528
647
  id: Scalars['ID'];
529
648
  idTokenUserInfo?: Maybe<TIdTokenUserInfo>;
649
+ isAdminOfAnyOrganization: Scalars['Boolean'];
530
650
  language: Scalars['String'];
531
651
  lastModifiedAt: Scalars['String'];
532
652
  lastName: Scalars['String'];
@@ -675,6 +795,7 @@ export type TFetchLoggedInUserQuery = {
675
795
  launchdarklyTrackingTeam?: Array<string> | null;
676
796
  launchdarklyTrackingCloudEnvironment: string;
677
797
  defaultProjectKey?: string | null;
798
+ isAdminOfAnyOrganization: boolean;
678
799
  businessRole?: string | null;
679
800
  projects: {
680
801
  __typename?: 'ProjectQueryResult';
@@ -34,6 +34,10 @@ type TApplicationContextDataFenceType = 'store';
34
34
  type TApplicationContextDataFences = Partial<Record<TApplicationContextDataFenceType, TApplicationContextGroupedByResourceType>>;
35
35
  type TApplicationContextEnvironment = ApplicationWindow['app'];
36
36
  type TApplicationContextUser = Pick<NonNullable<TFetchedUser>, 'id' | 'email' | 'createdAt' | 'firstName' | 'lastName' | 'businessRole' | 'projects'> & {
37
+ /**
38
+ * Indicates whether the user is an admin of at least one organization.
39
+ */
40
+ isAdminOfAnyOrganization: boolean;
37
41
  locale: string;
38
42
  timeZone: string;
39
43
  idTokenUserInfo?: Omit<TIdTokenUserInfo, 'additionalClaims'> & {
@@ -18,11 +18,99 @@ export type Scalars = {
18
18
  Boolean: boolean;
19
19
  Int: number;
20
20
  Float: number;
21
+ DateTime: any;
22
+ };
23
+ export declare enum TAiUsageAnalyticsAggregation {
24
+ Count = "COUNT",
25
+ CountDistinct = "COUNT_DISTINCT",
26
+ Max = "MAX",
27
+ Min = "MIN",
28
+ Sum = "SUM"
29
+ }
30
+ export type TAiUsageAnalyticsCounterBreakdownItem = {
31
+ __typename?: 'AIUsageAnalyticsCounterBreakdownItem';
32
+ key: Scalars['ID'];
33
+ value: Scalars['Float'];
34
+ };
35
+ export type TAiUsageAnalyticsCounterInput = {
36
+ aggregation: TAiUsageAnalyticsAggregation;
37
+ groupBy?: InputMaybe<TAiUsageAnalyticsGroupDimension>;
38
+ key: Scalars['String'];
39
+ measure: TAiUsageAnalyticsMeasure;
40
+ };
41
+ export type TAiUsageAnalyticsCounterResult = {
42
+ __typename?: 'AIUsageAnalyticsCounterResult';
43
+ aggregation: TAiUsageAnalyticsAggregation;
44
+ breakdown?: Maybe<Array<TAiUsageAnalyticsCounterBreakdownItem>>;
45
+ groupBy?: Maybe<TAiUsageAnalyticsGroupDimension>;
46
+ key: Scalars['String'];
47
+ measure: TAiUsageAnalyticsMeasure;
48
+ value?: Maybe<Scalars['Float']>;
49
+ };
50
+ export declare enum TAiUsageAnalyticsGroupDimension {
51
+ Agent = "AGENT"
52
+ }
53
+ export declare enum TAiUsageAnalyticsMeasure {
54
+ Requests = "REQUESTS",
55
+ Tokens = "TOKENS",
56
+ TokensIn = "TOKENS_IN",
57
+ TokensOut = "TOKENS_OUT"
58
+ }
59
+ export type TAiUsageAnalyticsPeriodInput = {
60
+ from: Scalars['DateTime'];
61
+ to: Scalars['DateTime'];
62
+ };
63
+ export type TAiUsageAnalyticsResult = {
64
+ __typename?: 'AIUsageAnalyticsResult';
65
+ /**
66
+ * The counters data for the given project keys and organization id.
67
+ * The counters are used to aggregate the data by a specific dimension.
68
+ * For example, the total number of requests, the total number of tokens, the total number of tokens in, the total number of tokens out,
69
+ * the total number of latency, etc.
70
+ */
71
+ counters: Array<TAiUsageAnalyticsCounterResult>;
72
+ /**
73
+ * The existence of the AI usage analytics feature. If there is no data for the given project keys and organization id,
74
+ * the existence will be `false`.
75
+ */
76
+ exists: Scalars['Boolean'];
77
+ /** The time series data for the given project keys and organization id. */
78
+ timeSeries: Array<TAiUsageAnalyticsTimeSeriesGroup>;
79
+ };
80
+ export type TAiUsageAnalyticsResult_CountersArgs = {
81
+ counters: Array<TAiUsageAnalyticsCounterInput>;
82
+ period: TAiUsageAnalyticsPeriodInput;
83
+ };
84
+ export type TAiUsageAnalyticsResult_TimeSeriesArgs = {
85
+ groupBy?: InputMaybe<TAiUsageAnalyticsGroupDimension>;
86
+ interval?: InputMaybe<TAiUsageAnalyticsTimeInterval>;
87
+ measure: TAiUsageAnalyticsMeasure;
88
+ period: TAiUsageAnalyticsPeriodInput;
89
+ };
90
+ export declare enum TAiUsageAnalyticsTimeInterval {
91
+ Day = "DAY",
92
+ Month = "MONTH",
93
+ Week = "WEEK"
94
+ }
95
+ export type TAiUsageAnalyticsTimeSeriesGroup = {
96
+ __typename?: 'AIUsageAnalyticsTimeSeriesGroup';
97
+ key: Scalars['ID'];
98
+ points: Array<TAiUsageAnalyticsTimeSeriesPoint>;
99
+ };
100
+ export type TAiUsageAnalyticsTimeSeriesPoint = {
101
+ __typename?: 'AIUsageAnalyticsTimeSeriesPoint';
102
+ timestamp: Scalars['DateTime'];
103
+ value: Scalars['Float'];
21
104
  };
22
105
  export type TAdditionalUserInfo = {
23
106
  firstName: Scalars['String'];
24
107
  lastName: Scalars['String'];
25
108
  };
109
+ export type TAgentCapability = {
110
+ __typename?: 'AgentCapability';
111
+ agentId: Scalars['String'];
112
+ requiredOAuthScopes: Array<Scalars['String']>;
113
+ };
26
114
  export type TAllPermissionsForAllApplications = {
27
115
  __typename?: 'AllPermissionsForAllApplications';
28
116
  allAppliedActionRights: Array<TAppliedActionRight>;
@@ -80,6 +168,15 @@ export type TDeletedUser = {
80
168
  __typename?: 'DeletedUser';
81
169
  id: Scalars['String'];
82
170
  };
171
+ export type TExportOrganizationMembersResult = {
172
+ __typename?: 'ExportOrganizationMembersResult';
173
+ /**
174
+ * The exported organization members as a CSV document. One row per user
175
+ * (deduplicated across teams), listing the user's email, the teams they belong
176
+ * to, and their last login timestamp in ISO 8601 UTC.
177
+ */
178
+ result: Scalars['String'];
179
+ };
83
180
  export type TFeature = {
84
181
  __typename?: 'Feature';
85
182
  name: Scalars['String'];
@@ -226,6 +323,7 @@ export type TOAuthClient = {
226
323
  createdAt?: Maybe<Scalars['String']>;
227
324
  id: Scalars['ID'];
228
325
  lastUsedAt?: Maybe<Scalars['String']>;
326
+ mcpScopes: Array<Scalars['String']>;
229
327
  name: Scalars['String'];
230
328
  ownerId: Scalars['ID'];
231
329
  permissions: Array<TProjectPermission>;
@@ -354,6 +452,12 @@ export declare enum TProjectSuspensionReason {
354
452
  }
355
453
  export type TQuery = {
356
454
  __typename?: 'Query';
455
+ agentRequiredCapabilities: Array<TAgentCapability>;
456
+ /**
457
+ * Returns the AI usage analytics for the given project key and organization id.
458
+ * Only administrators of the organization may call this query.
459
+ */
460
+ aiUsageAnalytics: TAiUsageAnalyticsResult;
357
461
  allFeatures: Array<TFeature>;
358
462
  allImpliedOAuthScopes: Array<Scalars['String']>;
359
463
  allSupportedActionRights?: Maybe<Array<TSupportedActionRight>>;
@@ -363,6 +467,11 @@ export type TQuery = {
363
467
  allSupportedResources?: Maybe<Array<TSupportedResource>>;
364
468
  allSupportedStoreScopes?: Maybe<Array<TSupportedStoreScope>>;
365
469
  amILoggedIn: Scalars['Boolean'];
470
+ /**
471
+ * Exports every member of every team in the given organization as a CSV
472
+ * document. Only administrators of the organization may call this query.
473
+ */
474
+ exportOrganizationMembers: TExportOrganizationMembersResult;
366
475
  invitation?: Maybe<TInvitationQueryResult>;
367
476
  me?: Maybe<TUser>;
368
477
  oAuthClient?: Maybe<TOAuthClient>;
@@ -374,10 +483,20 @@ export type TQuery = {
374
483
  storeOAuthScopes: Array<Scalars['String']>;
375
484
  systemStatus: TSystemStatus;
376
485
  };
486
+ export type TQuery_AgentRequiredCapabilitiesArgs = {
487
+ projectKey: Scalars['String'];
488
+ };
489
+ export type TQuery_AiUsageAnalyticsArgs = {
490
+ organizationId: Scalars['ID'];
491
+ projectKey: Scalars['String'];
492
+ };
377
493
  export type TQuery_AllImpliedOAuthScopesArgs = {
378
494
  onlyConfiguredOnTrustedClient?: InputMaybe<Scalars['Boolean']>;
379
495
  resourceAccessPermissions: Array<Scalars['String']>;
380
496
  };
497
+ export type TQuery_ExportOrganizationMembersArgs = {
498
+ organizationId: Scalars['ID'];
499
+ };
381
500
  export type TQuery_InvitationArgs = {
382
501
  where?: InputMaybe<TInvitationWhereInput>;
383
502
  };
@@ -527,6 +646,7 @@ export type TUser = TMetaData & {
527
646
  gravatarHash: Scalars['String'];
528
647
  id: Scalars['ID'];
529
648
  idTokenUserInfo?: Maybe<TIdTokenUserInfo>;
649
+ isAdminOfAnyOrganization: Scalars['Boolean'];
530
650
  language: Scalars['String'];
531
651
  lastModifiedAt: Scalars['String'];
532
652
  lastName: Scalars['String'];
@@ -675,6 +795,7 @@ export type TFetchLoggedInUserQuery = {
675
795
  launchdarklyTrackingTeam?: Array<string> | null;
676
796
  launchdarklyTrackingCloudEnvironment: string;
677
797
  defaultProjectKey?: string | null;
798
+ isAdminOfAnyOrganization: boolean;
678
799
  businessRole?: string | null;
679
800
  projects: {
680
801
  __typename?: 'ProjectQueryResult';