@stack-spot/portal-network 0.85.0 → 0.86.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.
@@ -69,6 +69,10 @@ export type SecretResponse = {
69
69
  updatedBy?: string;
70
70
  /** When the secret was last updated */
71
71
  updatedAt?: string;
72
+ /** Who deleted the secret */
73
+ deletedBy?: string;
74
+ /** When the secret was deleted */
75
+ deletedAt?: string;
72
76
  /** Secret status */
73
77
  status: "ENABLED" | "DISABLED" | "REVOKED" | "EXPIRED";
74
78
  /** Secret value */
@@ -2342,7 +2346,7 @@ export function accept({ id }: {
2342
2346
  }));
2343
2347
  }
2344
2348
  /**
2345
- * Update a Feature Flag
2349
+ * Updates an existing Feature Flag with the provided details.
2346
2350
  */
2347
2351
  export function update({ id, updateFeatureFlagRequest }: {
2348
2352
  id: number;
@@ -2365,20 +2369,28 @@ export function update({ id, updateFeatureFlagRequest }: {
2365
2369
  })));
2366
2370
  }
2367
2371
  /**
2368
- * Sets a new sales representative list to an existing account
2372
+ * Updates the sales representatives associated with an active account.
2369
2373
  */
2370
2374
  export function updateSalesRepresentatives({ accountId, updateSalesRepresentativesRequest }: {
2371
2375
  accountId: string;
2372
2376
  updateSalesRepresentativesRequest: UpdateSalesRepresentativesRequest;
2373
2377
  }, opts?: Oazapfts.RequestOpts) {
2374
- return oazapfts.ok(oazapfts.fetchText(`/v1/admin/accounts/${encodeURIComponent(accountId)}/sales-representatives`, oazapfts.json({
2378
+ return oazapfts.ok(oazapfts.fetchJson<{
2379
+ status: 204;
2380
+ } | {
2381
+ status: 404;
2382
+ data: ErrorResponse;
2383
+ } | {
2384
+ status: 500;
2385
+ data: ErrorResponse;
2386
+ }>(`/v1/admin/accounts/${encodeURIComponent(accountId)}/sales-representatives`, oazapfts.json({
2375
2387
  ...opts,
2376
2388
  method: "PUT",
2377
2389
  body: updateSalesRepresentativesRequest
2378
2390
  })));
2379
2391
  }
2380
2392
  /**
2381
- * Update status account
2393
+ * Enables an account by updating its status.
2382
2394
  */
2383
2395
  export function updateAccountStatus({ accountId, accountStatusRequest }: {
2384
2396
  accountId: string;
@@ -3711,7 +3723,7 @@ export function bindGroupMembers({ groupId, groupMemberIdsRequest }: {
3711
3723
  })));
3712
3724
  }
3713
3725
  /**
3714
- * List Feature Flags in an Account
3726
+ * Returns a list of Feature Flags associated with the current user's account.
3715
3727
  */
3716
3728
  export function getFeatures(opts?: Oazapfts.RequestOpts) {
3717
3729
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3728,7 +3740,7 @@ export function getFeatures(opts?: Oazapfts.RequestOpts) {
3728
3740
  }));
3729
3741
  }
3730
3742
  /**
3731
- * Create a Feature Flag
3743
+ * Creates a new Feature Flag and returns its unique identifier.
3732
3744
  */
3733
3745
  export function create({ createFeatureFlagRequest }: {
3734
3746
  createFeatureFlagRequest: CreateFeatureFlagRequest;
@@ -4167,7 +4179,7 @@ export function deviceCode({ email, freemiumAccess, codeChallenge, body }: {
4167
4179
  })));
4168
4180
  }
4169
4181
  /**
4170
- * Find accounts
4182
+ * Finds and returns a list of accounts filtered by account type.
4171
4183
  */
4172
4184
  export function getAccounts1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4173
4185
  size?: any;
@@ -4206,7 +4218,7 @@ export function getAccounts1({ size, page, sort, direction, search, filterMode,
4206
4218
  }));
4207
4219
  }
4208
4220
  /**
4209
- * Create an Enterprise Account Order
4221
+ * Creates a new account order and returns the associated account ID.
4210
4222
  */
4211
4223
  export function create1({ createAccountOrderRequest }: {
4212
4224
  createAccountOrderRequest: CreateAccountOrderRequest;
@@ -4334,7 +4346,7 @@ export function ssoParseConfigurationFile({ protocol, body }: {
4334
4346
  })));
4335
4347
  }
4336
4348
  /**
4337
- * Create Account Freemium
4349
+ * Creates a freemium account.
4338
4350
  */
