@salesforce/lds-adapters-analytics-wave 1.465.0 → 1.467.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.
package/src/raml/api.raml CHANGED
@@ -2786,20 +2786,24 @@ types:
2786
2786
  type: string
2787
2787
  runStatus:
2788
2788
  description: The runtime status of the platform audit run. RUNNING until every check
2789
- has finished or the run ends early. A run that ended before every check finished,
2789
+ has finished, the run ends early, or a user cancels it. A run cancelled while RUNNING
2790
+ is CANCELLED - its check results are discarded, every check it lists is CANCELLED,
2791
+ and it is not scored. A run that ended before every check finished in any other way,
2790
2792
  for example because it ran too long, is FAILED. Otherwise the terminal status depends
2791
- on every check except crma-inventory - READY if each is COMPLETE, FAILED if none is
2792
- COMPLETE or COMPLETE_WITH_LIMITATIONS, and COMPLETE_WITH_LIMITATIONS otherwise.
2793
- crma-inventory only counts the org's assets and its status does not affect the
2794
- run's, so a READY run can have a crma-inventory check that is
2795
- COMPLETE_WITH_LIMITATIONS, UNAVAILABLE, or FAILED. A FAILED run can still carry finished checks,
2796
- findings, and a health score; any unfinished check it lists is NOT_FINISHED.
2793
+ on every check except crma-inventory (or on every check, if crma-inventory is the
2794
+ only one) - READY if each is COMPLETE, FAILED if none is COMPLETE or
2795
+ COMPLETE_WITH_LIMITATIONS, and COMPLETE_WITH_LIMITATIONS otherwise. crma-inventory
2796
+ only counts the org's assets and its status does not affect the run's, so a READY run
2797
+ can have a crma-inventory check that is COMPLETE_WITH_LIMITATIONS, UNAVAILABLE, or
2798
+ FAILED; the run still waits for it to finish. A FAILED run can still carry finished
2799
+ checks, findings, and a health score; any unfinished check it lists is NOT_FINISHED.
2797
2800
  type: string
2798
2801
  enum:
2799
2802
  - RUNNING
2800
2803
  - READY
2801
2804
  - COMPLETE_WITH_LIMITATIONS
2802
2805
  - FAILED
2806
+ - CANCELLED # TODO Hand-rolled W-24626646
2803
2807
  scope:
2804
2808
  description: The scope of assets covered by the platform audit run.
2805
2809
  type: string
@@ -2812,8 +2816,8 @@ types:
2812
2816
  type: number
2813
2817
  checksTerminal:
2814
2818
  description: The number of checks that have finished. It stays below checksTotal
2815
- for a run that ended early, so use runStatus, not this count, to tell whether the
2816
- run is still going.
2819
+ for a run that ended early, and is 0 for a CANCELLED run, so use runStatus, not this
2820
+ count, to tell whether the run is still going.
2817
2821
  # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
2818
2822
  format: double
2819
2823
  type: number
@@ -2821,37 +2825,43 @@ types:
2821
2825
  description: The date the platform audit run was created.
2822
2826
  type: string
2823
2827
  completedDate:
2824
- description: The date the platform audit run completed. Absent while the run is RUNNING.
2828
+ description: The date the platform audit run completed, or for a CANCELLED run, the
2829
+ date it was cancelled. Absent while the run is RUNNING.
2825
2830
  type: string | nil
2826
2831
  required: false
2827
2832
  checks:
2828
2833
  description: Every check of the audit run with its status - finished checks with
2829
- their results, and checks that have not finished without one.
2834
+ their results, and checks that have not finished without one. Every check of a
2835
+ CANCELLED run is listed as CANCELLED, without a result.
2830
2836
  type: PlatformAuditCheckCollectionRepresentation
2831
2837
  healthScore:
2832
2838
  description: The aggregated health score for the run, computed from its finished
