@forge/util 1.4.0-next.0 → 1.4.1-next.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 (171) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +2 -2
  3. package/packages/analytics-node-client/src/index.js +1 -1
  4. package/packages/ari/_tsup-dts-rollup.d.ts +369 -0
  5. package/packages/ari/beacon/custom-detection/index.d.ts +3 -0
  6. package/packages/ari/beacon/custom-detection/index.js +346 -0
  7. package/packages/ari/beacon/custom-detection/index.mjs +17 -0
  8. package/packages/ari/beacon/custom-detection/types.d.ts +3 -0
  9. package/packages/ari/beacon/custom-detection/types.js +29 -0
  10. package/packages/ari/beacon/custom-detection/types.mjs +8 -0
  11. package/packages/ari/beacon/index.d.ts +1 -0
  12. package/packages/ari/beacon/index.js +64 -0
  13. package/packages/ari/beacon/index.mjs +13 -8
  14. package/packages/ari/bitbucket/index.mjs +8 -8
  15. package/packages/ari/brie/index.mjs +4 -4
  16. package/packages/ari/canvas/index.mjs +4 -4
  17. package/packages/ari/chunk-5DRIX3CB.mjs +7 -0
  18. package/packages/ari/chunk-6YGOGAWM.mjs +7 -0
  19. package/packages/ari/chunk-AWSUWYDF.mjs +80 -0
  20. package/packages/ari/chunk-BGUJ6GY2.mjs +62 -0
  21. package/packages/ari/chunk-D5S55TXO.mjs +7 -0
  22. package/packages/ari/chunk-DFCDGB7O.mjs +80 -0
  23. package/packages/ari/chunk-IUUUDGF6.mjs +7 -0
  24. package/packages/ari/chunk-K2XTPA47.mjs +73 -0
  25. package/packages/ari/chunk-N5UKNFK5.mjs +7 -0
  26. package/packages/ari/chunk-OWEX3L44.mjs +7 -0
  27. package/packages/ari/chunk-PVBPUKXI.mjs +7 -0
  28. package/packages/ari/chunk-PXLAHM4C.mjs +73 -0
  29. package/packages/ari/chunk-QSH6F5SY.mjs +7 -0
  30. package/packages/ari/chunk-SCWWMMV2.mjs +80 -0
  31. package/packages/ari/chunk-SNAPC4SA.mjs +7 -0
  32. package/packages/ari/chunk-T3KJWGQY.mjs +73 -0
  33. package/packages/ari/chunk-TULGFGJW.mjs +69 -0
  34. package/packages/ari/chunk-WLBIOO7O.mjs +76 -0
  35. package/packages/ari/chunk-XB3V3IB3.mjs +66 -0
  36. package/packages/ari/chunk-XL2VWTF2.mjs +7 -0
  37. package/packages/ari/chunk-YNVYZG5X.mjs +0 -0
  38. package/packages/ari/cmdb/index.mjs +4 -4
  39. package/packages/ari/commerce/index.mjs +14 -14
  40. package/packages/ari/compass/index.mjs +14 -14
  41. package/packages/ari/confluence/embed/index.d.ts +3 -0
  42. package/packages/ari/confluence/embed/index.js +346 -0
  43. package/packages/ari/confluence/embed/index.mjs +17 -0
  44. package/packages/ari/confluence/embed/types.d.ts +3 -0
  45. package/packages/ari/confluence/embed/types.js +29 -0
  46. package/packages/ari/confluence/embed/types.mjs +8 -0
  47. package/packages/ari/confluence/index.d.ts +1 -0
  48. package/packages/ari/confluence/index.js +64 -0
  49. package/packages/ari/confluence/index.mjs +34 -29
  50. package/packages/ari/conversational-help/index.mjs +4 -4
  51. package/packages/ari/devops/index.mjs +8 -8
  52. package/packages/ari/ecosystem/index.mjs +12 -12
  53. package/packages/ari/elements/index.mjs +4 -4
  54. package/packages/ari/google/index.mjs +4 -4
  55. package/packages/ari/graph/index.d.ts +2 -0
  56. package/packages/ari/graph/index.js +127 -0
  57. package/packages/ari/graph/index.mjs +46 -36
  58. package/packages/ari/graph/post-incident-review/index.d.ts +3 -0
  59. package/packages/ari/graph/post-incident-review/index.js +342 -0
  60. package/packages/ari/graph/post-incident-review/index.mjs +17 -0
  61. package/packages/ari/graph/post-incident-review/types.d.ts +3 -0
  62. package/packages/ari/graph/post-incident-review/types.js +29 -0
  63. package/packages/ari/graph/post-incident-review/types.mjs +8 -0
  64. package/packages/ari/graph/post-incident-review-history/index.d.ts +3 -0
  65. package/packages/ari/graph/post-incident-review-history/index.js +349 -0
  66. package/packages/ari/graph/post-incident-review-history/index.mjs +17 -0
  67. package/packages/ari/graph/post-incident-review-history/types.d.ts +3 -0
  68. package/packages/ari/graph/post-incident-review-history/types.js +29 -0
  69. package/packages/ari/graph/post-incident-review-history/types.mjs +8 -0
  70. package/packages/ari/index.d.ts +1 -0
  71. package/packages/ari/index.js +55 -2
  72. package/packages/ari/index.mjs +410 -386
  73. package/packages/ari/jira/index.d.ts +2 -0
  74. package/packages/ari/jira/index.js +135 -0
  75. package/packages/ari/jira/index.mjs +68 -58
  76. package/packages/ari/jira/post-incident-review/index.d.ts +3 -0
  77. package/packages/ari/jira/post-incident-review/index.js +346 -0
  78. package/packages/ari/jira/post-incident-review/index.mjs +17 -0
  79. package/packages/ari/jira/post-incident-review/types.d.ts +3 -0
  80. package/packages/ari/jira/post-incident-review/types.js +29 -0
  81. package/packages/ari/jira/post-incident-review/types.mjs +8 -0
  82. package/packages/ari/jira/post-incident-review-history/index.d.ts +3 -0
  83. package/packages/ari/jira/post-incident-review-history/index.js +353 -0
  84. package/packages/ari/jira/post-incident-review-history/index.mjs +17 -0
  85. package/packages/ari/jira/post-incident-review-history/types.d.ts +3 -0
  86. package/packages/ari/jira/post-incident-review-history/types.js +29 -0
  87. package/packages/ari/jira/post-incident-review-history/types.mjs +8 -0
  88. package/packages/ari/jira-align/epic/index.d.ts +3 -0
  89. package/packages/ari/jira-align/epic/index.js +339 -0
  90. package/packages/ari/jira-align/epic/index.mjs +17 -0
  91. package/packages/ari/jira-align/epic/types.d.ts +3 -0
  92. package/packages/ari/jira-align/epic/types.js +29 -0
  93. package/packages/ari/jira-align/epic/types.mjs +8 -0
  94. package/packages/ari/jira-align/index.d.ts +1 -0
  95. package/packages/ari/jira-align/index.js +57 -0
  96. package/packages/ari/jira-align/index.mjs +6 -1
  97. package/packages/ari/jira-core/index.mjs +4 -4
  98. package/packages/ari/jira-servicedesk/index.mjs +8 -8
  99. package/packages/ari/jira-software/card-color/index.d.ts +3 -0
  100. package/packages/ari/jira-software/card-color/index.js +353 -0
  101. package/packages/ari/jira-software/card-color/index.mjs +17 -0
  102. package/packages/ari/jira-software/card-color/types.d.ts +3 -0
  103. package/packages/ari/jira-software/card-color/types.js +29 -0
  104. package/packages/ari/jira-software/card-color/types.mjs +8 -0
  105. package/packages/ari/jira-software/card-layout/index.d.ts +3 -0
  106. package/packages/ari/jira-software/card-layout/index.js +353 -0
  107. package/packages/ari/jira-software/card-layout/index.mjs +17 -0
  108. package/packages/ari/jira-software/card-layout/types.d.ts +3 -0
  109. package/packages/ari/jira-software/card-layout/types.js +29 -0
  110. package/packages/ari/jira-software/card-layout/types.mjs +8 -0
  111. package/packages/ari/jira-software/index.d.ts +2 -0
  112. package/packages/ari/jira-software/index.js +142 -0
  113. package/packages/ari/jira-software/index.mjs +22 -12
  114. package/packages/ari/marketplace/index.d.ts +1 -0
  115. package/packages/ari/marketplace/index.js +331 -0
  116. package/packages/ari/marketplace/index.mjs +13 -0
  117. package/packages/ari/marketplace/team/index.d.ts +3 -0
  118. package/packages/ari/marketplace/team/index.js +335 -0
  119. package/packages/ari/marketplace/team/index.mjs +17 -0
  120. package/packages/ari/marketplace/team/types.d.ts +3 -0
  121. package/packages/ari/marketplace/team/types.js +29 -0
  122. package/packages/ari/marketplace/team/types.mjs +8 -0
  123. package/packages/ari/measurement/index.mjs +4 -4
  124. package/packages/ari/mercury/index.mjs +8 -8
  125. package/packages/ari/opsgenie/index.mjs +34 -34
  126. package/packages/ari/package.json +1 -1
  127. package/packages/ari/papi/index.mjs +4 -4
  128. package/packages/ari/people-perftool/index.mjs +4 -4
  129. package/packages/ari/platform/index.mjs +16 -16
  130. package/packages/ari/resource-types/card-color.d.ts +1 -0
  131. package/packages/ari/resource-types/card-color.js +27 -0
  132. package/packages/ari/resource-types/card-color.mjs +5 -0
  133. package/packages/ari/resource-types/card-layout.d.ts +1 -0
  134. package/packages/ari/resource-types/card-layout.js +27 -0
  135. package/packages/ari/resource-types/card-layout.mjs +5 -0
  136. package/packages/ari/resource-types/custom-detection.d.ts +1 -0
  137. package/packages/ari/resource-types/custom-detection.js +27 -0
  138. package/packages/ari/resource-types/custom-detection.mjs +5 -0
  139. package/packages/ari/resource-types/embed.d.ts +1 -0
  140. package/packages/ari/resource-types/embed.js +27 -0
  141. package/packages/ari/resource-types/embed.mjs +5 -0
  142. package/packages/ari/resource-types/post-incident-review-history.d.ts +1 -0
  143. package/packages/ari/resource-types/post-incident-review-history.js +27 -0
  144. package/packages/ari/resource-types/post-incident-review-history.mjs +5 -0
  145. package/packages/ari/resource-types/post-incident-review.d.ts +1 -0
  146. package/packages/ari/resource-types/post-incident-review.js +27 -0
  147. package/packages/ari/resource-types/post-incident-review.mjs +5 -0
  148. package/packages/ari/statuspage/index.mjs +4 -4
  149. package/packages/ari/townsquare/index.mjs +15 -15
  150. package/packages/ari/trello/index.mjs +12 -12
  151. package/packages/ari/unified-help/index.mjs +4 -4
  152. package/packages/ari/virtual-agent/index.mjs +8 -8
  153. package/packages/logger-interface/CHANGELOG.md +6 -0
  154. package/packages/logger-interface/README.md +3 -1
  155. package/packages/logger-interface/package.json +3 -2
  156. package/packages/metrics-interface/CHANGELOG.md +15 -0
  157. package/packages/metrics-interface/dist/metrics.d.ts +5 -0
  158. package/packages/metrics-interface/dist/metrics.d.ts.map +1 -1
  159. package/packages/metrics-interface/dist/metrics.js +5 -0
  160. package/packages/metrics-interface/dist/metrics.js.map +1 -1
  161. package/packages/metrics-interface/dist/mocks/index.d.ts +8 -1
  162. package/packages/metrics-interface/dist/mocks/index.d.ts.map +1 -1
  163. package/packages/metrics-interface/dist/mocks/index.js +10 -1
  164. package/packages/metrics-interface/dist/mocks/index.js.map +1 -1
  165. package/packages/metrics-interface/package.json +1 -1
  166. /package/packages/ari/{chunk-B5G4UGB5.mjs → chunk-D7D3B454.mjs} +0 -0
  167. /package/packages/ari/{chunk-ENGY2TDF.mjs → chunk-JEDPRILO.mjs} +0 -0
  168. /package/packages/ari/{chunk-KNBR3WSA.mjs → chunk-P2RGZTM3.mjs} +0 -0
  169. /package/packages/ari/{chunk-PU63LMKI.mjs → chunk-VPUECY5E.mjs} +0 -0
  170. /package/packages/ari/{chunk-RLLBEQ3Y.mjs → chunk-VZG2Z6DB.mjs} +0 -0
  171. /package/packages/ari/{chunk-V7XF5L23.mjs → chunk-VZUAPXXZ.mjs} +0 -0