4339
4351
  export function createAccountFreemium({ accountFreemiumCreateRequest }: {
4340
4352
  accountFreemiumCreateRequest: AccountFreemiumCreateRequest;
@@ -4360,7 +4372,7 @@ export function createAccountFreemium({ accountFreemiumCreateRequest }: {
4360
4372
  })));
4361
4373
  }
4362
4374
  /**
4363
- * Adding Collaborator Account
4375
+ * Adds a collaborator to an account with a specified role.
4364
4376
  */
4365
4377
  export function addCollaborator({ accountCollaboratorRequest }: {
4366
4378
  accountCollaboratorRequest: AccountCollaboratorRequest;
@@ -4991,7 +5003,7 @@ export function updateGroupPermissions1({ groupId, updateGroupPermissionsRequest
4991
5003
  })));
4992
5004
  }
4993
5005
  /**
4994
- * Enable a Feature Flag in an Account
5006
+ * Enables a Feature Flag in an account.
4995
5007
  */
4996
5008
  export function enable({ id }: {
4997
5009
  id: number;
@@ -5012,7 +5024,7 @@ export function enable({ id }: {
5012
5024
  }));
5013
5025
  }
5014
5026
  /**
5015
- * Disable a Feature Flag in an Account
5027
+ * Disables a Feature Flag in an account.
5016
5028
  */
5017
5029
  export function disable({ id }: {
5018
5030
  id: number;
@@ -5141,13 +5153,21 @@ export function updateExtensionLink({ id, extensionLinkUpdateRequest }: {
5141
5153
  })));
5142
5154
  }
5143
5155
  /**
5144
- * Adds a new email domain to an existing account
5156
+ * Adds a new email domain to an existing account.
5145
5157
  */
