@antcde/connect-ts 0.4.26-rc.6 → 0.4.26

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 (155) hide show
  1. package/build/AntConnect.d.ts +0 -6
  2. package/build/AntConnect.d.ts.map +1 -1
  3. package/build/AntConnect.js +0 -6
  4. package/build/comms/client.d.ts +1 -0
  5. package/build/comms/client.d.ts.map +1 -1
  6. package/build/comms/client.js +1 -0
  7. package/build/comms/signalChangeTypes.d.ts +1 -27
  8. package/build/comms/signalChangeTypes.d.ts.map +1 -1
  9. package/build/comms/signalChangeTypes.js +0 -7
  10. package/build/comms/signalTypes.d.ts +0 -18
  11. package/build/comms/signalTypes.d.ts.map +1 -1
  12. package/build/index.d.ts +34 -5
  13. package/build/index.d.ts.map +1 -1
  14. package/build/index.js +3 -8
  15. package/build/services/{AppService/types/appManifest.d.ts → AppManifest.d.ts} +1 -16
  16. package/build/services/AppManifest.d.ts.map +1 -0
  17. package/build/services/AppService.d.ts +57 -0
  18. package/build/services/AppService.d.ts.map +1 -0
  19. package/build/services/AppService.js +47 -0
  20. package/build/services/AppService.types.d.ts +173 -0
  21. package/build/services/AppService.types.d.ts.map +1 -0
  22. package/build/services/DmsService.d.ts +0 -13
  23. package/build/services/DmsService.d.ts.map +1 -1
  24. package/build/services/DmsServiceImpl.d.ts.map +1 -1
  25. package/build/services/DmsServiceImpl.js +0 -8
  26. package/build/services/LicenseService.d.ts +1 -1
  27. package/build/services/LicenseService.d.ts.map +1 -1
  28. package/build/services/LicenseService.js +1 -1
  29. package/build/services/ProjectService.d.ts +0 -1
  30. package/build/services/ProjectService.d.ts.map +1 -1
  31. package/build/services/ReleaseService.d.ts +0 -1
  32. package/build/services/ReleaseService.d.ts.map +1 -1
  33. package/build/services/TableService.js +7 -7
  34. package/build/services/TaskService.d.ts +3 -3
  35. package/build/services/TaskService.d.ts.map +1 -1
  36. package/build/services/TaskService.js +1 -1
  37. package/build/services/TaskService.types.d.ts +4 -21
  38. package/build/services/TaskService.types.d.ts.map +1 -1
  39. package/build/services/TaskServiceQueries.d.ts +0 -2
  40. package/build/services/TaskServiceQueries.d.ts.map +1 -1
  41. package/build/services/TaskServiceQueries.js +2 -13
  42. package/build/services/TaskTemplate.types.d.ts +1 -74
  43. package/build/services/TaskTemplate.types.d.ts.map +1 -1
  44. package/build/services/TokenService.d.ts +0 -5
  45. package/build/services/TokenService.d.ts.map +1 -1
  46. package/build/services/TokenService.js +0 -1
  47. package/build/services/UserService.js +4 -4
  48. package/build/services/Webhook/TriggerHistoryService.d.ts +1 -1
  49. package/build/services/Webhook/TriggerHistoryService.d.ts.map +1 -1
  50. package/build/services/Webhook/TriggerService.d.ts +0 -28
  51. package/build/services/Webhook/TriggerService.d.ts.map +1 -1
  52. package/build/services/Webhook/TriggerService.js +0 -10
  53. package/package.json +6 -6
  54. package/schemas/app-config.schema.json +0 -6
  55. package/build/service-runtime.d.ts +0 -6
  56. package/build/service-runtime.d.ts.map +0 -1
  57. package/build/service-runtime.js +0 -7
  58. package/build/service-types-app.d.ts +0 -2
  59. package/build/service-types-app.d.ts.map +0 -1
  60. package/build/service-types-app.js +0 -3
  61. package/build/service-types.d.ts +0 -36
  62. package/build/service-types.d.ts.map +0 -1
  63. package/build/service-types.js +0 -7
  64. package/build/services/AppService/factory/accessRequests.d.ts +0 -19
  65. package/build/services/AppService/factory/accessRequests.d.ts.map +0 -1
  66. package/build/services/AppService/factory/accessRequests.js +0 -17
  67. package/build/services/AppService/factory/assignments.d.ts +0 -57
  68. package/build/services/AppService/factory/assignments.d.ts.map +0 -1
  69. package/build/services/AppService/factory/assignments.js +0 -30
  70. package/build/services/AppService/factory/channels.d.ts +0 -35
  71. package/build/services/AppService/factory/channels.d.ts.map +0 -1
  72. package/build/services/AppService/factory/channels.js +0 -18
  73. package/build/services/AppService/factory/formData.d.ts +0 -14
  74. package/build/services/AppService/factory/formData.d.ts.map +0 -1
  75. package/build/services/AppService/factory/formData.js +0 -50
  76. package/build/services/AppService/factory/media.d.ts +0 -17
  77. package/build/services/AppService/factory/media.d.ts.map +0 -1
  78. package/build/services/AppService/factory/media.js +0 -10
  79. package/build/services/AppService/factory/subscriptions.d.ts +0 -73
  80. package/build/services/AppService/factory/subscriptions.d.ts.map +0 -1
  81. package/build/services/AppService/factory/subscriptions.js +0 -39
  82. package/build/services/AppService/index.d.ts +0 -58
  83. package/build/services/AppService/index.d.ts.map +0 -1
  84. package/build/services/AppService/index.js +0 -69
  85. package/build/services/AppService/types/accessRequests.d.ts +0 -164
  86. package/build/services/AppService/types/accessRequests.d.ts.map +0 -1
  87. package/build/services/AppService/types/app.d.ts +0 -124
  88. package/build/services/AppService/types/app.d.ts.map +0 -1
  89. package/build/services/AppService/types/app.js +0 -6
  90. package/build/services/AppService/types/appCategories.d.ts +0 -16
  91. package/build/services/AppService/types/appCategories.d.ts.map +0 -1
  92. package/build/services/AppService/types/appChangelog.d.ts +0 -31
  93. package/build/services/AppService/types/appChangelog.d.ts.map +0 -1
  94. package/build/services/AppService/types/appChangelog.js +0 -1
  95. package/build/services/AppService/types/appConfigStatus.d.ts +0 -68
  96. package/build/services/AppService/types/appConfigStatus.d.ts.map +0 -1
  97. package/build/services/AppService/types/appConfigStatus.js +0 -11
  98. package/build/services/AppService/types/appList.d.ts +0 -183
  99. package/build/services/AppService/types/appList.d.ts.map +0 -1
  100. package/build/services/AppService/types/appList.js +0 -1
  101. package/build/services/AppService/types/appManifest.d.ts.map +0 -1
  102. package/build/services/AppService/types/appManifest.js +0 -4
  103. package/build/services/AppService/types/appMedia.d.ts +0 -136
  104. package/build/services/AppService/types/appMedia.d.ts.map +0 -1
  105. package/build/services/AppService/types/appMedia.js +0 -1
  106. package/build/services/AppService/types/appRequests.d.ts +0 -113
  107. package/build/services/AppService/types/appRequests.d.ts.map +0 -1
  108. package/build/services/AppService/types/appRequests.js +0 -1
  109. package/build/services/AppService/types/appScopes.d.ts +0 -165
  110. package/build/services/AppService/types/appScopes.d.ts.map +0 -1
  111. package/build/services/AppService/types/appScopes.js +0 -1
  112. package/build/services/AppService/types/channels.d.ts +0 -45
  113. package/build/services/AppService/types/channels.d.ts.map +0 -1
  114. package/build/services/AppService/types/channels.js +0 -1
  115. package/build/services/AppService/types/pricingTiers.d.ts +0 -111
  116. package/build/services/AppService/types/pricingTiers.d.ts.map +0 -1
  117. package/build/services/AppService/types/pricingTiers.js +0 -1
  118. package/build/services/AppService/types/publisherStats.d.ts +0 -20
  119. package/build/services/AppService/types/publisherStats.d.ts.map +0 -1
  120. package/build/services/AppService/types/publisherStats.js +0 -1
  121. package/build/services/AppService/types/releaseChannels.d.ts +0 -127
  122. package/build/services/AppService/types/releaseChannels.d.ts.map +0 -1
  123. package/build/services/AppService/types/releaseChannels.js +0 -1
  124. package/build/services/AppService/types/seats.d.ts +0 -220
  125. package/build/services/AppService/types/seats.d.ts.map +0 -1
  126. package/build/services/AppService/types/seats.js +0 -4
  127. package/build/services/AppService/types/subscriptions.d.ts +0 -182
  128. package/build/services/AppService/types/subscriptions.d.ts.map +0 -1
  129. package/build/services/AppService/types/subscriptions.js +0 -1
  130. package/build/services/AppService/types.d.ts +0 -17
  131. package/build/services/AppService/types.d.ts.map +0 -1
  132. package/build/services/AppService/types.js +0 -19
  133. package/build/services/OAuthClientService.d.ts +0 -20
  134. package/build/services/OAuthClientService.d.ts.map +0 -1
  135. package/build/services/OAuthClientService.js +0 -12
  136. package/build/services/OAuthClientService.types.d.ts +0 -37
  137. package/build/services/OAuthClientService.types.d.ts.map +0 -1
  138. package/build/services/OAuthClientService.types.js +0 -4
  139. package/build/services/SecretService.d.ts +0 -22
  140. package/build/services/SecretService.d.ts.map +0 -1
  141. package/build/services/SecretService.js +0 -21
  142. package/build/services/SecretService.types.d.ts +0 -147
  143. package/build/services/SecretService.types.d.ts.map +0 -1
  144. package/build/services/SecretService.types.js +0 -1
  145. package/build/services/SecretSharing.types.d.ts +0 -112
  146. package/build/services/SecretSharing.types.d.ts.map +0 -1
  147. package/build/services/SecretSharing.types.js +0 -1
  148. package/build/services/Webhook/TriggerSecretService.d.ts +0 -88
  149. package/build/services/Webhook/TriggerSecretService.d.ts.map +0 -1
  150. package/build/services/Webhook/TriggerSecretService.js +0 -9
  151. package/build/services/Websockets/StoreEvents.d.ts +0 -31
  152. package/build/services/Websockets/StoreEvents.d.ts.map +0 -1
  153. package/build/services/Websockets/StoreEvents.js +0 -5
  154. /package/build/services/{AppService/types/accessRequests.js → AppManifest.js} +0 -0
  155. /package/build/services/{AppService/types/appCategories.js → AppService.types.js} +0 -0