@@ -0,0 +1,76 @@
1
+ import {
2
+ GraphPostIncidentReviewHistoryAriResourceOwner,
3
+ GraphPostIncidentReviewHistoryAriResourceType
4
+ } from "./chunk-PVBPUKXI.mjs";
5
+ import {
6
+ RegisteredAri
7
+ } from "./chunk-PA4Y7TWI.mjs";
8
+ import {
9
+ AriParser
10
+ } from "./chunk-2UUYVBKT.mjs";
11
+
12
+ // src/graph/post-incident-review-history/manifest.ts
13
+ var graphPostIncidentReviewHistoryAriStaticOpts = {
14
+ qualifier: "ari",
15
+ platformQualifier: "cloud",
16
+ cloudId: new RegExp("^$"),
17
+ resourceOwner: GraphPostIncidentReviewHistoryAriResourceOwner,
18
+ resourceType: GraphPostIncidentReviewHistoryAriResourceType,
19
+ resourceIdSlug: "activation/{activationId}/{postIncidentReviewId}/{updateSequenceNumber}",
20
+ resourceIdSegmentFormats: {
21
+ activationId: /[a-zA-Z0-9\-]+/,
22
+ // eslint-disable-line no-useless-escape
23
+ postIncidentReviewId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
24
+ // eslint-disable-line no-useless-escape
25
+ updateSequenceNumber: /\d+/
26
+ // eslint-disable-line no-useless-escape
27
+ }
28
+ };
29
+
30
+ // src/graph/post-incident-review-history/index.ts
31
+ var GraphPostIncidentReviewHistoryAri = class _GraphPostIncidentReviewHistoryAri extends RegisteredAri {
32
+ constructor(opts) {
33
+ super(opts);
34
+ this._activationId = opts.resourceIdSegmentValues.activationId, this._postIncidentReviewId = opts.resourceIdSegmentValues.postIncidentReviewId, this._updateSequenceNumber = opts.resourceIdSegmentValues.updateSequenceNumber;
35
+ }
36
+ get activationId() {
37
+ return this._activationId;
38
+ }
39
+ get postIncidentReviewId() {
40
+ return this._postIncidentReviewId;
41
+ }
42
+ get updateSequenceNumber() {
43
+ return this._updateSequenceNumber;
44
+ }
45
+ static create(opts) {
46
+ let derivedOpts = {
47
+ qualifier: graphPostIncidentReviewHistoryAriStaticOpts.qualifier,
48
+ platformQualifier: graphPostIncidentReviewHistoryAriStaticOpts.platformQualifier,
49
+ cloudId: void 0,
50
+ resourceOwner: graphPostIncidentReviewHistoryAriStaticOpts.resourceOwner,
51
+ resourceType: graphPostIncidentReviewHistoryAriStaticOpts.resourceType,
52
+ resourceId: `activation/${opts.activationId}/${opts.postIncidentReviewId}/${opts.updateSequenceNumber}`,
53
+ resourceIdSegmentValues: {
54
+ activationId: opts.activationId,
55
+ postIncidentReviewId: opts.postIncidentReviewId,
56
+ updateSequenceNumber: opts.updateSequenceNumber
57
+ }
58
+ }, ariOpts = AriParser.fromOpts(derivedOpts, graphPostIncidentReviewHistoryAriStaticOpts);
59
+ return new _GraphPostIncidentReviewHistoryAri(ariOpts);
60
+ }
61
+ static parse(maybeAri) {
62
+ let opts = AriParser.fromString(maybeAri, graphPostIncidentReviewHistoryAriStaticOpts);
63
+ return new _GraphPostIncidentReviewHistoryAri(opts);
64
+ }
65
+ getVariables() {
66
+ return {
67
+ activationId: this.activationId,
68
+ postIncidentReviewId: this.postIncidentReviewId,
69
+ updateSequenceNumber: this.updateSequenceNumber
70
+ };
71
+ }
72
+ };
73
+
74
+ export {
75
+ GraphPostIncidentReviewHistoryAri
76
+ };
@@ -0,0 +1,66 @@
1
+ import {
2
+ JiraAlignEpicAriResourceOwner,
3
+ JiraAlignEpicAriResourceType
4
+ } from "./chunk-5DRIX3CB.mjs";
5
+ import {
6
+ RegisteredAri
7
+ } from "./chunk-PA4Y7TWI.mjs";
8
+ import {
9
+ AriParser
10
+ } from "./chunk-2UUYVBKT.mjs";
11
+
12
+ // src/jira-align/epic/manifest.ts
13
+ var jiraAlignEpicAriStaticOpts = {
14
+ qualifier: "ari",
15
+ platformQualifier: "cloud",
16
+ cloudId: new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$"),
17
+ resourceOwner: JiraAlignEpicAriResourceOwner,
18
+ resourceType: JiraAlignEpicAriResourceType,
19
+ resourceIdSlug: "{epicId}",
20
+ resourceIdSegmentFormats: {
21
+ epicId: /[0-9]+/
22
+ // eslint-disable-line no-useless-escape
23
+ }
24
+ };
25
+
26
+ // src/jira-align/epic/index.ts
27
+ var JiraAlignEpicAri = class _JiraAlignEpicAri extends RegisteredAri {
28
+ constructor(opts) {
29
+ super(opts);
30
+ this._instanceId = opts.cloudId || "", this._epicId = opts.resourceIdSegmentValues.epicId;
31
+ }
32
+ get instanceId() {
33
+ return this._instanceId;
34
+ }
35
+ get epicId() {
36
+ return this._epicId;
37
+ }
38
+ static create(opts) {
39
+ let derivedOpts = {
40
+ qualifier: jiraAlignEpicAriStaticOpts.qualifier,
41
+ platformQualifier: jiraAlignEpicAriStaticOpts.platformQualifier,
42
+ cloudId: opts.instanceId,
43
+ resourceOwner: jiraAlignEpicAriStaticOpts.resourceOwner,
44
+ resourceType: jiraAlignEpicAriStaticOpts.resourceType,
45
+ resourceId: `${opts.epicId}`,
46
+ resourceIdSegmentValues: {
47
+ epicId: opts.epicId
48
+ }
49
+ }, ariOpts = AriParser.fromOpts(derivedOpts, jiraAlignEpicAriStaticOpts);
50
+ return new _JiraAlignEpicAri(ariOpts);
51
+ }
52
+ static parse(maybeAri) {
53
+ let opts = AriParser.fromString(maybeAri, jiraAlignEpicAriStaticOpts);
54
+ return new _JiraAlignEpicAri(opts);
55
+ }
56
+ getVariables() {
57
+ return {
58
+ instanceId: this.instanceId,
59
+ epicId: this.epicId
60
+ };
61
+ }
62
+ };
63
+
64
+ export {
65
+ JiraAlignEpicAri
66
+ };
@@ -0,0 +1,7 @@
1
+ // src/jira/post-incident-review-history/types.ts
2
+ var JiraPostIncidentReviewHistoryAriResourceOwner = "jira", JiraPostIncidentReviewHistoryAriResourceType = "post-incident-review-history";
3
+
4
+ export {
5
+ JiraPostIncidentReviewHistoryAriResourceOwner,
6
+ JiraPostIncidentReviewHistoryAriResourceType
7
+ };
File without changes
@@ -1,4 +1,8 @@
1
1
  import "../chunk-7USM4R6S.mjs";
