@forge/cli-shared 8.3.0-next.0-experimental-ab129b0 → 8.3.0-next.0-experimental-8a53773
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 +3 -2
- package/out/auth/personal/credential-store.d.ts +1 -0
- package/out/auth/personal/credential-store.d.ts.map +1 -1
- package/out/auth/personal/credential-store.js +7 -0
- package/out/graphql/graphql-types.d.ts +74 -4
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +0 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
-
## 8.3.0-next.0-experimental-
|
|
3
|
+
## 8.3.0-next.0-experimental-8a53773
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
11
|
- 10c0bc6: Add egress support for custom URL schemes. Allow custom custom URL schemes as autoconvert patterns.
|
|
12
|
+
- 93b8edc: Send 'app packaged' analytics event
|
|
12
13
|
- Updated dependencies [10c0bc6]
|
|
13
14
|
- Updated dependencies [6447811]
|
|
14
15
|
- Updated dependencies [2f446cf]
|
|
15
|
-
- @forge/manifest@10.2.1-next.0-experimental-
|
|
16
|
+
- @forge/manifest@10.2.1-next.0-experimental-8a53773
|
|
16
17
|
|
|
17
18
|
## 8.3.0-next.0
|
|
18
19
|
|
|
@@ -43,6 +43,7 @@ export declare class CredentialStoreImpl implements CredentialStore {
|
|
|
43
43
|
private readonly cachedConfig;
|
|
44
44
|
private readonly userRepository;
|
|
45
45
|
private keytarAccount;
|
|
46
|
+
private cached;
|
|
46
47
|
constructor(logger: Logger, instructionsURL: string, keytar: Keytar | null, cachedConfig: CachedConf, userRepository: UserRepository);
|
|
47
48
|
private wrapKeytarError;
|
|
48
49
|
decodeCredentials(credentialsString: string | null): PersonalApiCredentialsValidated;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/credential-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAuB,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,MAAM,EAAQ,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,SAAS,gBAAgB,CAAC;AACvC,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAa/C,MAAM,WAAW,MAAM;IACrB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEtE,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/E,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjE;AAUD,eAAO,MAAM,2BAA2B;;;EAGtC,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;EAI/C,CAAC;AAEH,oBAAY,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAClF,oBAAY,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAEpG,qBAAa,mBAAoB,SAAQ,SAAS;;CAIjD;AAED,qBAAa,aAAc,SAAQ,SAAS;;CAI3C;AAED,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,cAAc,IAAI,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AC;CAYzC;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,GAAG,eAAe,CAKlG"}
|
|
@@ -61,6 +61,7 @@ class CredentialStoreImpl {
|
|
|
61
61
|
cachedConfig;
|
|
62
62
|
userRepository;
|
|
63
63
|
keytarAccount;
|
|
64
|
+
cached = null;
|
|
64
65
|
constructor(logger, instructionsURL, keytar, cachedConfig, userRepository) {
|
|
65
66
|
this.logger = logger;
|
|
66
67
|
this.instructionsURL = instructionsURL;
|
|
@@ -130,6 +131,9 @@ class CredentialStoreImpl {
|
|
|
130
131
|
this.cachedConfig.delete(CACHE_CREDENTIALS_KEY);
|
|
131
132
|
}
|
|
132
133
|
async getCredentials() {
|
|
134
|
+
if (this.cached) {
|
|
135
|
+
return this.cached;
|
|
136
|
+
}
|
|
133
137
|
const plaintextCredentials = this.popInsecurePlaintextCredentials();
|
|
134
138
|
if (plaintextCredentials) {
|
|
135
139
|
if (this.keytar) {
|
|
@@ -151,12 +155,14 @@ class CredentialStoreImpl {
|
|
|
151
155
|
if (this.keytar) {
|
|
152
156
|
const result = await this.getCredentialsKeytar(this.keytar);
|
|
153
157
|
if (result) {
|
|
158
|
+
this.cached = result;
|
|
154
159
|
return result;
|
|
155
160
|
}
|
|
156
161
|
}
|
|
157
162
|
throw new NoTokenInStoreError();
|
|
158
163
|
}
|
|
159
164
|
async setCredentials(credentials) {
|
|
165
|
+
this.cached = null;
|
|
160
166
|
if (this.keytar) {
|
|
161
167
|
try {
|
|
162
168
|
await this.keytar.setPassword(KEYTAR_SERVICE, this.keytarAccount, JSON.stringify(credentials));
|
|
@@ -170,6 +176,7 @@ class CredentialStoreImpl {
|
|
|
170
176
|
}
|
|
171
177
|
}
|
|
172
178
|
async deleteCredentials() {
|
|
179
|
+
this.cached = null;
|
|
173
180
|
if (this.keytar) {
|
|
174
181
|
try {
|
|
175
182
|
await this.keytar.deletePassword(KEYTAR_SERVICE, this.keytarAccount);
|
|
@@ -1279,7 +1279,7 @@ export declare type AgentStudioAssistantScenario = AgentStudioScenario & Node &
|
|
|
1279
1279
|
invocationDescription: Scalars['String']['output'];
|
|
1280
1280
|
isActive: Scalars['Boolean']['output'];
|
|
1281
1281
|
isDefault: Scalars['Boolean']['output'];
|
|
1282
|
-
isValid:
|
|
1282
|
+
isValid: AgentStudioScenarioValidation;
|
|
1283
1283
|
knowledgeSources?: Maybe<AgentStudioKnowledgeConfiguration>;
|
|
1284
1284
|
name: Scalars['String']['output'];
|
|
1285
1285
|
};
|
|
@@ -1440,11 +1440,21 @@ export declare type AgentStudioScenario = {
|
|
|
1440
1440
|
invocationDescription: Scalars['String']['output'];
|
|
1441
1441
|
isActive: Scalars['Boolean']['output'];
|
|
1442
1442
|
isDefault: Scalars['Boolean']['output'];
|
|
1443
|
-
isValid:
|
|
1443
|
+
isValid: AgentStudioScenarioValidation;
|
|
1444
1444
|
knowledgeSources?: Maybe<AgentStudioKnowledgeConfiguration>;
|
|
1445
1445
|
name: Scalars['String']['output'];
|
|
1446
1446
|
};
|
|
1447
1447
|
export declare type AgentStudioScenarioResult = AgentStudioAssistantScenario | QueryError;
|
|
1448
|
+
export declare type AgentStudioScenarioValidation = {
|
|
1449
|
+
__typename?: 'AgentStudioScenarioValidation';
|
|
1450
|
+
message?: Maybe<Array<Maybe<AgentStudioScenarioValidationError>>>;
|
|
1451
|
+
value: Scalars['Boolean']['output'];
|
|
1452
|
+
};
|
|
1453
|
+
export declare type AgentStudioScenarioValidationError = {
|
|
1454
|
+
__typename?: 'AgentStudioScenarioValidationError';
|
|
1455
|
+
key: Scalars['String']['output'];
|
|
1456
|
+
value: Scalars['String']['output'];
|
|
1457
|
+
};
|
|
1448
1458
|
export declare type AgentStudioScenariosEdge = {
|
|
1449
1459
|
__typename?: 'AgentStudioScenariosEdge';
|
|
1450
1460
|
cursor: Scalars['String']['output'];
|
|
@@ -20672,8 +20682,7 @@ export declare type DevConsoleDeveloperSpaceMemberPayload = Payload & {
|
|
|
20672
20682
|
success: Scalars['Boolean']['output'];
|
|
20673
20683
|
};
|
|
20674
20684
|
export declare enum DevConsoleDeveloperSpaceMemberRole {
|
|
20675
|
-
Admin = "ADMIN"
|
|
20676
|
-
Member = "MEMBER"
|
|
20685
|
+
Admin = "ADMIN"
|
|
20677
20686
|
}
|
|
20678
20687
|
export declare type DevConsoleDeveloperSpaceMembersResponse = {
|
|
20679
20688
|
__typename?: 'DevConsoleDeveloperSpaceMembersResponse';
|
|
@@ -80106,6 +80115,30 @@ export declare type MercuryNewPositionSummaryByChangeProposalStatus = {
|
|
|
80106
80115
|
countByStatus?: Maybe<Array<Maybe<MercuryNewPositionCountByStatus>>>;
|
|
80107
80116
|
totalCount?: Maybe<Scalars['Int']['output']>;
|
|
80108
80117
|
};
|
|
80118
|
+
export declare type MercuryOnCreateChangeProposalPayload = Payload & {
|
|
80119
|
+
__typename?: 'MercuryOnCreateChangeProposalPayload';
|
|
80120
|
+
errors?: Maybe<Array<MutationError>>;
|
|
80121
|
+
id: Scalars['ID']['output'];
|
|
80122
|
+
success: Scalars['Boolean']['output'];
|
|
80123
|
+
};
|
|
80124
|
+
export declare type MercuryOnDeleteChangeProposalPayload = Payload & {
|
|
80125
|
+
__typename?: 'MercuryOnDeleteChangeProposalPayload';
|
|
80126
|
+
errors?: Maybe<Array<MutationError>>;
|
|
80127
|
+
id: Scalars['ID']['output'];
|
|
80128
|
+
success: Scalars['Boolean']['output'];
|
|
80129
|
+
};
|
|
80130
|
+
export declare type MercuryOnUpdateChangeProposalPayload = Payload & {
|
|
80131
|
+
__typename?: 'MercuryOnUpdateChangeProposalPayload';
|
|
80132
|
+
errors?: Maybe<Array<MutationError>>;
|
|
80133
|
+
id: Scalars['ID']['output'];
|
|
80134
|
+
success: Scalars['Boolean']['output'];
|
|
80135
|
+
};
|
|
80136
|
+
export declare type MercuryOnUpdateStrategicEventPayload = Payload & {
|
|
80137
|
+
__typename?: 'MercuryOnUpdateStrategicEventPayload';
|
|
80138
|
+
errors?: Maybe<Array<MutationError>>;
|
|
80139
|
+
id: Scalars['ID']['output'];
|
|
80140
|
+
success: Scalars['Boolean']['output'];
|
|
80141
|
+
};
|
|
80109
80142
|
export declare type MercuryOriginalProjectStatus = {
|
|
80110
80143
|
mercuryOriginalStatusName?: Maybe<Scalars['String']['output']>;
|
|
80111
80144
|
};
|
|
@@ -80980,6 +81013,27 @@ export declare type MercuryStrategicEventsQueryApiStrategicEventsSearchArgs = {
|
|
|
80980
81013
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
80981
81014
|
sort?: InputMaybe<Array<InputMaybe<MercuryStrategicEventSort>>>;
|
|
80982
81015
|
};
|
|
81016
|
+
export declare type MercurySubscriptionApi = {
|
|
81017
|
+
__typename?: 'MercurySubscriptionApi';
|
|
81018
|
+
onCreateChangeProposal?: Maybe<MercuryOnCreateChangeProposalPayload>;
|
|
81019
|
+
onDeleteChangeProposal?: Maybe<MercuryOnDeleteChangeProposalPayload>;
|
|
81020
|
+
onUpdateChangeProposal?: Maybe<MercuryOnUpdateChangeProposalPayload>;
|
|
81021
|
+
onUpdateStrategicEvent?: Maybe<MercuryOnUpdateStrategicEventPayload>;
|
|
81022
|
+
};
|
|
81023
|
+
export declare type MercurySubscriptionApiOnCreateChangeProposalArgs = {
|
|
81024
|
+
strategicEventId: Scalars['ID']['input'];
|
|
81025
|
+
};
|
|
81026
|
+
export declare type MercurySubscriptionApiOnDeleteChangeProposalArgs = {
|
|
81027
|
+
id: Scalars['ID']['input'];
|
|
81028
|
+
strategicEventId: Scalars['ID']['input'];
|
|
81029
|
+
};
|
|
81030
|
+
export declare type MercurySubscriptionApiOnUpdateChangeProposalArgs = {
|
|
81031
|
+
id: Scalars['ID']['input'];
|
|
81032
|
+
strategicEventId: Scalars['ID']['input'];
|
|
81033
|
+
};
|
|
81034
|
+
export declare type MercurySubscriptionApiOnUpdateStrategicEventArgs = {
|
|
81035
|
+
id: Scalars['ID']['input'];
|
|
81036
|
+
};
|
|
80983
81037
|
export declare type MercuryTargetDate = {
|
|
80984
81038
|
__typename?: 'MercuryTargetDate';
|
|
80985
81039
|
targetDate?: Maybe<Scalars['String']['output']>;
|
|
@@ -81786,6 +81840,7 @@ export declare type Mutation = {
|
|
|
81786
81840
|
favouriteSpaceBulk?: Maybe<FavouriteSpaceBulkPayload>;
|
|
81787
81841
|
followUser?: Maybe<FollowUserPayload>;
|
|
81788
81842
|
generatePermsReport?: Maybe<ConfluenceAdminReportPayload>;
|
|
81843
|
+
goals_addGoalTeamLink?: Maybe<TownsquareGoalsAddGoalTeamLinkPayload>;
|
|
81789
81844
|
goals_setWatchingGoal?: Maybe<TownsquareGoalsSetWatchingGoalPayload>;
|
|
81790
81845
|
grantContentAccess?: Maybe<GrantContentAccessPayload>;
|
|
81791
81846
|
graphStore?: Maybe<GraphStoreMutation>;
|
|
@@ -82970,6 +83025,9 @@ export declare type MutationGeneratePermsReportArgs = {
|
|
|
82970
83025
|
id: Scalars['ID']['input'];
|
|
82971
83026
|
targetType: PermsReportTargetType;
|
|
82972
83027
|
};
|
|
83028
|
+
export declare type MutationGoals_AddGoalTeamLinkArgs = {
|
|
83029
|
+
input?: InputMaybe<TownsquareGoalsAddGoalTeamLinkInput>;
|
|
83030
|
+
};
|
|
82973
83031
|
export declare type MutationGoals_SetWatchingGoalArgs = {
|
|
82974
83032
|
input?: InputMaybe<TownsquareGoalsSetWatchingGoalInput>;
|
|
82975
83033
|
};
|
|
@@ -96736,6 +96794,7 @@ export declare type Subscription = {
|
|
|
96736
96794
|
ecosystem?: Maybe<EcosystemSubscription>;
|
|
96737
96795
|
jira?: Maybe<JiraSubscription>;
|
|
96738
96796
|
jsmChat?: Maybe<JsmChatSubscription>;
|
|
96797
|
+
mercury?: Maybe<MercurySubscriptionApi>;
|
|
96739
96798
|
migration: MigrationSubscription;
|
|
96740
96799
|
migrationPlanningService: MigrationPlanningServiceSubscription;
|
|
96741
96800
|
sandbox: SandboxSubscription;
|
|
@@ -98551,6 +98610,17 @@ export declare type TownsquareGoalUpdateEdge = {
|
|
|
98551
98610
|
cursor: Scalars['String']['output'];
|
|
98552
98611
|
node?: Maybe<TownsquareGoalUpdate>;
|
|
98553
98612
|
};
|
|
98613
|
+
export declare type TownsquareGoalsAddGoalTeamLinkInput = {
|
|
98614
|
+
goalId: Scalars['ID']['input'];
|
|
98615
|
+
teamId: Scalars['ID']['input'];
|
|
98616
|
+
};
|
|
98617
|
+
export declare type TownsquareGoalsAddGoalTeamLinkPayload = {
|
|
98618
|
+
__typename?: 'TownsquareGoalsAddGoalTeamLinkPayload';
|
|
98619
|
+
errors?: Maybe<Array<MutationError>>;
|
|
98620
|
+
goal?: Maybe<TownsquareGoal>;
|
|
98621
|
+
goalTeamEdge?: Maybe<TownsquareGoalTeamEdge>;
|
|
98622
|
+
success: Scalars['Boolean']['output'];
|
|
98623
|
+
};
|
|
98554
98624
|
export declare type TownsquareGoalsSetWatchingGoalInput = {
|
|
98555
98625
|
goalId: Scalars['ID']['input'];
|
|
98556
98626
|
isWatching: Scalars['Boolean']['input'];
|