@@ -1,37 +0,0 @@
1
- /**
2
- * A registered third-party OAuth application.
3
- *
4
- * `client_secret` is present ONLY on the create and rotate responses (it is shown
5
- * exactly once — the server stores only a hash). It is absent on list/get/update.
6
- */
7
- export interface OAuthClientApp {
8
- id: string;
9
- name: string;
10
- description: string | null;
11
- /** The public OAuth client identifier third parties send (Passport `oauth_clients.id`). */
12
- client_id: number;
13
- redirect_uris: string[];
14
- grant_types: string[];
15
- scopes: string[];
16
- /** Audience: true = any user on the instance may authorize; false = owner-license users only. */
17
- is_global: boolean;
18
- /** The license that manages this app (always set). */
19
- owner_license_id: string;
20
- first_party: boolean;
21
- created_at: string | null;
22
- /** One-time plaintext secret — only on create/rotate responses. */
23
- client_secret?: string;
24
- }
25
- export interface CreateOAuthClientBody {
26
- name: string;
27
- description?: string | null;
28
- redirect_uris: string[];
29
- /** Optional; defaults server-side to authorization_code + refresh_token. */
30
- grant_types?: string[];
31
- /** Optional; must be from the catalog (profile, users:read). */
32
- scopes?: string[];
33
- /** Defaults to false (license-scoped). */
34
- is_global?: boolean;
35
- }
36
- export type UpdateOAuthClientBody = Partial<CreateOAuthClientBody>;
37
- //# sourceMappingURL=OAuthClientService.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OAuthClientService.types.d.ts","sourceRoot":"","sources":["../../src/services/OAuthClientService.types.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,2FAA2F;IAC3F,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,iGAAiG;IACjG,SAAS,EAAE,OAAO,CAAA;IAClB,sDAAsD;IACtD,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- // Type surface for the OAuth Applications API (AAD-919) — the license-admin
2
- // registry of third-party OAuth clients that log INTO ANT-OS. Inverse trust
3
- // direction from a Vault secret, so it is a distinct service, not a SecretType.
4
- export {};
@@ -1,22 +0,0 @@
1
- import type { CreateSecretBody, Secret, SecretFilter, SecretResourceType, UpdateSecretBody } from './SecretService.types';
2
- import type { ConvertCredentialBody, ConvertCredentialResult, CredentialDetection, ProviderPreset, SecretGrant, SecretGrantBody, SecretUsage } from './SecretSharing.types';
3
- import type { AntHttpClient } from "../AntHttpClient";
4
- import type { DataWrapper } from "../types";
5
- export type * from './SecretService.types';
6
- export type * from './SecretSharing.types';
7
- export interface SecretService {
8
- getSecrets: (resourceType: SecretResourceType, resourceId: string, filter?: SecretFilter) => Promise<DataWrapper<Secret[]>>;
9
- getSecretUsages: (resourceType: SecretResourceType, resourceId: string, secretId: string) => Promise<DataWrapper<SecretUsage[]>>;
10
- createSecret: (resourceType: SecretResourceType, resourceId: string, body: CreateSecretBody) => Promise<DataWrapper<Secret>>;
11
- updateSecret: (resourceType: SecretResourceType, resourceId: string, secretId: string, body: UpdateSecretBody) => Promise<DataWrapper<Secret>>;
12
- deleteSecret: (resourceType: SecretResourceType, resourceId: string, secretId: string) => Promise<void>;
13
- getSecretGrants: (resourceType: SecretResourceType, resourceId: string, secretId: string) => Promise<DataWrapper<SecretGrant[]>>;
14
- grantSecret: (resourceType: SecretResourceType, resourceId: string, secretId: string, body: SecretGrantBody) => Promise<DataWrapper<SecretGrant>>;
15
- revokeSecretGrant: (resourceType: SecretResourceType, resourceId: string, secretId: string, body: SecretGrantBody) => Promise<void>;
16
- scanCredentials: (resourceType: SecretResourceType, resourceId: string, triggerId?: string) => Promise<DataWrapper<CredentialDetection[]>>;
17
- convertCredential: (resourceType: SecretResourceType, resourceId: string, body: ConvertCredentialBody) => Promise<ConvertCredentialResult>;
18
- getPresets: () => Promise<DataWrapper<ProviderPreset[]>>;
19
- }
20
- export declare function newSecretService(client: AntHttpClient): SecretService;
21
- export default newSecretService;
22
- //# sourceMappingURL=SecretService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretService.d.ts","sourceRoot":"","sources":["../../src/services/SecretService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,eAAe,EACf,WAAW,EACZ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E,eAAe,KAAK,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAA;IACjJ,iBAAiB,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAInI,eAAe,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAA;IAI1I,iBAAiB,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;IAG1I,UAAU,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;CACzD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAiDrE;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,21 +0,0 @@
1
- export function newSecretService(client) {
2
- const base = (resourceType, resourceId) => `/vault/${resourceType}/${resourceId}/secrets`;
3
- const migrationBase = (resourceType, resourceId) => `/vault/${resourceType}/${resourceId}/migration`;
4
- return {
5
- getSecrets: async (resourceType, resourceId, filter) => await client.get(base(resourceType, resourceId), filter ? { params: { filter } } : undefined),
6
- getSecretUsages: async (resourceType, resourceId, secretId) => await client.get(`${base(resourceType, resourceId)}/${secretId}/usages`),
7
- createSecret: async (resourceType, resourceId, body) => await client.post(base(resourceType, resourceId), body),
8
- updateSecret: async (resourceType, resourceId, secretId, body) => await client.put(`${base(resourceType, resourceId)}/${secretId}`, body),
9
- deleteSecret: async (resourceType, resourceId, secretId) => await client.delete(`${base(resourceType, resourceId)}/${secretId}`),
10
- getSecretGrants: async (resourceType, resourceId, secretId) => await client.get(`${base(resourceType, resourceId)}/${secretId}/grants`),
11
- grantSecret: async (resourceType, resourceId, secretId, body) => await client.post(`${base(resourceType, resourceId)}/${secretId}/grants`, body),
12
- // Body-DELETE: the role and ability travel in the payload (mirrors the
13
- // backend StoreSecretGrantRequest reused by the destroy route).
14
- revokeSecretGrant: async (resourceType, resourceId, secretId, body) => await client.delete(`${base(resourceType, resourceId)}/${secretId}/grants`, { data: body }),
15
- scanCredentials: async (resourceType, resourceId, triggerId) => await client.get(`${migrationBase(resourceType, resourceId)}/scan`, triggerId ? { params: { trigger_id: triggerId } } : undefined),
16
- convertCredential: async (resourceType, resourceId, body) => await client.post(`${migrationBase(resourceType, resourceId)}/convert`, body),
17
- // Flat, context-free route (no `{resource_type}/{resource_id}` segment).
18
- getPresets: async () => await client.get('/vault/presets'),
19
- };
20
- }
21
- export default newSecretService;
@@ -1,147 +0,0 @@
1
- export type SecretResourceType = 'licenses' | 'projects';
2
- export type SecretFilter = 'expiring' | 'expired' | 'unused';
3
- export type StaticSecretType = 'token' | 'bearer' | 'basic_auth';
4
- export type SecretType = StaticSecretType | 'oauth2_client_credentials' | 'oauth2_authorization_code' | 'hmac_signature';
5
- export type SecretProvider = 'internal' | 'aws_secrets_manager' | 'hashicorp_vault' | 'azure_key_vault';
6
- /**
7
- * Non-secret configuration for a dynamic `oauth2_client_credentials` secret. It
8
- * is RETURNED by the API (the client_secret is NEVER included here) and echoed
9
- * back in the create/update body; the client_secret itself travels write-only in
10
- * `value`. On reads the backend exposes only `token_url` / `client_id` / `scope`.
11
- */
12
- export interface SecretOAuth2Config {
13
- token_url: string;
14
- client_id: string;
15
- scope?: string | null;
16
- audience?: string | null;
17
- client_auth?: string | null;
18
- }
19
- /**
20
- * Non-secret configuration for a dynamic `oauth2_authorization_code` (per-user)
21
- * secret. Adds the interactive `authorize_url` (consent endpoint) and optional
22
- * `pkce` flag to the client-credentials shape. The `redirect_uri` is SERVER-FIXED
23
- * and never sent here; the client_secret travels write-only in `value`. Reads
24
- * expose only these non-secret fields.
25
- */
26
- export interface SecretOAuth2AuthCodeConfig {
27
- authorize_url: string;
28
- token_url: string;
29
- client_id: string;
30
- scope?: string | null;
31
- audience?: string | null;
32
- client_auth?: string | null;
33
- pkce?: boolean | null;
34
- }
35
- export type HmacAlgorithm = 'sha256' | 'sha1' | 'sha512';
36
- export type HmacEncoding = 'hex' | 'base64';
37
- /**
38
- * Non-secret request-signing scheme for an `hmac_signature` secret. It is RETURNED
39
- * by the API and echoed back in the create/update body; the signing KEY is NEVER
40
- * here — it travels write-only in `value`. `signed_content` is the canonical
41
- * template signed with the key, supporting the tokens `{{timestamp}}` `{{method}}`
42
- * `{{path}}` `{{query}}` `{{body}}`, substituted from the outbound request at
43
- * dispatch. `algorithm`/`encoding` are optional (backend applies defaults when
44
- * omitted); `signature_header` and `signed_content` are required for the type.
45
- */
46
- export interface SecretSigningConfig {
47
- algorithm?: HmacAlgorithm | null;
48
- signature_header: string;
49
- signed_content: string;
50
- timestamp_header?: string | null;
51
- encoding?: HmacEncoding | null;
52
- prefix?: string | null;
53
- }
54
- export interface SecretAwsConfig {
55
- secret_id: string;
56
- region: string;
57
- version_stage?: string | null;
58
- }
59
- export interface SecretHashicorpConfig {
60
- address: string;
61
- path: string;
62
- field?: string | null;
63
- namespace?: string | null;
64
- }
65
- export interface SecretAzureConfig {
66
- vault_url: string;
67
- secret_name: string;
68
- version?: string | null;
69
- }
70
- export type SecretConfig = SecretOAuth2Config | SecretOAuth2AuthCodeConfig | SecretSigningConfig | SecretAwsConfig | SecretHashicorpConfig | SecretAzureConfig;
71
- export interface SecretScope {
72
- resource_type: string;
73
- resource_id: string;
74
- }
75
- /**
76
- * Metadata-only view of a Vault secret. The decrypted `value` is write-only and
77
- * is NEVER returned by the API — reads expose only a non-reversible
78
- * `masked_hint` (at most the last 4 characters).
79
- */
80
- export interface Secret {
81
- id: string;
82
- name: string;
83
- description: string | null;
84
- type: SecretType;
85
- /**
86
- * Where the credential ultimately comes from. `internal` (default) stores the
87
- * value in our DB; an external provider fetches it from a secret manager at dispatch.
88
- */
89
- provider: SecretProvider;
90
- scope: SecretScope;
91
- /**
92
- * Non-secret config. For `oauth2_client_credentials`: the token endpoint /
93
- * client_id / scope. For an external provider: the non-secret reference. `null`
94
- * for a static internal secret. NEVER contains a client_secret or any token.
95
- */
96
- config: SecretConfig | null;
97
- masked_hint: string;
98
- /**
99
- * Per-secret egress allowlist (Vault v2). `null` or empty means no restriction
100
- * (all targets allowed); otherwise the secret is only injected into outbound
101
- * requests whose target URL matches one of these http(s) prefixes.
102
- */
103
- allowed_hosts: string[] | null;
104
- /**
105
- * True when a project sees a secret inherited from its license (read-only in
106
- * that context; rotate/delete must go through the owning license).
107
- */
108
- is_inherited: boolean;
109
- /**
110
- * Optional expiry/rotation deadline (Vault v2, Phase 15). ISO datetime, or
111
- * `null` when the secret never expires.
112
- */
113
- expires_at: string | null;
114
- /**
115
- * Computed: `expires_at` is set and has passed. An expired secret is refused
116
- * at dispatch (fail-safe).
117
- */
118
- is_expired: boolean;
119
- /**
120
- * Computed: not yet expired but `expires_at` falls within the configured warn
121
- * window.
122
- */
123
- is_expiring_soon: boolean;
124
- last_used_at: string | null;
125
- created_at: string | null;
126
- }
127
- export interface CreateSecretBody {
128
- name: string;
129
- type: SecretType;
130
- value?: string;
131
- description?: string | null;
132
- allowed_hosts?: string[] | null;
133
- provider?: SecretProvider | null;
134
- config?: SecretConfig | null;
135
- expires_at?: string | null;
136
- }
137
- export interface UpdateSecretBody {
138
- name?: string;
139
- type?: SecretType;
140
- value?: string;
141
- description?: string | null;
142
- allowed_hosts?: string[] | null;
143
- provider?: SecretProvider | null;
144
- config?: SecretConfig | null;
145
- expires_at?: string | null;
146
- }
147
- //# sourceMappingURL=SecretService.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretService.types.d.ts","sourceRoot":"","sources":["../../src/services/SecretService.types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,UAA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rB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAQD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,UAAU,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG3B,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAE/B,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IAGhC,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAG5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAKD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG3B,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAE/B,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IAIhC,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAG5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,112 +0,0 @@
1
- import type { Secret, SecretType, StaticSecretType } from './SecretService.types';
2
- import type { SecretPlacement, TriggerSecretBinding } from './Webhook/TriggerSecretService';
3
- export interface SecretUsage {
4
- id: string;
5
- /** How the credential is applied to the trigger's outbound request. */
6
- placement: SecretPlacement;
7
- /**
8
- * Concrete key the placement targets: header name, query parameter, or body
9
- * JSON-path. Unused for `bearer`.
10
- */
11
- name: string;
12
- trigger: {
13
- id: string;
14
- name: string | null;
15
- event_type: string | null;
16
- context: {
17
- type: string;
18
- slug: string | null;
19
- id: string;
20
- };
21
- } | null;
22
- created_at: string | null;
23
- }
24
- export type SecretGrantAbility = 'use' | 'manage';
25
- export interface SecretGrant {
26
- id: string;
27
- secret_id: string;
28
- role_id: string;
29
- permission: SecretGrantAbility;
30
- role?: {
31
- id: string;
32
- name: string;
33
- };
34
- created_at: string | null;
35
- }
36
- export interface SecretGrantBody {
37
- role_id: string;
38
- ability: SecretGrantAbility;
39
- }
40
- /**
41
- * Where a migrated credential will be injected into the trigger's outbound
42
- * request. Public alias of the single backend placement type (`SecretPlacement`).
43
- */
44
- export type CredentialPlacement = SecretPlacement;
45
- export type CredentialDetectionReason = 'authorization_bearer' | 'sensitive_header' | 'bearer_value' | 'long_token';
46
- /**
47
- * A plaintext credential detected inside an ExternalHttpRequest trigger payload
48
- * by the Vault migration scan (read-only). SECURITY: the detected value is NEVER
49
- * returned — only a non-reversible `masked_preview` (≤ last 4 chars) plus the
50
- * field-name metadata needed to convert it.
51
- */
52
- export interface CredentialDetection {
53
- trigger_id: string;
54
- trigger_name: string;
55
- /**
56
- * Json-path of the field inside the trigger payload, e.g. `headers.Authorization`.
57
- * Passed back verbatim to `convertCredential`.
58
- */
59
- location: string;
60
- /** The original header key, preserving casing. */
61
- header_key: string;
62
- /** Inferred placement for the migrated binding. */
63
- placement: CredentialPlacement;
64
- /** Inferred Vault secret type to create. */
65
- secret_type: SecretType;
66
- /** Concrete key the binding will target (header name; `Authorization` for a bearer). */
67
- binding_name: string;
68
- /** Binding format template, or `null` for a verbatim value. */
69
- format: string | null;
70
- /** Why the field was flagged. */
71
- reason: CredentialDetectionReason;
72
- /** Suggested secret name to pre-fill; the caller supplies the final name. */
73
- suggested_name: string;
74
- /** Non-reversible preview (≤ last 4 chars). NEVER the full plaintext. */
75
- masked_preview: string;
76
- }
77
- export interface ConvertCredentialBody {
78
- trigger_id: string;
79
- location: string;
80
- secret_name: string;
81
- description?: string | null;
82
- }
83
- export interface ConvertCredentialResult {
84
- secret: Secret;
85
- binding: TriggerSecretBinding;
86
- }
87
- export interface ProviderPresetBinding {
88
- placement: CredentialPlacement;
89
- name: string | null;
90
- format: string | null;
91
- }
92
- /**
93
- * A read-only provider preset (Vault v2, Phase 12): how a well-known API's
94
- * credential is typically shaped (`secret_type`) and injected (`binding`), so the
95
- * create + bind forms can be pre-filled. Presets are HINTS, never enforcement,
96
- * and NEVER contain a credential value — only shape metadata.
97
- */
98
- export interface ProviderPreset {
99
- /** Stable machine key (e.g. `stripe`). */
100
- key: string;
101
- /** Human label sourced from the backend (e.g. `Stripe`); the UI never hardcodes it. */
102
- label: string;
103
- /** The recommended secret type; the backend only emits the static kinds. */
104
- secret_type: StaticSecretType;
105
- /** The recommended trigger-binding placement for the credential. */
106
- binding: ProviderPresetBinding;
107
- /** Optional link to the provider's authentication docs. */
108
- docs_url: string | null;
109
- /** Optional human note on what the credential is and how to obtain it. */
110
- value_hint: string | null;
111
- }
112
- //# sourceMappingURL=SecretSharing.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretSharing.types.d.ts","sourceRoot":"","sources":["../../src/services/SecretSharing.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACjF,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AAK3F,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,uEAAuE;IACvE,SAAS,EAAE,eAAe,CAAA;IAC1B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAA;IAGZ,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACn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,MAAM,EAAE,yBAAyB,CAAA;IACjC,6EAA6E;IAC7E,cAAc,EAAE,MAAM,CAAA;IACtB,yEAAyE;IACzE,cAAc,EAAE,MAAM,CAAA;CACvB;AAMD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAID,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,oBAAoB,CAAA;CAC9B;AAOD,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,mBAAmB,CAAA;IAC9B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,uFAAuF;IACvF,KAAK,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,WAAW,EAAE,gBAAgB,CAAA;IAC7B,oEAAoE;IACpE,OAAO,EAAE,qBAAqB,CAAA;IAC9B,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,88 +0,0 @@
1
- import type { DataWrapper } from '../../types';
2
- import type { SecretType } from '../SecretService';
3
- import type { TriggerableType } from './TriggerService';
4
- import type { AntHttpClient } from "../../AntHttpClient";
5
- /**
6
- * Where a bound secret is injected into the outbound trigger request. Mirrors
7
- * the backend `App\Modules\Vault\Enums\Placement` enum; the credential value is
8
- * resolved at dispatch, never stored on — nor returned by — the binding.
9
- */
10
- export type SecretPlacement = 'header' | 'bearer' | 'query' | 'body';
11
- /**
12
- * The safe projection of the bound secret that a binding exposes. Only the
13
- * secret's identity and a non-reversible `masked_hint` (≤ last 4 chars) are
14
- * surfaced when the relation is loaded — the credential is never serialized.
15
- */
16
- export interface TriggerSecretBindingSecret {
17
- id: string;
18
- name: string;
19
- /** The secret's kind — lets a UI flag a per-user (`oauth2_authorization_code`) binding. */
20
- type: SecretType;
21
- masked_hint: string;
22
- }
23
- /**
24
- * A trigger ↔ secret binding (TriggerSecretResource). Carries only placement
25
- * metadata plus a reference to the secret; no credential material.
26
- */
27
- export interface TriggerSecretBinding {
28
- id: string;
29
- trigger_id: string;
30
- secret_id: string;
31
- placement: SecretPlacement;
32
- /**
33
- * The concrete key the placement targets: header name, query parameter, or
34
- * body JSON-path. Unused for `bearer`.
35
- */
36
- name: string;
37
- /** Optional wrapping template applied to the resolved value, e.g. `Bearer {{value}}`. */
38
- format: string | null;
39
- /** Present only when the API loads the relation (index + store both do). */
40
- secret?: TriggerSecretBindingSecret;
41
- created_at: string | null;
42
- updated_at: string | null;
43
- }
44
- /**
45
- * POST body — binds an existing Vault secret to a trigger by reference. The
46
- * secret must live in the trigger's own context or its parent license (422 otherwise).
47
- */
48
- export interface CreateTriggerSecretBindingBody {
49
- secret_id: string;
50
- placement: SecretPlacement;
51
- name: string;
52
- format?: string | null;
53
- }
54
- /**
55
- * The coarse failure category of a dry-run binding test. `null` in a result
56
- * means the binding resolved and passed every gate. Mirrors the backend
57
- * `App\Modules\Vault\Enums\BindingTestReason`; it never carries the credential
58
- * nor the offending host.
59
- */
60
- export type BindingTestReason = 'missing' | 'expired' | 'egress_disallowed' | 'oauth_failed' | 'external_failed' | 'undecryptable';
61
- /**
62
- * The per-binding outcome of the read-only resolvability dry-run (Vault v2,
63
- * Phase 13). It exposes ONLY non-sensitive metadata — the secret's identity,
64
- * the placement, an `ok` flag and a coarse `reason` — never any plaintext.
65
- * `ok`/`reason` are a function of the secret and the trigger's target, so every
66
- * binding of the same secret shares one result.
67
- */
68
- export interface BindingTestResult {
69
- /** Present even when the bound secret was deleted (the binding still holds it). */
70
- secret_id: string | null;
71
- /** Null only when the bound secret no longer exists. */
72
- secret_name: string | null;
73
- placement: SecretPlacement;
74
- ok: boolean;
75
- reason: BindingTestReason | null;
76
- }
77
- export interface TriggerSecretService {
78
- listBindings: (triggerableType: TriggerableType, triggerableId: string, triggerId: string) => Promise<DataWrapper<TriggerSecretBinding[]>>;
79
- bind: (triggerableType: TriggerableType, triggerableId: string, triggerId: string, body: CreateTriggerSecretBindingBody) => Promise<DataWrapper<TriggerSecretBinding>>;
80
- unbind: (triggerableType: TriggerableType, triggerableId: string, triggerId: string, bindingId: string) => Promise<void>;
81
- /**
82
- * Read-only diagnostic: probes whether each binding's secret would resolve and
83
- * inject cleanly at dispatch, without sending the real request or revealing any value.
84
- */
85
- testBindings: (triggerableType: TriggerableType, triggerableId: string, triggerId: string) => Promise<DataWrapper<BindingTestResult[]>>;
86
- }
87
- export declare function createTriggerSecretService(httpClient: AntHttpClient): TriggerSecretService;
88
- //# sourceMappingURL=TriggerSecretService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TriggerSecretService.d.ts","sourceRoot":"","sources":["../../../src/services/Webhook/TriggerSecretService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,4BAAuB;AAEpD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAEpE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,2FAA2F;IAC3F,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,EAAE,MAAM,C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M,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,8BAA8B,KAAK,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAA;IACtK,MAAM,EAAE,CAAC,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxH;;;OAGG;IACH,YAAY,EAAE,CAAC,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;CACxI;AAED,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,aAAa,GAAG,oBAAoB,CAiB1F"}
@@ -1,9 +0,0 @@
1
- export function createTriggerSecretService(httpClient) {
2
- const base = (triggerableType, triggerableId, triggerId) => `/webhook/${triggerableType}/${triggerableId}/triggers/${triggerId}/secrets`;
3
- return {
4
- listBindings: (triggerableType, triggerableId, triggerId) => httpClient.get(base(triggerableType, triggerableId, triggerId)),
5
- bind: (triggerableType, triggerableId, triggerId, body) => httpClient.post(base(triggerableType, triggerableId, triggerId), body),
6
- unbind: (triggerableType, triggerableId, triggerId, bindingId) => httpClient.delete(`${base(triggerableType, triggerableId, triggerId)}/${bindingId}`),
7
- testBindings: (triggerableType, triggerableId, triggerId) => httpClient.post(`${base(triggerableType, triggerableId, triggerId)}/test`),
8
- };
9
- }
@@ -1,31 +0,0 @@
1
- export interface AppVersionPublishedEvent {
2
- type: 'appVersionPublished';
3
- app: {
4
- id: string;
5
- title: string;
6
- };
7
- app_version: {
8
- id: string;
9
- version: string;
10
- };
11
- release_channel_id: string | null;
12
- }
13
- export interface AppVersionUnpublishedEvent {
14
- type: 'appVersionUnpublished';
15
- app: {
16
- id: string;
17
- title: string | null;
18
- };
19
- /**
20
- * The version that was pulled — on a rollback, the version rolled back FROM
21
- * (i.e. the one you were running, not the one you are now on). Null if the
22
- * channel was already empty.
23
- */
24
- app_version: {
25
- id: string;
26
- version: string;
27
- } | null;
28
- release_channel_id: string | null;
29
- }
30
- export type StoreWebSocketEvent = AppVersionPublishedEvent | AppVersionUnpublishedEvent;
31
- //# sourceMappingURL=StoreEvents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StoreEvents.d.ts","sourceRoot":"","sources":["../../../src/services/Websockets/StoreEvents.ts"],"names":[],"mappings":"AAoBA,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,qBAAqB,CAAA;IAC3B,GAAG,EAAE;QACH,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,WAAW,EAAE;QACX,EAAE,EAAE,MAAM,CAAA;QACV,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;CAClC;AA8BD,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,uBAAuB,CAAA;IAC7B,GAAG,EAAE;QACH,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KACrB,CAAA;IACD;;;;OAIG;IACH,WAAW,EAAE;QACX,EAAE,EAAE,MAAM,CAAA;QACV,OAAO,EAAE,MAAM,CAAA;KAChB,GAAG,IAAI,CAAA;IACR,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;CAClC;AAID,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,GAAG,0BAA0B,CAAA"}
@@ -1,5 +0,0 @@
1
- // --- Store WebSocket Event Types ---
2
- // Channel: private-App.License.{licenseId}
3
- //
4
- // These types match the exact payloads broadcast by the Laravel backend.
5
- export {};