2
+ import {
3
+ CmdbTypeAri
4
+ } from "../chunk-RAV3YQAK.mjs";
5
+ import "../chunk-Q5AHPTNW.mjs";
2
6
  import {
3
7
  CmdbWorkspaceAri
4
8
  } from "../chunk-U4FVSEKE.mjs";
@@ -15,10 +19,6 @@ import {
15
19
  CmdbSchemaAri
16
20
  } from "../chunk-5ONGUVVK.mjs";
17
21
  import "../chunk-7NF55AHC.mjs";
18
- import {
19
- CmdbTypeAri
20
- } from "../chunk-RAV3YQAK.mjs";
21
- import "../chunk-Q5AHPTNW.mjs";
22
22
  import {
23
23
  CmdbAttributeAri
24
24
  } from "../chunk-UPBYPKVR.mjs";
@@ -1,4 +1,8 @@
1
1
  import "../chunk-NWYLOPBR.mjs";
2
+ import {
3
+ CommerceRoleAri
4
+ } from "../chunk-OOEEWONU.mjs";
5
+ import "../chunk-T3FMJP7C.mjs";
2
6
  import {
3
7
  CommerceShipToPartyAri
4
8
  } from "../chunk-2TO2SAAN.mjs";
@@ -11,6 +15,10 @@ import {
11
15
  CommerceWorkbenchResourceAri
12
16
  } from "../chunk-ADMBEYCT.mjs";
