@forge/cli-shared 8.15.2 → 8.15.3-next.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 8.15.3-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 43cbfaf: Update wording and links for forge login to enable scoped tokens
8
+
9
+ ## 8.15.3-next.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [ad5a470]
14
+ - @forge/manifest@12.1.2-next.0
15
+
3
16
  ## 8.15.2
4
17
 
5
18
  ### Patch Changes
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getInstructionsUrl = void 0;
4
4
  const gateway_1 = require("../graphql/gateway");
5
5
  const INSTRUCTION_URLS = {
6
- DEV: 'https://id.stg.internal.atlassian.com/manage/api-tokens',
7
- STG: 'https://id.stg.internal.atlassian.com/manage/api-tokens',
8
- PROD: 'https://id.atlassian.com/manage/api-tokens',
9
- FEDRAMP_MODERATE_STAGING: 'https://id.stg.atlassian-us-gov-mod.com/manage/api-tokens',
10
- FEDRAMP_MODERATE_PROD: 'https://id.atlassian-us-gov-mod.com/manage/api-tokens'
6
+ DEV: 'https://go.atlassian.com/forge-cli-api-token-stg',
7
+ STG: 'https://go.atlassian.com/forge-cli-api-token-stg',
8
+ PROD: 'https://go.atlassian.com/forge-cli-api-token',
9
+ FEDRAMP_MODERATE_STAGING: 'https://go.atlassian.com/forge-cli-api-token-federal-stg',
10
+ FEDRAMP_MODERATE_PROD: 'https://go.atlassian.com/forge-cli-api-token-federal'
11
11
  };