2833
- checks on every read, including while RUNNING. Absent when the score is suppressed
2834
- (the scored checks scanned less than half of their candidates, or had no
2835
- candidates, as when no finished check could be scored) or could not be computed.
2839
+ checks on every read, including while RUNNING. crma-inventory is not scored. Absent
2840
+ when the score is suppressed (the scored checks scanned less than half of their
2841
+ candidates, or had no candidates, as when no finished check could be scored) or
2842
+ could not be computed, and always absent for a CANCELLED run, which is not scored.
2836
2843
  type: integer | nil
2837
2844
  required: false
2838
2845
  verdict:
2839
2846
  description: The aggregated health verdict for the run (Healthy, NeedsAttention,
2840
2847
  Critical, or Indeterminate when the score is suppressed), computed from its
2841
- finished checks on every read, including while RUNNING. Absent only when scoring
2842
- could not be computed.
2848
+ finished checks on every read, including while RUNNING; crma-inventory does not
2849
+ affect it. NotApplicable for a CANCELLED run, which is not scored. Absent only when
2850
+ scoring could not be computed.
2843
2851
  type: string | nil
2844
2852
  required: false
2845
2853
  urgency:
2846
2854
  description: The aggregated health urgency triage, split into critical-now and
2847
2855
  needs-attention tiers, computed from the finished checks on every read. Lists the
2848
- scored checks' findings even when the score is suppressed. Absent only when scoring
2849
- could not be computed.
2856
+ scored checks' findings even when the score is suppressed. Both tiers are empty for
2857
+ a CANCELLED run. Absent only when scoring could not be computed.
2850
2858
  type: PlatformAuditUrgencyRepresentation | nil
2851
2859
  required: false
2852
2860
  scoreSuppressed:
2853
- description: Whether the health score is suppressed for this run. Absent only when
2854
- scoring could not be computed.
2861
+ description: Whether the health score is suppressed for this run, so consumers show a
2862
+ dash rather than a number. Always true for a CANCELLED run. crma-inventory does not
2863
+ count toward the coverage that decides suppression. Absent only when scoring could
2864
+ not be computed.
2855
2865
  type: boolean | nil
2856
2866
  required: false
2857
2867
  PlatformAuditSnapshotRepresentation: # TODO Hand-rolled W-24314623
@@ -2866,20 +2876,24 @@ types:
2866
2876
  type: string
2867
2877
  runStatus:
2868
2878
  description: The runtime status of the platform audit run. RUNNING until every check
2869
- has finished or the run ends early. A run that ended before every check finished,
2879
+ has finished, the run ends early, or a user cancels it. A run cancelled while RUNNING
2880
+ is CANCELLED - its check results are discarded, every check it lists is CANCELLED,
2881
+ and it is not scored. A run that ended before every check finished in any other way,
2870
2882
  for example because it ran too long, is FAILED. Otherwise the terminal status depends
2871
- on every check except crma-inventory - READY if each is COMPLETE, FAILED if none is
2872
- COMPLETE or COMPLETE_WITH_LIMITATIONS, and COMPLETE_WITH_LIMITATIONS otherwise.
2873
- crma-inventory only counts the org's assets and its status does not affect the
2874
- run's, so a READY run can have a crma-inventory check that is
2875
- COMPLETE_WITH_LIMITATIONS, UNAVAILABLE, or FAILED. A FAILED run can still carry finished checks,
2876
- findings, and a health score; any unfinished check it lists is NOT_FINISHED.
2883
+ on every check except crma-inventory (or on every check, if crma-inventory is the
2884
+ only one) - READY if each is COMPLETE, FAILED if none is COMPLETE or
2885
+ COMPLETE_WITH_LIMITATIONS, and COMPLETE_WITH_LIMITATIONS otherwise. crma-inventory
2886
+ only counts the org's assets and its status does not affect the run's, so a READY run
2887
+ can have a crma-inventory check that is COMPLETE_WITH_LIMITATIONS, UNAVAILABLE, or
2888
+ FAILED; the run still waits for it to finish. A FAILED run can still carry finished
2889
+ checks, findings, and a health score; any unfinished check it lists is NOT_FINISHED.
2877
2890
  type: string