13
17
  import "../chunk-CVI37ASZ.mjs";
18
+ import {
19
+ CommercePricingPlanAri
20
+ } from "../chunk-JJJEWQFH.mjs";
21
+ import "../chunk-66TMLCVM.mjs";
14
22
  import {
15
23
  CommerceProductAri
16
24
  } from "../chunk-TW7SGTSZ.mjs";
@@ -24,9 +32,9 @@ import {
24
32
  } from "../chunk-CEGBRX5N.mjs";
25
33
  import "../chunk-2PBMRYJM.mjs";
26
34
  import {
27
- CommerceRoleAri
28
- } from "../chunk-OOEEWONU.mjs";
29
- import "../chunk-T3FMJP7C.mjs";
35
+ CommerceOfferingRelationshipTemplateAri
36
+ } from "../chunk-PQSCYVGF.mjs";
37
+ import "../chunk-2P7D7BWD.mjs";
30
38
  import {
31
39
  CommerceOfferingAri
32
40
  } from "../chunk-E2X6SN34.mjs";
@@ -40,9 +48,9 @@ import {
40
48
  } from "../chunk-5NWXOTQQ.mjs";
41
49
  import "../chunk-N3JGQE6H.mjs";
42
50
  import {
43
- CommercePricingPlanAri
44
- } from "../chunk-JJJEWQFH.mjs";
45
- import "../chunk-66TMLCVM.mjs";
51
+ CommerceEntitlementTemplateAri
52
+ } from "../chunk-XAZDDRTI.mjs";
53
+ import "../chunk-32JDQQPU.mjs";
46
54
  import {
47
55
  CommerceEntitlementAri
48
56
  } from "../chunk-QH34FSGN.mjs";