12
12
  function getInstructionsUrl() {
13
13
  return (0, gateway_1.getEnvironmentConfig)(INSTRUCTION_URLS);
@@ -3,9 +3,6 @@ import { UserError } from '../../shared';
3
3
  import { Logger } from '../../ui';
4
4
  export declare class UserNotFoundError extends UserError {
5
5
  }
6
- export declare class ScopedTokenError extends UserError {
7
- constructor();
8
- }
9
6
  export declare class MeGraphqlClient {
10
7
  private readonly graphqlClient;
11
8
  private readonly logger;
@@ -1 +1 @@
1
- {"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,MAAM,EAAQ,MAAM,UAAU,CAAC;AAEtD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AAEnD,qBAAa,gBAAiB,SAAQ,SAAS;;CAI9C;AAED,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM;IAGpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA6BtC"}
1
+ {"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AAEnD,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM;IAGpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAwBtC"}
@@ -1,17 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MeGraphqlClient = exports.ScopedTokenError = exports.UserNotFoundError = void 0;
3
+ exports.MeGraphqlClient = exports.UserNotFoundError = void 0;
4
4
  const shared_1 = require("../../shared");
5
5
  const ui_1 = require("../../ui");
6
6
  class UserNotFoundError extends shared_1.UserError {
7
7
  }
8
8
  exports.UserNotFoundError = UserNotFoundError;
9
- class ScopedTokenError extends shared_1.UserError {
10
- constructor() {
11
- super(ui_1.Text.login.scopedToken.error);
12
- }
13
- }
14
- exports.ScopedTokenError = ScopedTokenError;
15
9
  class MeGraphqlClient {
16
10
  graphqlClient;
17
11
  logger;
@@ -38,9 +32,6 @@ class MeGraphqlClient {
38
32
  }
39
33
  catch (error) {
40
34
  this.logger.debug((0, ui_1.errorMessage)(error));
41
- if ((0, ui_1.errorMessage)(error).includes('This request does not contain the right authorisation scopes')) {
42
- throw new ScopedTokenError();
43
- }
44
35
  }
45
36
  throw new UserNotFoundError();
46
37
  }
@@ -4847,6 +4847,12 @@ export declare type AgentWorkspaceAvailabilityConnection = {
4847
4847
  pageInfo: AgentWorkspaceAvailabilityPageInfo;
4848
4848
  summary: AgentWorkspaceAvailabilitySummary;
4849
4849
  };
4850
+ export declare type AgentWorkspaceAvailabilityError = {
4851
+ __typename?: 'AgentWorkspaceAvailabilityError';
4852
+ code: Scalars['String']['output'];
4853
+ field?: Maybe<Scalars['String']['output']>;
4854
+ message: Scalars['String']['output'];
4855
+ };
4850
4856
  export declare type AgentWorkspaceAvailabilityInput = {
4851
4857
  agentIds?: InputMaybe<Array<Scalars['ID']['input']>>;
4852
4858
  cloudId: Scalars['ID']['input'];
@@ -4870,6 +4876,18 @@ export declare enum AgentWorkspaceAvailabilityStatus {
4870
4876
  Available = "AVAILABLE",
4871
4877
  OnBreak = "ON_BREAK"
4872
4878
  }
4879
+ export declare type AgentWorkspaceAvailabilityStatusInput = {
4880
+ agentAccountId: Scalars['ID']['input'];
4881
+ cloudId: Scalars['ID']['input'];
4882
+ projectId: Scalars['ID']['input'];
4883
+ status: AgentWorkspaceAvailabilityStatus;
4884
+ };
4885
+ export declare type AgentWorkspaceAvailabilityStatusPayload = {
4886
+ __typename?: 'AgentWorkspaceAvailabilityStatusPayload';
4887
+ availability?: Maybe<AgentWorkspaceAgentAvailability>;
4888
+ errors?: Maybe<Array<AgentWorkspaceAvailabilityError>>;
4889
+ success: Scalars['Boolean']['output'];
4890
+ };
4873
4891
  export declare type AgentWorkspaceAvailabilitySummary = {
4874
4892
  __typename?: 'AgentWorkspaceAvailabilitySummary';
4875
4893
  activeAgents: Scalars['Int']['output'];
@@ -33731,6 +33749,7 @@ export declare type CustomerServiceMutationApi = {
33731
33749
  updateOrganizationAttributeValueByName?: Maybe<CustomerServiceOrganizationUpdateAttributeValuePayload>;
33732
33750
  updateParticipants?: Maybe<CustomerServiceRequestUpdateParticipantsPayload>;
33733
33751
  updateProduct?: Maybe<CustomerServiceProductUpdatePayload>;
33752
+ updateStatusMapping?: Maybe<CustomerServiceStatusMappingUpdatePayload>;
33734
33753
  updateTemplateForm?: Maybe<CustomerServiceTemplateFormUpdatePayload>;
33735
33754
  upsertBranding?: Maybe<CustomerServiceBrandingUpsertPayload>;
33736
33755
  };
@@ -33853,6 +33872,9 @@ export declare type CustomerServiceMutationApiUpdateParticipantsArgs = {
33853
33872
  export declare type CustomerServiceMutationApiUpdateProductArgs = {
33854
33873
  input: CustomerServiceProductUpdateInput;
33855
33874
  };
33875
+ export declare type CustomerServiceMutationApiUpdateStatusMappingArgs = {
33876
+ input: CustomerServiceStatusMappingUpdateInput;
33877
+ };
33856
33878
  export declare type CustomerServiceMutationApiUpdateTemplateFormArgs = {
33857
33879
  helpCenterId: Scalars['ID']['input'];
33858
33880
  input: CustomerServiceTemplateFormUpdateInput;
@@ -34077,6 +34099,7 @@ export declare type CustomerServiceQueryApi = {
34077
34099
  productConnections?: Maybe<CustomerServiceProductConnection>;
34078
34100
  products?: Maybe<CustomerServiceProductQueryResult>;
34079
34101
  requestByIssueKey?: Maybe<CustomerServiceRequestByKeyResult>;
34102
+ statusMapping?: Maybe<CustomerServiceStatusMappingQueryResult>;
34080
34103
  templateFormById?: Maybe<CustomerServiceTemplateFormQueryResult>;
34081
34104
  templateForms?: Maybe<CustomerServiceTemplateFormConnection>;
34082
34105
  };
@@ -34122,6 +34145,10 @@ export declare type CustomerServiceQueryApiRequestByIssueKeyArgs = {
34122
34145
  helpCenterId?: InputMaybe<Scalars['ID']['input']>;
34123
34146
  issueKey: Scalars['String']['input'];
34124
34147
  };
34148
+ export declare type CustomerServiceQueryApiStatusMappingArgs = {
34149
+ helpCenterId: Scalars['ID']['input'];
34150
+ workflowId: Scalars['String']['input'];
34151
+ };
34125
34152
  export declare type CustomerServiceQueryApiTemplateFormByIdArgs = {
34126
34153
  helpCenterId: Scalars['ID']['input'];
34127
34154
  templateFormId: Scalars['ID']['input'];
@@ -34243,6 +34270,33 @@ export declare enum CustomerServiceStatusKey {
34243
34270
  Resolved = "RESOLVED",
34244
34271
  Submitted = "SUBMITTED"
34245
34272
  }
34273
+ export declare type CustomerServiceStatusMapping = {
34274
+ __typename?: 'CustomerServiceStatusMapping';
34275
+ externalLabel: Scalars['String']['output'];
34276
+ jiraStatusId: Scalars['String']['output'];
34277
+ };
34278
+ export declare type CustomerServiceStatusMappingConfig = {
34279
+ __typename?: 'CustomerServiceStatusMappingConfig';
34280
+ customMappings: Array<CustomerServiceStatusMapping>;
34281
+ helpCenterId: Scalars['ID']['output'];
34282
+ workflowId: Scalars['String']['output'];
34283
+ };
34284
+ export declare type CustomerServiceStatusMappingInput = {
34285
+ externalLabel: Scalars['String']['input'];
34286
+ jiraStatusId: Scalars['String']['input'];
34287
+ };
34288
+ export declare type CustomerServiceStatusMappingQueryResult = CustomerServiceStatusMappingConfig | QueryError;
34289
+ export declare type CustomerServiceStatusMappingUpdateInput = {
34290
+ customMappings: Array<CustomerServiceStatusMappingInput>;
34291
+ helpCenterId: Scalars['ID']['input'];
34292
+ workflowId: Scalars['String']['input'];
34293
+ };
34294
+ export declare type CustomerServiceStatusMappingUpdatePayload = {
34295
+ __typename?: 'CustomerServiceStatusMappingUpdatePayload';
34296
+ errors?: Maybe<Array<MutationError>>;
34297
+ success: Scalars['Boolean']['output'];
34298
+ updatedStatusMapping?: Maybe<CustomerServiceStatusMappingConfig>;
34299
+ };
34246
34300
  export declare type CustomerServiceStatusPayload = Payload & {
34247
34301
  __typename?: 'CustomerServiceStatusPayload';
34248
34302
  errors?: Maybe<Array<MutationError>>;
@@ -35631,6 +35685,7 @@ export declare type DevAiRovoDevIssueViewResponseSessionsArgs = {
35631
35685
  cloudId?: InputMaybe<Scalars['ID']['input']>;
35632
35686
  first?: InputMaybe<Scalars['Int']['input']>;
35633
35687
  issueKey?: InputMaybe<Scalars['String']['input']>;
35688
+ sort?: InputMaybe<DevAiRovoDevSessionSort>;
35634
35689
  statusCategoryFilter?: InputMaybe<DevAiSessionStatusCategoryFilter>;
35635
35690
  };
35636
35691
  export declare enum DevAiRovoDevPrStatus {
@@ -42967,7 +43022,9 @@ export declare type GraphIntegrationMcpAdminManagementMcpToolNode = {
42967
43022
  };
42968
43023
  export declare enum GraphIntegrationMcpAdminManagementMcpToolStatus {
42969
43024
  Allow = "ALLOW",
43025
+ AllowServerRemoved = "ALLOW_SERVER_REMOVED",
42970
43026
  Deny = "DENY",
43027
+ DenyServerRemoved = "DENY_SERVER_REMOVED",
42971
43028
  NewToolDeny = "NEW_TOOL_DENY"
42972
43029
  }
42973
43030
  export declare type GraphIntegrationMcpAdminManagementRegisterMcpServerInput = {
@@ -103699,8 +103756,10 @@ export declare type JiraFieldSchemeAssociatedFieldsEdge = {
103699
103756
  node?: Maybe<JiraFieldSchemeAssociatedField>;
103700
103757
  };
103701
103758
  export declare type JiraFieldSchemeAssociatedFieldsInput = {
103759
+ associatedIssueTypesFilter?: InputMaybe<Array<JiraFieldsAssociatedIssueTypesFilterInput>>;
103702
103760
  fieldTypeGroupsFilter?: InputMaybe<Array<Scalars['String']['input']>>;
103703
103761
  nameOrDescriptionFilter?: InputMaybe<Scalars['String']['input']>;
103762
+ requiredOnIssueTypesFilter?: InputMaybe<Array<JiraFieldsRequiredOnIssueTypesFilterInput>>;
103704
103763
  schemeId: Scalars['ID']['input'];
103705
103764
  };
103706
103765
  export declare type JiraFieldSchemeAssociatedIssueTypesInput = {
@@ -103936,6 +103995,14 @@ export declare type JiraFieldWorkTypeRequiredOnCustomizationInput = {
103936
103995
  isRequired: Scalars['Boolean']['input'];
103937
103996
  workTypeIds: Array<Scalars['ID']['input']>;
103938
103997
  };
103998
+ export declare type JiraFieldsAssociatedIssueTypesFilterInput = {
103999
+ allIssueTypes?: InputMaybe<Scalars['Boolean']['input']>;
104000
+ issueTypeId?: InputMaybe<Scalars['String']['input']>;
104001
+ };
104002
+ export declare type JiraFieldsRequiredOnIssueTypesFilterInput = {
104003
+ allIssueTypes?: InputMaybe<Scalars['Boolean']['input']>;
104004
+ issueTypeId?: InputMaybe<Scalars['String']['input']>;
104005
+ };
103939
104006
  export declare type JiraFilter = {
103940
104007
  filterId: Scalars['String']['output'];
103941
104008
  filterUrl?: Maybe<Scalars['URL']['output']>;
@@ -133287,6 +133354,7 @@ export declare type Mutation = {
133287
133354
  agentWorkspace_deleteSkill?: Maybe<AgentWorkspaceSkillDeletePayload>;
133288
133355
  agentWorkspace_deleteUserSkill?: Maybe<AgentWorkspaceDeleteUserSkillPayload>;
133289
133356
  agentWorkspace_endBreak?: Maybe<AgentWorkspaceAgentAvailability>;
133357
+ agentWorkspace_setAvailabilityStatus?: Maybe<AgentWorkspaceAvailabilityStatusPayload>;
133290
133358
  agentWorkspace_setDefaultCapacity?: Maybe<AgentWorkspaceSetDefaultCapacityPayload>;
133291
133359
  agentWorkspace_startBreak?: Maybe<AgentWorkspaceAgentAvailability>;
133292
133360
  agentWorkspace_updateCatalog?: Maybe<AgentWorkspaceCatalogUpdateResponse>;
@@ -134566,6 +134634,9 @@ export declare type MutationAgentWorkspace_EndBreakArgs = {
134566
134634
  agentId: Scalars['ID']['input'];
134567
134635
  cloudId: Scalars['ID']['input'];
134568
134636
  };
134637
+ export declare type MutationAgentWorkspace_SetAvailabilityStatusArgs = {
134638
+ input: AgentWorkspaceAvailabilityStatusInput;
134639
+ };
134569
134640
  export declare type MutationAgentWorkspace_SetDefaultCapacityArgs = {
134570
134641
  input: AgentWorkspaceSetDefaultCapacityInput;
134571
134642
  };
@@ -144642,6 +144713,7 @@ export declare type QueryDevai_RovodevSessionsByIssueKeyArgs = {
144642
144713
  cloudId?: InputMaybe<Scalars['ID']['input']>;
144643
144714
  first?: InputMaybe<Scalars['Int']['input']>;
144644
144715
  issueKey?: InputMaybe<Scalars['String']['input']>;
144716
+ sort?: InputMaybe<DevAiRovoDevSessionSort>;
144645
144717
  statusCategoryFilter?: InputMaybe<DevAiSessionStatusCategoryFilter>;
144646
144718
  };
144647
144719
  export declare type QueryDevai_SavedPromptsArgs = {
@@ -175931,6 +176003,7 @@ export declare type TownsquareGoalsCreateGoalTypePairInput = {
175931
176003
  };
175932
176004
  export declare type TownsquareGoalsCreateInput = {
175933
176005
  containerId: Scalars['ID']['input'];
176006
+ description?: InputMaybe<Scalars['String']['input']>;
175934
176007
  goalTypeId: Scalars['ID']['input'];
175935
176008
  name: Scalars['String']['input'];
175936
176009
  ownerId?: InputMaybe<Scalars['ID']['input']>;