@actions/artifact 1.1.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/README.md +116 -173
  2. package/lib/artifact.d.ts +6 -0
  3. package/lib/artifact.js +23 -0
  4. package/lib/artifact.js.map +1 -0
  5. package/lib/generated/google/protobuf/timestamp.d.ts +145 -0
  6. package/lib/generated/google/protobuf/timestamp.js +136 -0
  7. package/lib/generated/google/protobuf/timestamp.js.map +1 -0
  8. package/lib/generated/google/protobuf/wrappers.d.ts +307 -0
  9. package/lib/generated/google/protobuf/wrappers.js +609 -0
  10. package/lib/generated/google/protobuf/wrappers.js.map +1 -0
  11. package/lib/generated/index.d.ts +4 -0
  12. package/lib/generated/index.js +21 -0
  13. package/lib/generated/index.js.map +1 -0
  14. package/lib/generated/results/api/v1/artifact.d.ts +286 -0
  15. package/lib/generated/results/api/v1/artifact.js +588 -0
  16. package/lib/generated/results/api/v1/artifact.js.map +1 -0
  17. package/lib/generated/results/api/v1/artifact.twirp.d.ts +43 -0
  18. package/lib/generated/results/api/v1/artifact.twirp.js +416 -0
  19. package/lib/generated/results/api/v1/artifact.twirp.js.map +1 -0
  20. package/lib/internal/client.d.ts +61 -0
  21. package/lib/internal/client.js +121 -0
  22. package/lib/internal/client.js.map +1 -0
  23. package/lib/internal/download/download-artifact.d.ts +4 -0
  24. package/lib/internal/download/download-artifact.js +205 -0
  25. package/lib/internal/download/download-artifact.js.map +1 -0
  26. package/lib/internal/find/get-artifact.d.ts +3 -0
  27. package/lib/internal/find/get-artifact.js +118 -0
  28. package/lib/internal/find/get-artifact.js.map +1 -0
  29. package/lib/internal/find/list-artifacts.d.ts +3 -0
  30. package/lib/internal/find/list-artifacts.js +139 -0
  31. package/lib/internal/find/list-artifacts.js.map +1 -0
  32. package/lib/internal/find/retry-options.d.ts +7 -0
  33. package/lib/internal/find/retry-options.js +50 -0
  34. package/lib/internal/find/retry-options.js.map +1 -0
  35. package/lib/internal/shared/artifact-twirp-client.d.ts +6 -0
  36. package/lib/internal/shared/artifact-twirp-client.js +153 -0
  37. package/lib/internal/shared/artifact-twirp-client.js.map +1 -0
  38. package/lib/internal/shared/config.d.ts +6 -0
  39. package/lib/internal/shared/config.js +55 -0
  40. package/lib/internal/shared/config.js.map +1 -0
  41. package/lib/internal/shared/errors.d.ts +22 -0
  42. package/lib/internal/shared/errors.js +70 -0
  43. package/lib/internal/shared/errors.js.map +1 -0
  44. package/lib/internal/shared/interfaces.d.ts +136 -0
  45. package/lib/internal/{contracts.js → shared/interfaces.js} +1 -1
  46. package/lib/internal/shared/interfaces.js.map +1 -0
  47. package/lib/internal/shared/user-agent.d.ts +4 -0
  48. package/lib/internal/shared/user-agent.js +13 -0
  49. package/lib/internal/shared/user-agent.js.map +1 -0
  50. package/lib/internal/shared/util.d.ts +5 -0
  51. package/lib/internal/shared/util.js +81 -0
  52. package/lib/internal/shared/util.js.map +1 -0
  53. package/lib/internal/upload/blob-upload.d.ts +12 -0
  54. package/lib/internal/upload/blob-upload.js +87 -0
  55. package/lib/internal/upload/blob-upload.js.map +1 -0
  56. package/lib/internal/upload/path-and-artifact-name-validation.d.ts +8 -0
  57. package/lib/internal/{path-and-artifact-name-validation.js → upload/path-and-artifact-name-validation.js} +11 -11
  58. package/lib/internal/upload/path-and-artifact-name-validation.js.map +1 -0
  59. package/lib/internal/upload/retention.d.ts +2 -0
  60. package/lib/internal/upload/retention.js +54 -0
  61. package/lib/internal/upload/retention.js.map +1 -0
  62. package/lib/internal/upload/upload-artifact.d.ts +2 -0
  63. package/lib/internal/upload/upload-artifact.js +103 -0
  64. package/lib/internal/upload/upload-artifact.js.map +1 -0
  65. package/lib/internal/upload/upload-zip-specification.d.ts +21 -0
  66. package/lib/internal/{upload-specification.js → upload/upload-zip-specification.js} +44 -36
  67. package/lib/internal/upload/upload-zip-specification.js.map +1 -0
  68. package/lib/internal/upload/zip.d.ts +9 -0
  69. package/lib/internal/upload/zip.js +113 -0
  70. package/lib/internal/upload/zip.js.map +1 -0
  71. package/package.json +26 -12
  72. package/lib/artifact-client.d.ts +0 -10
  73. package/lib/artifact-client.js +0 -12
  74. package/lib/artifact-client.js.map +0 -1
  75. package/lib/internal/artifact-client.d.ts +0 -41
  76. package/lib/internal/artifact-client.js +0 -182
  77. package/lib/internal/artifact-client.js.map +0 -1
  78. package/lib/internal/config-variables.d.ts +0 -12
  79. package/lib/internal/config-variables.js +0 -77
  80. package/lib/internal/config-variables.js.map +0 -1
  81. package/lib/internal/contracts.d.ts +0 -67
  82. package/lib/internal/contracts.js.map +0 -1
  83. package/lib/internal/crc64.d.ts +0 -21
  84. package/lib/internal/crc64.js +0 -303
  85. package/lib/internal/crc64.js.map +0 -1
  86. package/lib/internal/download-http-client.d.ts +0 -39
  87. package/lib/internal/download-http-client.js +0 -296
  88. package/lib/internal/download-http-client.js.map +0 -1
  89. package/lib/internal/download-options.d.ts +0 -7
  90. package/lib/internal/download-options.js +0 -3
  91. package/lib/internal/download-options.js.map +0 -1
  92. package/lib/internal/download-response.d.ts +0 -10
  93. package/lib/internal/download-response.js +0 -3
  94. package/lib/internal/download-response.js.map +0 -1
  95. package/lib/internal/download-specification.d.ts +0 -19
  96. package/lib/internal/download-specification.js +0 -78
  97. package/lib/internal/download-specification.js.map +0 -1
  98. package/lib/internal/http-manager.d.ts +0 -12
  99. package/lib/internal/http-manager.js +0 -32
  100. package/lib/internal/http-manager.js.map +0 -1
  101. package/lib/internal/path-and-artifact-name-validation.d.ts +0 -8
  102. package/lib/internal/path-and-artifact-name-validation.js.map +0 -1
  103. package/lib/internal/requestUtils.d.ts +0 -3
  104. package/lib/internal/requestUtils.js +0 -92
  105. package/lib/internal/requestUtils.js.map +0 -1
  106. package/lib/internal/status-reporter.d.ts +0 -21
  107. package/lib/internal/status-reporter.js +0 -52
  108. package/lib/internal/status-reporter.js.map +0 -1
  109. package/lib/internal/upload-gzip.d.ts +0 -14
  110. package/lib/internal/upload-gzip.js +0 -147
  111. package/lib/internal/upload-gzip.js.map +0 -1
  112. package/lib/internal/upload-http-client.d.ts +0 -48
  113. package/lib/internal/upload-http-client.js +0 -415
  114. package/lib/internal/upload-http-client.js.map +0 -1
  115. package/lib/internal/upload-options.d.ts +0 -34
  116. package/lib/internal/upload-options.js +0 -3
  117. package/lib/internal/upload-options.js.map +0 -1
  118. package/lib/internal/upload-response.d.ts +0 -19
  119. package/lib/internal/upload-response.js +0 -3
  120. package/lib/internal/upload-response.js.map +0 -1
  121. package/lib/internal/upload-specification.d.ts +0 -11
  122. package/lib/internal/upload-specification.js.map +0 -1
  123. package/lib/internal/utils.d.ts +0 -71
  124. package/lib/internal/utils.js +0 -292
  125. package/lib/internal/utils.js.map +0 -1
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./google/protobuf/timestamp"), exports);
18
+ __exportStar(require("./google/protobuf/wrappers"), exports);
19
+ __exportStar(require("./results/api/v1/artifact"), exports);
20
+ __exportStar(require("./results/api/v1/artifact.twirp"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA2C;AAC3C,6DAA0C;AAC1C,4DAAyC;AACzC,kEAA+C"}
@@ -0,0 +1,286 @@
1
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
2
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
3
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
4
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
6
+ import type { PartialMessage } from "@protobuf-ts/runtime";
7
+ import { MessageType } from "@protobuf-ts/runtime";
8
+ import { Int64Value } from "../../../google/protobuf/wrappers";
9
+ import { StringValue } from "../../../google/protobuf/wrappers";
10
+ import { Timestamp } from "../../../google/protobuf/timestamp";
11
+ /**
12
+ * @generated from protobuf message github.actions.results.api.v1.CreateArtifactRequest
13
+ */
14
+ export interface CreateArtifactRequest {
15
+ /**
16
+ * @generated from protobuf field: string workflow_run_backend_id = 1;
17
+ */
18
+ workflowRunBackendId: string;
19
+ /**
20
+ * @generated from protobuf field: string workflow_job_run_backend_id = 2;
21
+ */
22
+ workflowJobRunBackendId: string;
23
+ /**
24
+ * @generated from protobuf field: string name = 3;
25
+ */
26
+ name: string;
27
+ /**
28
+ * @generated from protobuf field: google.protobuf.Timestamp expires_at = 4;
29
+ */
30
+ expiresAt?: Timestamp;
31
+ /**
32
+ * @generated from protobuf field: int32 version = 5;
33
+ */
34
+ version: number;
35
+ }
36
+ /**
37
+ * @generated from protobuf message github.actions.results.api.v1.CreateArtifactResponse
38
+ */
39
+ export interface CreateArtifactResponse {
40
+ /**
41
+ * @generated from protobuf field: bool ok = 1;
42
+ */
43
+ ok: boolean;
44
+ /**
45
+ * @generated from protobuf field: string signed_upload_url = 2;
46
+ */
47
+ signedUploadUrl: string;
48
+ }
49
+ /**
50
+ * @generated from protobuf message github.actions.results.api.v1.FinalizeArtifactRequest
51
+ */
52
+ export interface FinalizeArtifactRequest {
53
+ /**
54
+ * @generated from protobuf field: string workflow_run_backend_id = 1;
55
+ */
56
+ workflowRunBackendId: string;
57
+ /**
58
+ * @generated from protobuf field: string workflow_job_run_backend_id = 2;
59
+ */
60
+ workflowJobRunBackendId: string;
61
+ /**
62
+ * @generated from protobuf field: string name = 3;
63
+ */
64
+ name: string;
65
+ /**
66
+ * @generated from protobuf field: int64 size = 4;
67
+ */
68
+ size: string;
69
+ /**
70
+ * @generated from protobuf field: google.protobuf.StringValue hash = 5;
71
+ */
72
+ hash?: StringValue;
73
+ }
74
+ /**
75
+ * @generated from protobuf message github.actions.results.api.v1.FinalizeArtifactResponse
76
+ */
77
+ export interface FinalizeArtifactResponse {
78
+ /**
79
+ * @generated from protobuf field: bool ok = 1;
80
+ */
81
+ ok: boolean;
82
+ /**
83
+ * @generated from protobuf field: int64 artifact_id = 2;
84
+ */
85
+ artifactId: string;
86
+ }
87
+ /**
88
+ * @generated from protobuf message github.actions.results.api.v1.ListArtifactsRequest
89
+ */
90
+ export interface ListArtifactsRequest {
91
+ /**
92
+ * The backend plan ID
93
+ *
94
+ * @generated from protobuf field: string workflow_run_backend_id = 1;
95
+ */
96
+ workflowRunBackendId: string;
97
+ /**
98
+ * The backend job ID
99
+ *
100
+ * @generated from protobuf field: string workflow_job_run_backend_id = 2;
101
+ */
102
+ workflowJobRunBackendId: string;
103
+ /**
104
+ * Name of the artifact to filter on
105
+ *
106
+ * @generated from protobuf field: google.protobuf.StringValue name_filter = 3;
107
+ */
108
+ nameFilter?: StringValue;
109
+ /**
110
+ * Monolith Database ID of the artifact to filter on
111
+ *
112
+ * @generated from protobuf field: google.protobuf.Int64Value id_filter = 4;
113
+ */
114
+ idFilter?: Int64Value;
115
+ }
116
+ /**
117
+ * @generated from protobuf message github.actions.results.api.v1.ListArtifactsResponse
118
+ */
119
+ export interface ListArtifactsResponse {
120
+ /**
121
+ * @generated from protobuf field: repeated github.actions.results.api.v1.ListArtifactsResponse.MonolithArtifact artifacts = 1;
122
+ */
123
+ artifacts: ListArtifactsResponse_MonolithArtifact[];
124
+ }
125
+ /**
126
+ * @generated from protobuf message github.actions.results.api.v1.ListArtifactsResponse.MonolithArtifact
127
+ */
128
+ export interface ListArtifactsResponse_MonolithArtifact {
129
+ /**
130
+ * The backend plan ID
131
+ *
132
+ * @generated from protobuf field: string workflow_run_backend_id = 1;
133
+ */
134
+ workflowRunBackendId: string;
135
+ /**
136
+ * The backend job ID
137
+ *
138
+ * @generated from protobuf field: string workflow_job_run_backend_id = 2;
139
+ */
140
+ workflowJobRunBackendId: string;
141
+ /**
142
+ * Monolith database ID of the artifact
143
+ *
144
+ * @generated from protobuf field: int64 database_id = 3;
145
+ */
146
+ databaseId: string;
147
+ /**
148
+ * Name of the artifact
149
+ *
150
+ * @generated from protobuf field: string name = 4;
151
+ */
152
+ name: string;
153
+ /**
154
+ * Size of the artifact in bytes
155
+ *
156
+ * @generated from protobuf field: int64 size = 5;
157
+ */
158
+ size: string;
159
+ /**
160
+ * When the artifact was created in the monolith
161
+ *
162
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 6;
163
+ */
164
+ createdAt?: Timestamp;
165
+ }
166
+ /**
167
+ * @generated from protobuf message github.actions.results.api.v1.GetSignedArtifactURLRequest
168
+ */
169
+ export interface GetSignedArtifactURLRequest {
170
+ /**
171
+ * @generated from protobuf field: string workflow_run_backend_id = 1;
172
+ */
173
+ workflowRunBackendId: string;
174
+ /**
175
+ * @generated from protobuf field: string workflow_job_run_backend_id = 2;
176
+ */
177
+ workflowJobRunBackendId: string;
178
+ /**
179
+ * @generated from protobuf field: string name = 3;
180
+ */
181
+ name: string;
182
+ }
183
+ /**
184
+ * @generated from protobuf message github.actions.results.api.v1.GetSignedArtifactURLResponse
185
+ */
186
+ export interface GetSignedArtifactURLResponse {
187
+ /**
188
+ * @generated from protobuf field: string signed_url = 1;
189
+ */
190
+ signedUrl: string;
191
+ }
192
+ declare class CreateArtifactRequest$Type extends MessageType<CreateArtifactRequest> {
193
+ constructor();
194
+ create(value?: PartialMessage<CreateArtifactRequest>): CreateArtifactRequest;
195
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateArtifactRequest): CreateArtifactRequest;
196
+ internalBinaryWrite(message: CreateArtifactRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
197
+ }
198
+ /**
199
+ * @generated MessageType for protobuf message github.actions.results.api.v1.CreateArtifactRequest
200
+ */
201
+ export declare const CreateArtifactRequest: CreateArtifactRequest$Type;
202
+ declare class CreateArtifactResponse$Type extends MessageType<CreateArtifactResponse> {
203
+ constructor();
204
+ create(value?: PartialMessage<CreateArtifactResponse>): CreateArtifactResponse;
205
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateArtifactResponse): CreateArtifactResponse;
206
+ internalBinaryWrite(message: CreateArtifactResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
207
+ }
208
+ /**
209
+ * @generated MessageType for protobuf message github.actions.results.api.v1.CreateArtifactResponse
210
+ */
211
+ export declare const CreateArtifactResponse: CreateArtifactResponse$Type;
212
+ declare class FinalizeArtifactRequest$Type extends MessageType<FinalizeArtifactRequest> {
213
+ constructor();
214
+ create(value?: PartialMessage<FinalizeArtifactRequest>): FinalizeArtifactRequest;
215
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FinalizeArtifactRequest): FinalizeArtifactRequest;
216
+ internalBinaryWrite(message: FinalizeArtifactRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
217
+ }
218
+ /**
219
+ * @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeArtifactRequest
220
+ */
221
+ export declare const FinalizeArtifactRequest: FinalizeArtifactRequest$Type;
222
+ declare class FinalizeArtifactResponse$Type extends MessageType<FinalizeArtifactResponse> {
223
+ constructor();
224
+ create(value?: PartialMessage<FinalizeArtifactResponse>): FinalizeArtifactResponse;
225
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FinalizeArtifactResponse): FinalizeArtifactResponse;
226
+ internalBinaryWrite(message: FinalizeArtifactResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
227
+ }
228
+ /**
229
+ * @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeArtifactResponse
230
+ */
231
+ export declare const FinalizeArtifactResponse: FinalizeArtifactResponse$Type;
232
+ declare class ListArtifactsRequest$Type extends MessageType<ListArtifactsRequest> {
233
+ constructor();
234
+ create(value?: PartialMessage<ListArtifactsRequest>): ListArtifactsRequest;
235
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListArtifactsRequest): ListArtifactsRequest;
236
+ internalBinaryWrite(message: ListArtifactsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
237
+ }
238
+ /**
239
+ * @generated MessageType for protobuf message github.actions.results.api.v1.ListArtifactsRequest
240
+ */
241
+ export declare const ListArtifactsRequest: ListArtifactsRequest$Type;
242
+ declare class ListArtifactsResponse$Type extends MessageType<ListArtifactsResponse> {
243
+ constructor();
244
+ create(value?: PartialMessage<ListArtifactsResponse>): ListArtifactsResponse;
245
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListArtifactsResponse): ListArtifactsResponse;
246
+ internalBinaryWrite(message: ListArtifactsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
247
+ }
248
+ /**
249
+ * @generated MessageType for protobuf message github.actions.results.api.v1.ListArtifactsResponse
250
+ */
251
+ export declare const ListArtifactsResponse: ListArtifactsResponse$Type;
252
+ declare class ListArtifactsResponse_MonolithArtifact$Type extends MessageType<ListArtifactsResponse_MonolithArtifact> {
253
+ constructor();
254
+ create(value?: PartialMessage<ListArtifactsResponse_MonolithArtifact>): ListArtifactsResponse_MonolithArtifact;
255
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListArtifactsResponse_MonolithArtifact): ListArtifactsResponse_MonolithArtifact;
256
+ internalBinaryWrite(message: ListArtifactsResponse_MonolithArtifact, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
257
+ }
258
+ /**
259
+ * @generated MessageType for protobuf message github.actions.results.api.v1.ListArtifactsResponse.MonolithArtifact
260
+ */
261
+ export declare const ListArtifactsResponse_MonolithArtifact: ListArtifactsResponse_MonolithArtifact$Type;
262
+ declare class GetSignedArtifactURLRequest$Type extends MessageType<GetSignedArtifactURLRequest> {
263
+ constructor();
264
+ create(value?: PartialMessage<GetSignedArtifactURLRequest>): GetSignedArtifactURLRequest;
265
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSignedArtifactURLRequest): GetSignedArtifactURLRequest;
266
+ internalBinaryWrite(message: GetSignedArtifactURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
267
+ }
268
+ /**
269
+ * @generated MessageType for protobuf message github.actions.results.api.v1.GetSignedArtifactURLRequest
270
+ */
271
+ export declare const GetSignedArtifactURLRequest: GetSignedArtifactURLRequest$Type;
272
+ declare class GetSignedArtifactURLResponse$Type extends MessageType<GetSignedArtifactURLResponse> {
273
+ constructor();
274
+ create(value?: PartialMessage<GetSignedArtifactURLResponse>): GetSignedArtifactURLResponse;
275
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSignedArtifactURLResponse): GetSignedArtifactURLResponse;
276
+ internalBinaryWrite(message: GetSignedArtifactURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
277
+ }
278
+ /**
279
+ * @generated MessageType for protobuf message github.actions.results.api.v1.GetSignedArtifactURLResponse
280
+ */
281
+ export declare const GetSignedArtifactURLResponse: GetSignedArtifactURLResponse$Type;
282
+ /**
283
+ * @generated ServiceType for protobuf service github.actions.results.api.v1.ArtifactService
284
+ */
285
+ export declare const ArtifactService: ServiceType;
286
+ export {};