@@ -55,10 +63,6 @@ import {
55
63
  CommerceInvoiceGroupAri
56
64
  } from "../chunk-GKHZ4KWD.mjs";
57
65
  import "../chunk-MX6GMSIL.mjs";
58
- import {
59
- CommerceOfferingRelationshipTemplateAri
60
- } from "../chunk-PQSCYVGF.mjs";
61
- import "../chunk-2P7D7BWD.mjs";
62
66
  import {
63
67
  CommerceCatalogAccountAri
64
68
  } from "../chunk-KIP76WC7.mjs";
@@ -67,10 +71,6 @@ import {
67
71
  CommerceChangeAri
68
72
  } from "../chunk-HG4CLAAH.mjs";
69
73
  import "../chunk-R3MD4VCL.mjs";
70
- import {
71
- CommerceEntitlementTemplateAri
72
- } from "../chunk-XAZDDRTI.mjs";
73
- import "../chunk-32JDQQPU.mjs";
74
74
  import "../chunk-PA4Y7TWI.mjs";
75
75
  import "../chunk-NCC2UXNN.mjs";
76
76
  import "../chunk-2UUYVBKT.mjs";
@@ -1,4 +1,8 @@
1
1
  import "../chunk-BEV3P7ZD.mjs";
2
+ import {
3
+ CompassSiteAri
4
+ } from "../chunk-EDPSDGXF.mjs";
5
+ import "../chunk-SOJW4UXZ.mjs";
2
6
  import {
3
7
  CompassUserDefinedParameterAri
4
8
  } from "../chunk-DMFJWHOA.mjs";
@@ -11,6 +15,10 @@ import {
11
15
  CompassWorkspaceAri
12
16
  } from "../chunk-N6UTJOZC.mjs";
13
17
  import "../chunk-QQTPW4TZ.mjs";
18
+ import {
19
+ CompassMetricDefinitionAri
20
+ } from "../chunk-PSJ56PXK.mjs";
21
+ import "../chunk-BS6YPB3T.mjs";
14
22
  import {
15
23
  CompassMetricSourceAri
16
24
  } from "../chunk-U4ZH6ZBB.mjs";
@@ -24,9 +32,9 @@ import {
24
32
  } from "../chunk-PCU7FWYO.mjs";
25
33
  import "../chunk-2TSZWIWR.mjs";
26
34
  import {
27
- CompassSiteAri
28
- } from "../chunk-EDPSDGXF.mjs";
29
- import "../chunk-SOJW4UXZ.mjs";
35
+ CompassCustomFieldDefinitionAri
36
+ } from "../chunk-C5TDU5JL.mjs";
37
+ import "../chunk-K3BVQB6G.mjs";
30
38
  import {
31
39
  CompassEventSourceAri
32
40
  } from "../chunk-RFKGTCZC.mjs";
@@ -36,9 +44,9 @@ import {
36
44
  } from "../chunk-OXP565G7.mjs";
37
45
  import "../chunk-6S4G5T3V.mjs";
38
46
  import {
39
- CompassMetricDefinitionAri
40
- } from "../chunk-PSJ56PXK.mjs";
41
- import "../chunk-BS6YPB3T.mjs";
47
+ CompassAssistantAnswerAri
48
+ } from "../chunk-6IWA2LKS.mjs";
49
+ import "../chunk-VAWIKJGT.mjs";
42
50
  import {
43
51
  CompassComponentLabelAri
44
52
  } from "../chunk-ZXSOSOY5.mjs";
@@ -51,14 +59,6 @@ import {
51
59
  CompassComponentAri
52
60
  } from "../chunk-25S7IOCA.mjs";
53
61
  import "../chunk-XW2UZKUO.mjs";
54
- import {
55
- CompassCustomFieldDefinitionAri
56
- } from "../chunk-C5TDU5JL.mjs";
57
- import "../chunk-K3BVQB6G.mjs";
58
- import {
59
- CompassAssistantAnswerAri
60
- } from "../chunk-6IWA2LKS.mjs";
61
- import "../chunk-VAWIKJGT.mjs";
62
62
  import "../chunk-PA4Y7TWI.mjs";
63
63
  import "../chunk-NCC2UXNN.mjs";
64
64
  import "../chunk-2UUYVBKT.mjs";