2878
2891
  enum:
2879
2892
  - RUNNING
2880
2893
  - READY
2881
2894
  - COMPLETE_WITH_LIMITATIONS
2882
2895
  - FAILED
2896
+ - CANCELLED # TODO Hand-rolled W-24626646
2883
2897
  scope:
2884
2898
  description: The scope of assets covered by the platform audit run.
2885
2899
  type: string
@@ -2892,8 +2906,8 @@ types:
2892
2906
  type: number
2893
2907
  checksTerminal:
2894
2908
  description: The number of checks that have finished. It stays below checksTotal
2895
- for a run that ended early, so use runStatus, not this count, to tell whether the
2896
- run is still going.
2909
+ for a run that ended early, and is 0 for a CANCELLED run, so use runStatus, not this
2910
+ count, to tell whether the run is still going.
2897
2911
  # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
2898
2912
  format: double
2899
2913
  type: number
@@ -2901,37 +2915,43 @@ types:
2901
2915
  description: The date the platform audit run was created.
2902
2916
  type: string
2903
2917
  completedDate:
2904
- description: The date the platform audit run completed. Absent while the run is RUNNING.
2918
+ description: The date the platform audit run completed, or for a CANCELLED run, the
2919
+ date it was cancelled. Absent while the run is RUNNING.
2905
2920
  type: string | nil
2906
2921
  required: false
2907
2922
  checks:
2908
2923
  description: Every check of the audit run with its status - finished checks with
2909
- their results, and checks that have not finished without one.
2924
+ their results, and checks that have not finished without one. Every check of a
2925
+ CANCELLED run is listed as CANCELLED, without a result.
2910
2926
  type: PlatformAuditCheckCollectionRepresentation
2911
2927
  healthScore:
2912
2928
  description: The aggregated health score for the run, computed from its finished
2913
- checks on every read, including while RUNNING. Absent when the score is suppressed
2914
- (the scored checks scanned less than half of their candidates, or had no
2915
- candidates, as when no finished check could be scored) or could not be computed.
2929
+ checks on every read, including while RUNNING. crma-inventory is not scored. Absent
2930
+ when the score is suppressed (the scored checks scanned less than half of their
2931
+ candidates, or had no candidates, as when no finished check could be scored) or
2932
+ could not be computed, and always absent for a CANCELLED run, which is not scored.
2916
2933
  type: integer | nil
2917
2934
  required: false
2918
2935
  verdict:
2919
2936
  description: The aggregated health verdict for the run (Healthy, NeedsAttention,
2920
2937
  Critical, or Indeterminate when the score is suppressed), computed from its
2921
- finished checks on every read, including while RUNNING. Absent only when scoring
2922
- could not be computed.
2938
+ finished checks on every read, including while RUNNING; crma-inventory does not
2939
+ affect it. NotApplicable for a CANCELLED run, which is not scored. Absent only when
2940
+ scoring could not be computed.
2923
2941
  type: string | nil
2924
2942
  required: false
2925
2943
  urgency:
2926
2944
  description: The aggregated health urgency triage, split into critical-now and
2927
2945
  needs-attention tiers, computed from the finished checks on every read. Lists the
2928
- scored checks' findings even when the score is suppressed. Absent only when scoring
2929
- could not be computed.
2946
+ scored checks' findings even when the score is suppressed. Both tiers are empty for
2947
+ a CANCELLED run. Absent only when scoring could not be computed.
2930
2948
  type: PlatformAuditUrgencyRepresentation | nil
2931
2949
  required: false
2932
2950
  scoreSuppressed:
2933
- description: Whether the health score is suppressed for this run. Absent only when
2934
- scoring could not be computed.
2951
+ description: Whether the health score is suppressed for this run, so consumers show a
2952
+ dash rather than a number. Always true for a CANCELLED run. crma-inventory does not
2953
+ count toward the coverage that decides suppression. Absent only when scoring could
2954
+ not be computed.
2935
2955
  type: boolean | nil