5146
5158
  export function addNewEmailDomain({ accountId, addNewEmailDomainRequest }: {
5147
5159
  accountId: string;
5148
5160
  addNewEmailDomainRequest: AddNewEmailDomainRequest;
5149
5161
  }, opts?: Oazapfts.RequestOpts) {
5150
- return oazapfts.ok(oazapfts.fetchText(`/v1/admin/accounts/${encodeURIComponent(accountId)}/domains`, oazapfts.json({
5162
+ return oazapfts.ok(oazapfts.fetchJson<{
5163
+ status: 201;
5164
+ } | {
5165
+ status: 404;
5166
+ data: ErrorResponse;
5167
+ } | {
5168
+ status: 500;
5169
+ data: ErrorResponse;
5170
+ }>(`/v1/admin/accounts/${encodeURIComponent(accountId)}/domains`, oazapfts.json({
5151
5171
  ...opts,
5152
5172
  method: "PATCH",
5153
5173
  body: addNewEmailDomainRequest
@@ -6512,7 +6532,7 @@ export function getAuthenticationConfig({ tenantSlug }: {
6512
6532
  }));
6513
6533
  }
6514
6534
  /**
6515
- * Get an account by ID
6535
+ * Finds and returns account details based on the provided account ID.
6516
6536
  */
6517
6537
  export function getAccount1({ accountId }: {
6518
6538
  accountId: string;
@@ -6534,7 +6554,7 @@ export function getAccount1({ accountId }: {
6534
6554
  }));
6535
6555
  }
6536
6556
  /**
6537
- * Get account data (tenant, IDP alias, account freemium available to user) by email
6557
+ * Finds and returns account data associated with the provided email.
6538
6558
  */
6539
6559
  export function getAccountDataByEmail({ email }: {
6540
6560
  email: string;
@@ -6558,7 +6578,7 @@ export function getAccountDataByEmail({ email }: {
6558
6578
  }));
6559
6579
  }
6560
6580
  /**
6561
- * Get account Slug - this API is temporary
6581
+ * Finds the slug associated with an active account by its account ID.
6562
6582
  */
6563
6583
  export function getAccountSlug({ accountId }: {
6564
6584
  accountId: string;
@@ -6622,7 +6642,7 @@ export function getAllAccountSso({ size, page, sort, direction, search, filterMo
6622
6642
  }));
6623
6643
  }
6624
6644
  /**
6625
- * Returns information if account data (name and slug) are available to be registered
6645
+ * Determines whether account data is available for registration based on the provided name and slug.
6626
6646
  */
6627
6647
  export function accountDataIsAvailable({ name, slug }: {
6628
6648
  name: string;
@@ -71,6 +71,32 @@ export const workspaceDictionary = {
71
71
  WKS_STACK_NOT_FOUND_ERROR: 'Stack not found in the Workspace.',
72
72
  WKS_THERE_IS_ACTIVATED_DEPLOY_FOR_THIS_STACK_VERSION_DELETE_ERROR: 'Unable to delete this Stack version as there is an ongoing deploy.',
73
73
  WKS_STACK_VERSION_ID_CONFLICT: 'This Stack version is already associated with the Workspace.',
74
+ WKS_STK_FILE_NOT_FOUND: 'STK File not found for application or infrastructure',
75
+ WKS_REPO_URL_NOT_FOUND: 'Repository URL is missing for this application or infrastructure',
76
+ WKS_PLUGINS_TO_UPDATE_NOT_FOUND: 'No plugins were found for update',
77
+ WKS_PLUGINS_NOT_ASSOCIATED_WITH_STACK_VERSION: 'One or more plugins are not associated with given stack version',
78
+ WKS_PLUGIN_NOT_ASSOCIATED_WITH_STACK_VERSION: 'Plugin {1} in version {2} is not associated with given stack version',
79
+ WKS_PLUGIN_NOT_ASSOCIATED_WITH_SPECIFIC_STACK_VERSION: 'Plugin {1} is not associated with stack {2}',
80
+ WKS_PARAMETER_CONFIG_NOT_FOUND: 'Parameter {1} is missing in Workspace',
81
+ WKS_CONTEXT_ATTRIBUTE_NOT_ALLOWED_FOR_ACCOUNT: 'Connection inputs are not allowed in account contexts',
82
+ SCM_API_4001_GITHUB_GET_REPO_BRANCHES_NOT_FOUND: 'The specified repository could not be found on GitHub.',
83
+ SCM_API_4002_GITHUB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Unauthorized access to the repository on GitHub. Please check your credentials.',
84
+ SCM_API_4002_GITHUB_GET_REPO_BRANCHES_FORBIDDEN: 'Access to the repository on GitHub is forbidden. Verify your permissions.',
85
+ SCM_API_4021_GITHUB_GET_REPO_TREE_NOT_FOUND: 'The repository tree could not be found on GitHub.',
86
+ SCM_API_4022_GITHUB_GET_REPO_TREE_UNAUTHORIZED: 'Unauthorized access to the repository tree on GitHub. Please check your credentials.',
87
+ SCM_API_4022_GITHUB_GET_REPO_TREE_FORBIDDEN: 'Access to the repository tree on GitHub is forbidden. Verify your permissions.',
88
+ SCM_API_4031_GITHUB_POST_INSTALLATION_NOT_FOUND: 'The GitHub app installation could not be found.',
89
+ SCM_API_4032_GITHUB_POST_INSTALLATION_UNAUTHORIZED: 'Unauthorized access to the GitHub app installation. Please check your credentials.',
90
+ SCM_API_4032_GITHUB_POST_INSTALLATION_FORBIDDEN: 'Access to the GitHub app installation is forbidden. Verify your permissions.',
91
+ SCM_API_4501_GITLAB_GET_PROJECT_NOT_FOUND: 'The specified project could not be found on GitLab.',
92
+ SCM_API_4502_GITLAB_GET_PROJECT_UNAUTHORIZED: 'Unauthorized access to the project on GitLab. Please check your credentials.',
93
+ SCM_API_4502_GITLAB_GET_PROJECT_FORBIDDEN: 'Access to the project on GitLab is forbidden. Verify your permissions.',
94
+ SCM_API_4511_GITLAB_GET_REPO_BRANCHES_NOT_FOUND: 'The specified repository could not be found on GitLab.',
95
+ SCM_API_4512_GITLAB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Unauthorized access to the repository on GitLab. Please check your credentials.',
96
+ SCM_API_4512_GITLAB_GET_REPO_BRANCHES_FORBIDDEN: 'Access to the repository on GitLab is forbidden. Verify your permissions.',
97
+ SCM_API_4531_GITLAB_GET_REPO_TREE_NOT_FOUND: 'The repository tree could not be found on GitLab.',
98
+ SCM_API_4532_GITLAB_GET_REPO_TREE_UNAUTHORIZED: 'Unauthorized access to the repository tree on GitLab. Please check your credentials.',
99
+ SCM_API_4532_GITLAB_GET_REPO_TREE_FORBIDDEN: 'Access to the repository tree on GitLab is forbidden. Verify your permissions.',
74
100
  },
75
101
  pt: {
76
102
  WKS_API_WORKSPACE_FORBIDDEN: 'Acesso negado. O token expirou ou o endpoint não existe.',
@@ -142,6 +168,32 @@ export const workspaceDictionary = {
142
168
  WKS_STACK_NOT_FOUND_ERROR: 'Stack não encontrada no Workspace.',
143
169
  WKS_THERE_IS_ACTIVATED_DEPLOY_FOR_THIS_STACK_VERSION_DELETE_ERROR: 'Não é possível excluir esta versão da Stack, pois há um deploy em andamento.',
144
170
  WKS_STACK_VERSION_ID_CONFLICT: 'Esta versão da Stack já está associada ao Workspace.',
171
+ WKS_STK_FILE_NOT_FOUND: 'Arquivo STK não encontrado para a aplicação ou infraestrutura',
172
+ WKS_REPO_URL_NOT_FOUND: 'URL do repositório está ausente para esta aplicação ou infraestrutura',
173
+ WKS_PLUGINS_TO_UPDATE_NOT_FOUND: 'Nenhum plugin foi encontrado para atualização',
174
+ WKS_PLUGINS_NOT_ASSOCIATED_WITH_STACK_VERSION: 'Um ou mais plugins não estão associados à versão da stack fornecida',
175
+ WKS_PLUGIN_NOT_ASSOCIATED_WITH_STACK_VERSION: 'O plugin {1} na versão {2} não está associado à versão da stack fornecida',
176
+ WKS_PLUGIN_NOT_ASSOCIATED_WITH_SPECIFIC_STACK_VERSION: 'O plugin {1} não está associado à stack {2}',
177
+ WKS_PARAMETER_CONFIG_NOT_FOUND: 'O parâmetro {1} está ausente no Workspace',
178
+ WKS_CONTEXT_ATTRIBUTE_NOT_ALLOWED_FOR_ACCOUNT: 'Entradas de conexão não são permitidas em contextos de conta',
179
+ SCM_API_4001_GITHUB_GET_REPO_BRANCHES_NOT_FOUND: 'O repositório especificado não foi encontrado no GitHub.',
180
+ SCM_API_4002_GITHUB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Acesso não autorizado ao repositório no GitHub. Verifique suas credenciais.',
181
+ SCM_API_4002_GITHUB_GET_REPO_BRANCHES_FORBIDDEN: 'Acesso ao repositório no GitHub foi proibido. Verifique suas permissões.',
182
+ SCM_API_4021_GITHUB_GET_REPO_TREE_NOT_FOUND: 'A árvore do repositório não foi encontrada no GitHub.',
183
+ SCM_API_4022_GITHUB_GET_REPO_TREE_UNAUTHORIZED: 'Acesso não autorizado à árvore do repositório no GitHub. Verifique suas credenciais.',
184
+ SCM_API_4022_GITHUB_GET_REPO_TREE_FORBIDDEN: 'Acesso à árvore do repositório no GitHub foi proibido. Verifique suas permissões.',
185
+ SCM_API_4031_GITHUB_POST_INSTALLATION_NOT_FOUND: 'A instalação do aplicativo GitHub não foi encontrada.',
186
+ SCM_API_4032_GITHUB_POST_INSTALLATION_UNAUTHORIZED: 'Acesso não autorizado à instalação do aplicativo GitHub. Verifique suas credenciais.',
187
+ SCM_API_4032_GITHUB_POST_INSTALLATION_FORBIDDEN: 'Acesso à instalação do aplicativo GitHub foi proibido. Verifique suas permissões.',
188
+ SCM_API_4501_GITLAB_GET_PROJECT_NOT_FOUND: 'O projeto especificado não foi encontrado no GitLab.',
189
+ SCM_API_4502_GITLAB_GET_PROJECT_UNAUTHORIZED: 'Acesso não autorizado ao projeto no GitLab. Verifique suas credenciais.',
190
+ SCM_API_4502_GITLAB_GET_PROJECT_FORBIDDEN: 'Acesso ao projeto no GitLab foi proibido. Verifique suas permissões.',
191
+ SCM_API_4511_GITLAB_GET_REPO_BRANCHES_NOT_FOUND: 'O repositório especificado não foi encontrado no GitLab.',
192
+ SCM_API_4512_GITLAB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Acesso não autorizado ao repositório no GitLab. Verifique suas credenciais.',
193
+ SCM_API_4512_GITLAB_GET_REPO_BRANCHES_FORBIDDEN: 'Acesso ao repositório no GitLab foi proibido. Verifique suas permissões.',
194
+ SCM_API_4531_GITLAB_GET_REPO_TREE_NOT_FOUND: 'A árvore do repositório não foi encontrada no GitLab.',
195
+ SCM_API_4532_GITLAB_GET_REPO_TREE_UNAUTHORIZED: 'Acesso não autorizado à árvore do repositório no GitLab. Verifique suas credenciais.',
196
+ SCM_API_4532_GITLAB_GET_REPO_TREE_FORBIDDEN: 'Acesso à árvore do repositório no GitLab foi proibido. Verifique suas permissões.',
145
197
 
146
198
  },
147
199
  } satisfies Dictionary