@@ -0,0 +1,3 @@
1
+ export { ConfluenceEmbedAriResourceOwner } from '../../_tsup-dts-rollup';
2
+ export { ConfluenceEmbedAriResourceType } from '../../_tsup-dts-rollup';
3
+ export { ConfluenceEmbedAri_alias_1 as ConfluenceEmbedAri } from '../../_tsup-dts-rollup';
@@ -0,0 +1,346 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+
17
+ // src/confluence/embed/index.ts
18
+ var embed_exports = {};
19
+ __export(embed_exports, {
20
+ ConfluenceEmbedAri: () => ConfluenceEmbedAri,
21
+ ConfluenceEmbedAriResourceOwner: () => ConfluenceEmbedAriResourceOwner,
22
+ ConfluenceEmbedAriResourceType: () => ConfluenceEmbedAriResourceType
23
+ });
24
+ module.exports = __toCommonJS(embed_exports);
25
+
26
+ // src/errors.ts
27
+ var ValidationError = class extends Error {
28
+ };
29
+
30
+ // src/core/rules/cloud-id.ts
31
+ function validateCloudId(cloudId, format = new RegExp("^[a-zA-Z0-9\\-]*$")) {
32
+ if (!cloudId.match(format))
33
+ throw new ValidationError(`Invalid cloud ID, expected ID of format ${format}.`);
34
+ }
35
+
36
+ // src/core/rules/platform-qualifier.ts
37
+ function validatePlatformQualifier(qualifier) {
38
+ if (qualifier !== "cloud")
39
+ throw new ValidationError(`Identifier must have a qualifier of 'cloud'. Received: ${qualifier}`);
40
+ }
41
+
42
+ // src/core/rules/qualifier.ts
43
+ function validateAtiQualifier(qualifier) {
44
+ if (qualifier !== "ati")
45
+ throw new ValidationError(`ATI must have a qualifier of 'ati'. Received: ${qualifier}`);
46
+ }
47
+ function validateAriQualifier(qualifier) {
48
+ if (qualifier !== "ari")
49
+ throw new ValidationError(`ARI must have a qualifier of 'ari'. Received: ${qualifier}`);
50
+ }
51
+
52
+ // src/core/rules/resource-id.ts
53
+ function validateResourceId(id, format = new RegExp("[a-zA-Z0-9\\-_.~@:{}=]+(/[a-zA-Z0-9\\-_.~@:{}=]+)*" /* ANY_RESOURCE_ID */), key = "resourceId") {
54
+ let formatWithCarets = new RegExp(`^${format.source}$`);
55
+ if (!id.match(formatWithCarets))
56
+ throw new ValidationError(`Invalid ${key} - ${id}, expected ID of format ${formatWithCarets}.`);
57
+ }
58
+
59
+ // src/core/rules/resource-id-segments.ts
60
+ function validateResourceIdSegments(resourceIdSegmentValues, resourceIdSegmentFormats) {
61
+ Object.entries(resourceIdSegmentValues).forEach(([resourceIdKey, resourceIdValue]) => {
62
+ validateResourceId(resourceIdValue, resourceIdSegmentFormats == null ? void 0 : resourceIdSegmentFormats[resourceIdKey], resourceIdKey);
63
+ });
64
+ }
65
+
66
+ // src/core/rules/resource-owner.ts
67
+ function validateResourceOwner(owner, expectedResourceOwner) {
68
+ if (expectedResourceOwner && owner !== expectedResourceOwner)
69
+ throw new ValidationError(`Invalid resource owner - ${owner}, expected ${expectedResourceOwner}.`);
70
+ }
71
+
72
+ // src/core/rules/resource-type.ts
73
+ function validateResourceType(type, expectedResourceType) {
74
+ if (expectedResourceType && type !== expectedResourceType)
75
+ throw new ValidationError(`Invalid resource type - ${type}, expected ${expectedResourceType}.`);
76
+ }
77
+
78
+ // src/core/parser/base.ts
79
+ var NUMBER_OF_BASE_SEGMENTS = 5, SEGMENT_SEPARATOR = ":", BaseParser = class {
80
+ static getIdentifierSegments(inputStr, numberOfSegmentsRequired) {
81
+ let allSegments = inputStr.split(SEGMENT_SEPARATOR);
82
+ if (allSegments.length < numberOfSegmentsRequired)
83
+ throw new ValidationError(`Input string must have ${numberOfSegmentsRequired} segments.`);
84
+ if (allSegments.length > numberOfSegmentsRequired) {
85
+ let segments = allSegments.slice(0, NUMBER_OF_BASE_SEGMENTS - 1), segmentsForResourceId = allSegments.slice(NUMBER_OF_BASE_SEGMENTS - 1, allSegments.length);
86
+ return [...segments, segmentsForResourceId.join(SEGMENT_SEPARATOR)];
87
+ }
88
+ return allSegments;
89
+ }
90
+ };
91
+
92
+ // src/core/parser/ari.ts
93
+ var NUMBER_OF_ARI_SEGMENTS = 5, AriParser = class extends BaseParser {
94
+ static fromString(maybeAri, ariProperties) {
95
+ let segments = this.getIdentifierSegments(maybeAri, NUMBER_OF_ARI_SEGMENTS), [qualifier, platformQualifier, resourceOwner, cloudId, resourceTypeAndId] = segments, [resourceType, ...resourceIdSegments] = resourceTypeAndId.split("/"), maybeAriDerivedProperties = {
96
+ qualifier,
97
+ platformQualifier,
98
+ cloudId,
99
+ resourceOwner,
100
+ resourceType,
101
+ resourceId: resourceIdSegments.join("/"),
102
+ resourceIdSegmentValues: ariProperties != null && ariProperties.resourceIdSlug ? this.ariSegmentValuesFromSlug(
103
+ ariProperties.resourceIdSlug,
104
+ resourceIdSegments.join("/"),
105
+ Object.keys(ariProperties.resourceIdSegmentFormats)
106
+ ) : {}
107
+ };
108
+ return this.fromOpts(maybeAriDerivedProperties, ariProperties);
109
+ }
110
+ static fromOpts(maybeAriOpts, ariProperties) {
111
+ let {
112
+ qualifier = "ari",
113
+ platformQualifier = "cloud",
114
+ resourceOwner,
115
+ cloudId,
116
+ resourceId,
117
+ resourceIdSegmentValues,
118
+ resourceType
119
+ } = maybeAriOpts;
120
+ return validateAriQualifier(qualifier), validatePlatformQualifier(platformQualifier), validateCloudId(maybeAriOpts.cloudId || "", ariProperties == null ? void 0 : ariProperties.cloudId), validateResourceOwner(resourceOwner, ariProperties == null ? void 0 : ariProperties.resourceOwner), validateResourceType(resourceType, ariProperties == null ? void 0 : ariProperties.resourceType), validateResourceIdSegments(resourceIdSegmentValues, ariProperties == null ? void 0 : ariProperties.resourceIdSegmentFormats), {
121
+ qualifier,
122
+ resourceOwner,
123
+ resourceType,
124
+ platformQualifier,
125
+ cloudId,
126
+ resourceId,
127
+ resourceIdSegmentValues
128
+ };
129
+ }
130
+ static ariSegmentValuesFromSlug(slug, incomingSegments, expectedKeys) {
131
+ let regexpResult = new RegExp("^" + slug.replace(/\{(.*?)\}/g, "(?<$1>.*?)") + "$").exec(incomingSegments);
132
+ if (!regexpResult)
133
+ throw new ValidationError(`Segment '${incomingSegments}' don't match expected slug: ${slug}`);
134
+ return expectedKeys.forEach((expectedKey) => {
135
+ var _a;
136
+ if (!((_a = regexpResult.groups) != null && _a[expectedKey]))
137
+ throw new ValidationError(`No value supplied for '${expectedKey}' based on slug ${slug}`);
138
+ }), regexpResult.groups || {};
139
+ }
140
+ };
141
+
142
+ // src/core/parser/ati.ts
143
+ var NUMBER_OF_ATI_SEGMENTS = 4, AtiParser = class extends BaseParser {
144
+ static fromString(inputStr, atiOpts) {
145
+ let segments = this.getIdentifierSegments(inputStr, NUMBER_OF_ATI_SEGMENTS), [qualifier = "ati", platformQualifier = "cloud", resourceOwner, resourceType] = segments;
146
+ return validateAtiQualifier(qualifier), validatePlatformQualifier(platformQualifier), validateResourceOwner(resourceOwner, atiOpts == null ? void 0 : atiOpts.resourceOwner), validateResourceType(resourceType, atiOpts == null ? void 0 : atiOpts.resourceType), { platformQualifier, resourceOwner, resourceType };
147
+ }
148
+ static fromOpts(maybeAtiOpts, atiOpts) {
149
+ let { qualifier, platformQualifier, resourceOwner, resourceType } = maybeAtiOpts;
150
+ return validateAtiQualifier(qualifier), validatePlatformQualifier(platformQualifier), validateResourceOwner(resourceOwner, atiOpts == null ? void 0 : atiOpts.resourceOwner), validateResourceType(resourceType, atiOpts == null ? void 0 : atiOpts.resourceType), {
151
+ platformQualifier,
152
+ resourceOwner,
153
+ resourceType
154
+ };
155
+ }
156
+ };
157
+
158
+ // src/ati.ts
159
+ var Ati = class _Ati {
160
+ constructor(platformQualifier, resourceOwner, resourceType) {
161
+ this._platformQualifier = platformQualifier, this._resourceOwner = resourceOwner, this._resourceType = resourceType;
162
+ }
163
+ get platformQualifier() {
164
+ return this._platformQualifier;
165
+ }
166
+ get resourceOwner() {
167
+ return this._resourceOwner;
168
+ }
169
+ get resourceType() {
170
+ return this._resourceType;
171
+ }
172
+ static create(opts) {
173
+ return new _Ati(opts.platformQualifier || "cloud", opts.resourceOwner, opts.resourceType);
174
+ }
175
+ static parse(maybeAti, atiOpts) {
176
+ let opts = AtiParser.fromString(maybeAti, atiOpts);
177
+ return new _Ati(opts.platformQualifier, opts.resourceOwner, opts.resourceType);
178
+ }
179
+ toString() {
180
+ return `ati:${this.platformQualifier}:${this.resourceOwner}:${this.resourceType}`;
181
+ }
182
+ toJSON() {
183
+ return this.toString();
184
+ }
185
+ toOpts() {
186
+ return {
187
+ platformQualifier: this._platformQualifier,
188
+ resourceOwner: this._resourceOwner,
189
+ resourceType: this._resourceType
190
+ };
191
+ }
192
+ };
193
+
194
+ // src/core/ari.ts
195
+ var Ari = class {
196
+ constructor(opts) {
197
+ this._ati = Ati.create({
198
+ platformQualifier: "cloud",
199
+ resourceOwner: opts.resourceOwner,
200
+ resourceType: opts.resourceType
201
+ }), this._cloudId = opts.cloudId !== "" ? opts.cloudId : void 0, this._resourceId = opts.resourceId;
202
+ }
203
+ get platformQualifier() {
204
+ return this._ati.platformQualifier;
205
+ }
206
+ get cloudId() {
207
+ return this._cloudId;
208
+ }
209
+ get resourceOwner() {
210
+ return this._ati.resourceOwner;
211
+ }
212
+ get resourceType() {
213
+ return this._ati.resourceType;
214
+ }
215
+ get resourceId() {
216
+ return this._resourceId;
217
+ }
218
+ get ati() {
219
+ return this._ati;
220
+ }
221
+ equals(other) {
222
+ return this.toString() === other.toString();
223
+ }
224
+ toString() {
225
+ return `ari:${this.platformQualifier}:${this.resourceOwner}:${this.cloudId || ""}:${this.resourceType}/${this.resourceId}`;
226
+ }
227
+ toJSON() {
228
+ return this.toString();
229
+ }
230
+ toOpts() {
231
+ return {
232
+ platformQualifier: this.platformQualifier,
233
+ resourceOwner: this.resourceOwner,
234
+ cloudId: this.cloudId,
235
+ resourceType: this.resourceType,
236
+ resourceId: this.resourceId
237
+ };
238
+ }
239
+ };
240
+
241
+ // src/any-ari.ts
242
+ var AnyAri = class _AnyAri extends Ari {
243
+ constructor(opts) {
244
+ super(opts);
245
+ }
246
+ static create(ariOpts, ariStaticOpts) {
247
+ let ariOptsWithDefaults = { ...ariOpts, resourceIdSegmentValues: {} }, validatedOpts = AriParser.fromOpts(ariOptsWithDefaults, ariStaticOpts);
248
+ return new _AnyAri(validatedOpts);
249
+ }
250
+ static parse(maybeAri, ariStaticOpts) {
251
+ let validatedOpts = AriParser.fromString(maybeAri, ariStaticOpts);
252
+ return new _AnyAri(validatedOpts);
253
+ }
254
+ static check(maybeAri) {
255
+ try {
256
+ return _AnyAri.parse(maybeAri.toString()), !0;
257
+ } catch (err) {
258
+ return !1;
259
+ }
260
+ }
261
+ asAnyAri() {
262
+ return this;
263
+ }
264
+ };
265
+
266
+ // src/core/registered-ari.ts
267
+ var RegisteredAri = class extends Ari {
268
+ static check(maybeAri) {
269
+ try {
270
+ return this.parse(maybeAri.toString()), !0;
271
+ } catch (err) {
272
+ return !1;
273
+ }
274
+ }
275
+ asAnyAri() {
276
+ return AnyAri.parse(this.toString());
277
+ }
278
+ };
279
+
280
+ // src/confluence/embed/types.ts
281
+ var ConfluenceEmbedAriResourceOwner = "confluence", ConfluenceEmbedAriResourceType = "embed";
282
+
283
+ // src/confluence/embed/manifest.ts
284
+ var confluenceEmbedAriStaticOpts = {
285
+ qualifier: "ari",
286
+ platformQualifier: "cloud",
287
+ cloudId: new RegExp("^[a-zA-Z0-9-]+$"),
288
+ resourceOwner: ConfluenceEmbedAriResourceOwner,
289
+ resourceType: ConfluenceEmbedAriResourceType,
290
+ resourceIdSlug: "activation/{activationId}/{embedId}",
291
+ resourceIdSegmentFormats: {
292
+ activationId: /[a-zA-Z0-9\-]+/,
293
+ // eslint-disable-line no-useless-escape
294
+ embedId: /[0-9]+/
295
+ // eslint-disable-line no-useless-escape
296
+ }
297
+ };
298
+
299
+ // src/confluence/embed/index.ts
300
+ var ConfluenceEmbedAri = class _ConfluenceEmbedAri extends RegisteredAri {
301
+ constructor(opts) {
302
+ super(opts);
303
+ this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._embedId = opts.resourceIdSegmentValues.embedId;
304
+ }
305
+ get siteId() {
306
+ return this._siteId;
307
+ }
308
+ get activationId() {
309
+ return this._activationId;
310
+ }
311
+ get embedId() {
312
+ return this._embedId;
313
+ }
314
+ static create(opts) {
315
+ let derivedOpts = {
316
+ qualifier: confluenceEmbedAriStaticOpts.qualifier,
317
+ platformQualifier: confluenceEmbedAriStaticOpts.platformQualifier,
318
+ cloudId: opts.siteId,
319
+ resourceOwner: confluenceEmbedAriStaticOpts.resourceOwner,
320
+ resourceType: confluenceEmbedAriStaticOpts.resourceType,
321
+ resourceId: `activation/${opts.activationId}/${opts.embedId}`,
322
+ resourceIdSegmentValues: {
323
+ activationId: opts.activationId,
324
+ embedId: opts.embedId
325
+ }
326
+ }, ariOpts = AriParser.fromOpts(derivedOpts, confluenceEmbedAriStaticOpts);
327
+ return new _ConfluenceEmbedAri(ariOpts);
328
+ }
329
+ static parse(maybeAri) {
330
+ let opts = AriParser.fromString(maybeAri, confluenceEmbedAriStaticOpts);
331
+ return new _ConfluenceEmbedAri(opts);
332
+ }
333
+ getVariables() {
334
+ return {
335
+ siteId: this.siteId,
336
+ activationId: this.activationId,
337
+ embedId: this.embedId
338
+ };
339
+ }
340
+ };
341
+ // Annotate the CommonJS export names for ESM import in node:
342
+ 0 && (module.exports = {
343
+ ConfluenceEmbedAri,
344
+ ConfluenceEmbedAriResourceOwner,
345
+ ConfluenceEmbedAriResourceType
346
+ });
@@ -0,0 +1,17 @@
1
+ import {
2
+ ConfluenceEmbedAri
3
+ } from "../../chunk-K2XTPA47.mjs";
4
+ import {
5
+ ConfluenceEmbedAriResourceOwner,
6
+ ConfluenceEmbedAriResourceType
7
+ } from "../../chunk-N5UKNFK5.mjs";
8
+ import "../../chunk-PA4Y7TWI.mjs";
9
+ import "../../chunk-NCC2UXNN.mjs";
10
+ import "../../chunk-2UUYVBKT.mjs";
11
+ import "../../chunk-GDQPXUOZ.mjs";
12
+ import "../../chunk-FAZYALZ2.mjs";
13
+ export {
14
+ ConfluenceEmbedAri,
15
+ ConfluenceEmbedAriResourceOwner,
16
+ ConfluenceEmbedAriResourceType
17
+ };
@@ -0,0 +1,3 @@
1
+ export { ConfluenceEmbedAriOpts } from '../../_tsup-dts-rollup';
2
+ export { ConfluenceEmbedAriResourceOwner_alias_1 as ConfluenceEmbedAriResourceOwner } from '../../_tsup-dts-rollup';
3
+ export { ConfluenceEmbedAriResourceType_alias_1 as ConfluenceEmbedAriResourceType } from '../../_tsup-dts-rollup';