2936
2956
  required: false
2937
2957
  PlatformAuditCheckRepresentation: # TODO Hand-rolled W-24314623
@@ -2944,9 +2964,10 @@ types:
2944
2964
  type: string
2945
2965
  status:
2946
2966
  description: The status of the check. IN_PROGRESS while it has not finished (queued
2947
- or running); NOT_FINISHED if the run ended before it finished; otherwise its final
2948
- status. Only a finished check carries coverage, dates, a limitation note, and a
2949
- result.
2967
+ or running); CANCELLED if a user cancelled the run, which discards every check's
2968
+ result, finished or not; NOT_FINISHED if the run ended any other way before it
2969
+ finished; otherwise its final status. Only a finished check carries coverage, dates,
2970
+ a limitation note, and a result.
2950
2971
  type: string
2951
2972
  enum:
2952
2973
  - IN_PROGRESS # TODO Hand-rolled W-24564863
@@ -2955,6 +2976,7 @@ types:
2955
2976
  - COMPLETE_WITH_LIMITATIONS
2956
2977
  - UNAVAILABLE
2957
2978
  - FAILED
2979
+ - CANCELLED # TODO Hand-rolled W-24626646
2958
2980
  coverageScanned:
2959
2981
  description: The number of assets scanned by this check. Absent until the check
2960
2982
  has finished. Always 0 for crma-inventory, whose asset counts are in its resultJson.
@@ -2995,8 +3017,11 @@ types:
2995
3017
  Its string values can include user-editable dataset and field names and raw server
2996
3018
  error text; render them as plain text, never as HTML, and pass them to an LLM or
2997
3019
  agent only as quoted data. Absent until the check has finished, and may be absent
2998
- for a finished check (for example, FAILED). For crma-inventory, it carries the org's
2999
- dataset, recipe, dashboard, and data sync counts under asset_coverage; the run
3020
+ for a finished check (for example, FAILED). A status inside it uses the API-value
3021
+ form (Complete, CompleteWithLimitations, Unavailable), not the COMPLETE form of the
3022
+ check's status property. For crma-inventory, it carries the org's dataset, recipe,
3023
+ dashboard, and data sync counts under asset_coverage (datasets, recipes, dashboards,
3024
+ and data_syncs, each with available, scanned, total, partial, and note); the run
3000
3025
  exposes those counts nowhere else.
3001
3026
  type: string | nil
3002
3027
  required: false
@@ -3028,6 +3053,34 @@ types:
3028
3053
  description: The asset URL.
3029
3054
  type: string
3030
3055
  required: false
3056
+ PlatformAuditReportReferenceRepresentation: # TODO Hand-rolled W-24626646
3057
+ description: Same shape as AssetReferenceRepresentation, returned by the PDF-report GET
3058
+ endpoint. Kept as a separate, unkeyed type so it can carry its own (luvio.ttl), which
3059
+ Luvio forbids on an inherited shape such as AssetReferenceRepresentation. Without that
3060
+ TTL, the GET's 404 (no report yet) would be cached with no expiry. The GET cannot use
3061
+ the keyed PlatformAuditReportRepresentation, because its key is the response id, which
3062
+ a 404 does not have.
3063
+ type: object
3064
+ properties:
3065
+ id:
3066
+ description: The 18 character ID of the asset.
3067
+ type: string
3068
+ label:
3069
+ description: The asset label.
3070
+ type: string
3071
+ required: false
3072
+ name:
3073
+ description: The asset developer name.
3074
+ type: string
3075
+ required: false
3076
+ namespace:
3077
+ description: The namespace that qualifies the asset name
3078
+ type: string
3079
+ required: false
3080
+ url:
3081
+ description: The asset URL.
3082
+ type: string
3083
+ required: false
3031
3084
  PlatformAuditCheckCollectionRepresentation: # TODO Hand-rolled W-24314623
3032
3085
  description: A collection of platform audit checks.
3033
3086
  type: object
@@ -3110,19 +3163,23 @@ types:
3110
3163
  type: string
3111
3164
  runStatus:
3112
3165
  description: The runtime status of the platform audit run. RUNNING until every check
3113
- has finished or the run ends early. A run that ended before every check finished,
3114
- for example because it ran too long, is FAILED. Otherwise the terminal status depends
3115
- on every check except crma-inventory - READY if each is COMPLETE, FAILED if none is
3116
- COMPLETE or COMPLETE_WITH_LIMITATIONS, and COMPLETE_WITH_LIMITATIONS otherwise.
3117
- crma-inventory only counts the org's assets and its status does not affect the
3118
- run's, so a READY run can have a crma-inventory check that is
3119
- COMPLETE_WITH_LIMITATIONS, UNAVAILABLE, or FAILED. A FAILED run can still have a health score.
3166
+ has finished, the run ends early, or a user cancels it. A run cancelled while RUNNING
3167
+ is CANCELLED - its check results are discarded and it is not scored. A run that ended
3168
+ before every check finished in any other way, for example because it ran too long, is
3169
+ FAILED. Otherwise the terminal status depends on every check except crma-inventory
3170
+ (or on every check, if crma-inventory is the only one) - READY if each is COMPLETE,
3171
+ FAILED if none is COMPLETE or COMPLETE_WITH_LIMITATIONS, and
3172
+ COMPLETE_WITH_LIMITATIONS otherwise. crma-inventory only counts the org's assets and
3173
+ its status does not affect the run's, so a READY run can have a crma-inventory check
3174
+ that is COMPLETE_WITH_LIMITATIONS, UNAVAILABLE, or FAILED; the run still waits for it
3175
+ to finish. A FAILED run can still have a health score.
3120
3176
  type: string
3121
3177
  enum:
3122
3178
  - RUNNING
3123
3179
  - READY
3124
3180
  - COMPLETE_WITH_LIMITATIONS
3125
3181
  - FAILED
3182
+ - CANCELLED # TODO Hand-rolled W-24626646
3126
3183
  scope:
3127
3184
  description: The scope of assets covered by the platform audit run.
3128
3185
  type: string
@@ -3135,8 +3192,8 @@ types:
3135
3192
  type: number
3136
3193
  checksTerminal:
3137
3194
  description: The number of checks that have finished. It stays below checksTotal
3138
- for a run that ended early, so use runStatus, not this count, to tell whether the
3139
- run is still going.
3195
+ for a run that ended early, and is 0 for a CANCELLED run, so use runStatus, not this
3196
+ count, to tell whether the run is still going.
3140
3197
  # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
3141
3198
  format: double
3142
3199
  type: number
@@ -3144,26 +3201,31 @@ types:
3144
3201
  description: The date the platform audit run was created.
3145
3202
  type: string
3146
3203
  completedDate:
3147
- description: The date the platform audit run completed. Absent while the run is RUNNING.
3204
+ description: The date the platform audit run completed, or for a CANCELLED run, the
3205
+ date it was cancelled. Absent while the run is RUNNING.
3148
3206
  type: string | nil
3149
3207
  required: false
3150
3208
  healthScore:
3151
3209
  description: The aggregated health score for the run, computed from its finished
3152
- checks on every read, including while RUNNING. Absent when the score is suppressed
3153
- (the scored checks scanned less than half of their candidates, or had no
3154
- candidates, as when no finished check could be scored) or could not be computed.
3210
+ checks on every read, including while RUNNING. crma-inventory is not scored. Absent
3211
+ when the score is suppressed (the scored checks scanned less than half of their
3212
+ candidates, or had no candidates, as when no finished check could be scored) or
3213
+ could not be computed, and always absent for a CANCELLED run, which is not scored.
3155
3214
  type: integer | nil
3156
3215
  required: false
3157
3216
  verdict:
3158
3217
  description: The aggregated health verdict for the run (Healthy, NeedsAttention,
3159
3218
  Critical, or Indeterminate when the score is suppressed), computed from its
3160
- finished checks on every read, including while RUNNING. Absent only when scoring
3161
- could not be computed.
3219
+ finished checks on every read, including while RUNNING; crma-inventory does not
3220
+ affect it. NotApplicable for a CANCELLED run, which is not scored. Absent only when
3221
+ scoring could not be computed.
3162
3222
  type: string | nil
3163
3223
  required: false
3164
3224
  scoreSuppressed:
3165
- description: Whether the health score is suppressed for this run. Absent only when
3166
- scoring could not be computed.
3225
+ description: Whether the health score is suppressed for this run, so consumers show a
3226
+ dash rather than a number. Always true for a CANCELLED run. crma-inventory does not
3227
+ count toward the coverage that decides suppression. Absent only when scoring could
3228
+ not be computed.
3167
3229
  type: boolean | nil
3168
3230
  required: false
3169
3231
  PlatformAuditCollectionRepresentation: # TODO Hand-rolled W-24314623
@@ -7942,7 +8004,10 @@ types:
7942
8004
  application/json:
7943
8005
  type: PlatformAuditSnapshotRepresentation
7944
8006
  post:
7945
- description: Trigger a new platform audit run.
8007
+ description: Trigger a new platform audit run. A CANCELLED run frees the org's single
8008
+ running slot and does not count toward the one-run-per-24h rate limit, but every
8009
+ trigger, cancelled or not, counts toward a cap of three per org per 24h (403 when
8010
+ exceeded).
7946
8011
  responses:
7947
8012
  '200':
7948
8013
  description: Success
@@ -7958,16 +8023,32 @@ types:
7958
8023
  body:
7959
8024
  application/json:
7960
8025
  type: PlatformAuditRepresentation
8026
+ post: # TODO Hand-rolled W-24626646
8027
+ description: Cancel a RUNNING platform audit run. Takes no body. Discards every check
8028
+ result the run has written, marks it CANCELLED, and returns the cancelled run. Checks
8029
+ that are still executing stop at their next checkpoint and write nothing. The run is
8030
+ kept, so it stays in the history and can still be read by id, with every check listed
8031
+ as CANCELLED, verdict NotApplicable, and no health score; it has no PDF report.
8032
+ Returns 400 when the run is not RUNNING (it has already ended or been cancelled), 404
8033
+ for an unknown, deleted, malformed, or non-audit id, and 403 without permission to
8034
+ trigger a platform audit.
8035
+ responses:
8036
+ '200':
8037
+ description: Success
8038
+ body:
8039
+ application/json:
8040
+ type: PlatformAuditRepresentation
7961
8041
  uriParameters:
7962
8042
  auditId:
8043
+ description: The ID of the platform audit run (15 or 18 characters).
7963
8044
  type: string
7964
8045
  required: true
7965
8046
  /platform-audit/{auditId}/checks/{checkId}: # TODO Hand-rolled W-24314623
7966
8047
  get:
7967
8048
  description: Get a single check's result within a platform audit run. Returns 404
7968
8049
  when the run or the check does not exist. The server has no record of a check until
7969
- it finishes, so an IN_PROGRESS or NOT_FINISHED check also returns 404; a FAILED check
7970
- returns 200.
8050
+ it finishes, and cancelling a run deletes every check's record, so an IN_PROGRESS,
8051
+ NOT_FINISHED, or CANCELLED check also returns 404; a FAILED check returns 200.
7971
8052
  responses:
7972
8053
  '200':
7973
8054
  description: Success
@@ -7985,16 +8066,18 @@ types:
7985
8066
  /platform-audit/{auditId}/report: # TODO Hand-rolled W-24362345
7986
8067
  get:
7987
8068
  description: Resolve the audit run's already-generated PDF report and return a
7988
- reference to the downloadable File.
8069
+ reference to the downloadable File. Returns 404 until a report has been generated,
8070
+ and always for a CANCELLED run.
7989
8071
  responses:
7990
8072
  '200':
7991
8073
  description: Success
7992
8074
  body:
7993
8075
  application/json:
7994
- type: AssetReferenceRepresentation
8076
+ type: PlatformAuditReportReferenceRepresentation # TODO Hand-rolled W-24626646
7995
8077
  post:
7996
8078
  description: Generate or reuse the audit run's PDF report and return a reference
7997
- to the downloadable File.
8079
+ to the downloadable File. Returns 400 unless the run is READY or
8080
+ COMPLETE_WITH_LIMITATIONS, so a RUNNING, FAILED, or CANCELLED run has no report.
7998
8081
  responses:
7999
8082
  '200':
8000
8083
  description: Success
@@ -8007,10 +8090,10 @@ types:
8007
8090
  required: true
8008
8091
  /platform-audit/history: # TODO Hand-rolled W-24314623
8009
8092
  get:
8010
- description: Get the org's platform-audit history, most recent first. Returns an
8011
- empty collection (not a 404) when no runs exist. The connect resource hardcodes
8012
- offset=0/limit=200 server-side and ignores client-supplied paging params;
8013
- see W-24314623 comments before adding offset/limit here.
8093
+ description: Get the org's platform-audit history, most recent first. CANCELLED runs
8094
+ are kept and listed. Returns an empty collection (not a 404) when no runs exist. The
8095
+ connect resource hardcodes offset=0/limit=200 server-side and ignores client-supplied
8096
+ paging params; see W-24314623 comments before adding offset/limit here.
8014
8097
  responses:
8015
8098
  '200':
8016
8099
  description: Success
@@ -74,6 +74,11 @@ types:
74
74
  (luvio.ttl): 300
75
75
  (luvio.key):
76
76
  id: id
77
+ # A 404 is only cached with an expiry when the return type has its own TTL (the
78
+ # package-level one doesn't count), so without this a "no report yet" 404 from
79
+ # getPlatformAuditReport would be served from the cache until the page reloads.
80
+ PlatformAuditReportReferenceRepresentation: # TODO Hand-rolled W-24626646
81
+ (luvio.ttl): 300
77
82
  RecipeCollectionRepresentation:
78
83
  (luvio.opaque): true
79
84
  (luvio.ttl): 300
@@ -371,14 +376,21 @@ types:
371
376
  name: getPlatformAudit
372
377
  (luvio.key):
373
378
  id: urlParams.auditId
379
+ # Returns the auditId-keyed PlatformAuditRepresentation, so the cancelled run replaces
380
+ # the cached getPlatformAudit record for the same run. That holds when getPlatformAudit
381
+ # is called with the 18-character id the API returns: the record is keyed by the
382
+ # response's auditId, but getPlatformAudit looks it up by the id in the URL.
383
+ post: # TODO Hand-rolled W-24626646
384
+ (luvio.adapter):
385
+ name: cancelPlatformAudit
374
386
  /platform-audit/{auditId}/checks/{checkId}: # TODO Hand-rolled W-24314623
375
387
  get:
376
388
  (luvio.adapter):
377
389
  name: getPlatformAuditCheck
378
390
  /platform-audit/{auditId}/report: # TODO Hand-rolled W-24362345
379
- # No (luvio.key): the GET response is an AssetReferenceRepresentation, which has
380
- # no auditId field to key on (same reasoning as getPlatformAuditCheck above), so
381
- # this caches by request path only.
391
+ # No (luvio.key): the GET response is a PlatformAuditReportReferenceRepresentation,
392
+ # which has no auditId field to key on (same reasoning as getPlatformAuditCheck
393
+ # above), so this caches by request path only.
382
394
  get:
383
395
  (luvio.adapter):
384
396
  name: getPlatformAuditReport