@brazosd/node 0.1.12 → 0.1.13
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/browser.d.ts +121 -7
- package/browser.js +87 -0
- package/index.d.ts +121 -7
- package/index.js +87 -0
- package/package.json +1 -1
package/browser.d.ts
CHANGED
|
@@ -772,6 +772,7 @@ type AuthorizeSSORequest = {
|
|
|
772
772
|
orgId: number;
|
|
773
773
|
};
|
|
774
774
|
type BillingCloudDriveKind = "user.drive" | "org.drive" | "org-public.drive" | "public.drive" | "channel.drive" | "agent-repo.drive" | "other";
|
|
775
|
+
type BillingCloudDriveUsageKind = "org-user.drive" | "service-user.drive" | "org.drive" | "org-public.drive" | "public.drive" | "channel.drive" | "agent-repo.drive" | "other";
|
|
775
776
|
type BillingCredit = {
|
|
776
777
|
createdAt: string;
|
|
777
778
|
earnedAmountMicroyuans: number;
|
|
@@ -1224,6 +1225,24 @@ type CloudDriveCapacitySummary = {
|
|
|
1224
1225
|
*/
|
|
1225
1226
|
totalBytes?: number;
|
|
1226
1227
|
};
|
|
1228
|
+
type CloudDriveDailyCost = {
|
|
1229
|
+
/**
|
|
1230
|
+
* OSS requests and public downloads in decimal microyuans before settlement rounding.
|
|
1231
|
+
*/
|
|
1232
|
+
accessMicroyuans: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* Whether the day's final review or settlement is still pending.
|
|
1235
|
+
*/
|
|
1236
|
+
provisional: boolean;
|
|
1237
|
+
/**
|
|
1238
|
+
* Storage fee in decimal microyuans before settlement rounding.
|
|
1239
|
+
*/
|
|
1240
|
+
storageMicroyuans: string;
|
|
1241
|
+
/**
|
|
1242
|
+
* UTC usage date (YYYY-MM-DD)
|
|
1243
|
+
*/
|
|
1244
|
+
usageDate: string;
|
|
1245
|
+
};
|
|
1227
1246
|
type CloudDriveFnode = {
|
|
1228
1247
|
/**
|
|
1229
1248
|
* MIME type of the file, when known. Null for directories.
|
|
@@ -1290,6 +1309,38 @@ type CloudDriveSettings = {
|
|
|
1290
1309
|
*/
|
|
1291
1310
|
trashCleanupIntervalDays?: number | null;
|
|
1292
1311
|
};
|
|
1312
|
+
type CloudDriveStorageHour = {
|
|
1313
|
+
/**
|
|
1314
|
+
* Organization closing bytes. Present for captured and sampled hours, including observed zero.
|
|
1315
|
+
*/
|
|
1316
|
+
closingBytes?: number;
|
|
1317
|
+
/**
|
|
1318
|
+
* Start of the UTC hour
|
|
1319
|
+
*/
|
|
1320
|
+
hourStart: string;
|
|
1321
|
+
status: "pending" | "captured" | "sampled" | "waived";
|
|
1322
|
+
/**
|
|
1323
|
+
* Reason for a waived hour (missing_snapshot at final review).
|
|
1324
|
+
*/
|
|
1325
|
+
waiverReason?: string;
|
|
1326
|
+
};
|
|
1327
|
+
type CloudDriveStorageCoverage = {
|
|
1328
|
+
/**
|
|
1329
|
+
* Exclusive end of continuous storage settlement from activation (including explicit waivers), capped at the selected day's end. Omitted when there are no eligible hours.
|
|
1330
|
+
*/
|
|
1331
|
+
confirmedThrough?: string;
|
|
1332
|
+
hours: Array<CloudDriveStorageHour>;
|
|
1333
|
+
};
|
|
1334
|
+
type CloudDriveUsagePage = {
|
|
1335
|
+
/**
|
|
1336
|
+
* Drive usage with separate organization and service user drive kinds.
|
|
1337
|
+
*/
|
|
1338
|
+
items: Array<CloudDriveCapacity>;
|
|
1339
|
+
/**
|
|
1340
|
+
* Omitted when this is the last page.
|
|
1341
|
+
*/
|
|
1342
|
+
nextCursor?: string;
|
|
1343
|
+
};
|
|
1293
1344
|
type CloudSandbox = {
|
|
1294
1345
|
billedAmountMicroyuans: number;
|
|
1295
1346
|
deviceKey: string;
|
|
@@ -5250,6 +5301,17 @@ declare class DefaultService {
|
|
|
5250
5301
|
* @throws ApiError
|
|
5251
5302
|
*/
|
|
5252
5303
|
getBillingCloudDriveCapacitySummary(): CancelablePromise<CloudDriveCapacitySummary>;
|
|
5304
|
+
/**
|
|
5305
|
+
* List cloud drive storage and access costs by UTC usage date for the current organization
|
|
5306
|
+
* @returns CloudDriveDailyCost Costs for billable dates in ascending order, priced from metered usage.
|
|
5307
|
+
* @throws ApiError
|
|
5308
|
+
*/
|
|
5309
|
+
listBillingCloudDriveDailyCosts({ days, }: {
|
|
5310
|
+
/**
|
|
5311
|
+
* Number of UTC days including today.
|
|
5312
|
+
*/
|
|
5313
|
+
days?: number;
|
|
5314
|
+
}): CancelablePromise<Array<CloudDriveDailyCost>>;
|
|
5253
5315
|
/**
|
|
5254
5316
|
* Read the current organization's cloud drive invoice for one UTC issue date
|
|
5255
5317
|
* @returns CloudDriveInvoiceItem Incremental charges and quantities on this invoice, including late adjustments
|
|
@@ -5258,6 +5320,34 @@ declare class DefaultService {
|
|
|
5258
5320
|
getBillingCloudDriveInvoice({ invoiceDay, }: {
|
|
5259
5321
|
invoiceDay: string;
|
|
5260
5322
|
}): CancelablePromise<Array<CloudDriveInvoiceItem>>;
|
|
5323
|
+
/**
|
|
5324
|
+
* Get hourly storage metering for the authenticated organization on a UTC usage day
|
|
5325
|
+
* @returns CloudDriveStorageCoverage Completed hour intervals since activation and organization creation, including missing samples
|
|
5326
|
+
* @throws ApiError
|
|
5327
|
+
*/
|
|
5328
|
+
getBillingCloudDriveStorageCoverage({ usageDay, }: {
|
|
5329
|
+
usageDay: string;
|
|
5330
|
+
}): CancelablePromise<CloudDriveStorageCoverage>;
|
|
5331
|
+
/**
|
|
5332
|
+
* List cloud drive usage for a UTC day in descending access fee order
|
|
5333
|
+
* @returns CloudDriveUsagePage A page sorted by descending access fee and ascending drive root ID for equal fees
|
|
5334
|
+
* @throws ApiError
|
|
5335
|
+
*/
|
|
5336
|
+
listBillingCloudDriveUsage({ cursor, limit, usageDay, driveKind, }: {
|
|
5337
|
+
/**
|
|
5338
|
+
* Next cursor from the preceding page for the same day and drive kind.
|
|
5339
|
+
*/
|
|
5340
|
+
cursor?: string;
|
|
5341
|
+
limit?: number;
|
|
5342
|
+
/**
|
|
5343
|
+
* UTC usage day. Defaults to today.
|
|
5344
|
+
*/
|
|
5345
|
+
usageDay?: string;
|
|
5346
|
+
/**
|
|
5347
|
+
* Omit to include all drives.
|
|
5348
|
+
*/
|
|
5349
|
+
driveKind?: BillingCloudDriveUsageKind;
|
|
5350
|
+
}): CancelablePromise<CloudDriveUsagePage>;
|
|
5261
5351
|
/**
|
|
5262
5352
|
* Get billing credits
|
|
5263
5353
|
* Get the current organization's credit balances, lifetime spending, and invoiced and available invoice amounts.
|
|
@@ -7782,13 +7872,21 @@ type App = {
|
|
|
7782
7872
|
enabled: boolean;
|
|
7783
7873
|
state: string;
|
|
7784
7874
|
revisionId?: string;
|
|
7785
|
-
runtime: "nodejs";
|
|
7875
|
+
runtime: "nodejs" | "linux";
|
|
7786
7876
|
/**
|
|
7787
7877
|
* Application listen port; 8081 is reserved for the runtime.
|
|
7788
7878
|
*/
|
|
7789
7879
|
port: number;
|
|
7790
7880
|
vcpu: VCPU;
|
|
7791
7881
|
memoryGiB: MemoryGiB;
|
|
7882
|
+
/**
|
|
7883
|
+
* Executable followed by literal arguments. Working directory is the bundle root (/srv/app). Defaults to ["node","server.js"] or ["./server"].
|
|
7884
|
+
*/
|
|
7885
|
+
command: Array<string>;
|
|
7886
|
+
/**
|
|
7887
|
+
* Legacy Node.js script path relative to the bundle root. Use command for new configurations.
|
|
7888
|
+
* @deprecated
|
|
7889
|
+
*/
|
|
7792
7890
|
entrypoint: string;
|
|
7793
7891
|
healthPath: string;
|
|
7794
7892
|
/**
|
|
@@ -7812,8 +7910,8 @@ type App = {
|
|
|
7812
7910
|
type AppCredentialBindingInput = {
|
|
7813
7911
|
credentialId: string;
|
|
7814
7912
|
};
|
|
7815
|
-
type NodeMemoryGiB = 1;
|
|
7816
|
-
type NodeVCPU = 0.5;
|
|
7913
|
+
type NodeMemoryGiB = 0.5 | 1;
|
|
7914
|
+
type NodeVCPU = 0.25 | 0.5;
|
|
7817
7915
|
type AppInput = {
|
|
7818
7916
|
/**
|
|
7819
7917
|
* Use a verified root domain from this organization. Omit to use the organization's default root, or just the platform domain when no default is set. The platform URL is always retained.
|
|
@@ -7832,9 +7930,17 @@ type AppInput = {
|
|
|
7832
7930
|
*/
|
|
7833
7931
|
serviceUserId?: (string | number);
|
|
7834
7932
|
name: string;
|
|
7933
|
+
/**
|
|
7934
|
+
* Executable followed by literal arguments. Working directory is the bundle root (/srv/app). Defaults to ["node","server.js"] or ["./server"].
|
|
7935
|
+
*/
|
|
7936
|
+
command?: Array<string>;
|
|
7937
|
+
/**
|
|
7938
|
+
* Legacy Node.js script path relative to the bundle root. Use command for new configurations.
|
|
7939
|
+
* @deprecated
|
|
7940
|
+
*/
|
|
7835
7941
|
entrypoint?: string;
|
|
7836
7942
|
healthPath?: string;
|
|
7837
|
-
runtime?: "nodejs";
|
|
7943
|
+
runtime?: "nodejs" | "linux";
|
|
7838
7944
|
/**
|
|
7839
7945
|
* Application listen port; 8081 is reserved for the runtime.
|
|
7840
7946
|
*/
|
|
@@ -7933,13 +8039,21 @@ type AppMetrics = {
|
|
|
7933
8039
|
};
|
|
7934
8040
|
type AppSettings = {
|
|
7935
8041
|
enabled?: boolean;
|
|
7936
|
-
runtime?: "nodejs";
|
|
8042
|
+
runtime?: "nodejs" | "linux";
|
|
7937
8043
|
/**
|
|
7938
8044
|
* Application listen port; 8081 is reserved for the runtime.
|
|
7939
8045
|
*/
|
|
7940
8046
|
port?: number;
|
|
7941
8047
|
vcpu?: NodeVCPU;
|
|
7942
8048
|
memoryGiB?: NodeMemoryGiB;
|
|
8049
|
+
/**
|
|
8050
|
+
* Executable followed by literal arguments. Working directory is the bundle root (/srv/app). Defaults to ["node","server.js"] or ["./server"].
|
|
8051
|
+
*/
|
|
8052
|
+
command?: Array<string>;
|
|
8053
|
+
/**
|
|
8054
|
+
* Legacy Node.js script path relative to the bundle root. Use command for new configurations.
|
|
8055
|
+
* @deprecated
|
|
8056
|
+
*/
|
|
7943
8057
|
entrypoint?: string;
|
|
7944
8058
|
healthPath?: string;
|
|
7945
8059
|
/**
|
|
@@ -7967,7 +8081,7 @@ type AppSummary = {
|
|
|
7967
8081
|
url: string;
|
|
7968
8082
|
enabled: boolean;
|
|
7969
8083
|
state: string;
|
|
7970
|
-
runtime: "nodejs";
|
|
8084
|
+
runtime: "nodejs" | "linux";
|
|
7971
8085
|
vcpu: VCPU;
|
|
7972
8086
|
memoryGiB: MemoryGiB;
|
|
7973
8087
|
serviceUserId: number;
|
|
@@ -8217,7 +8331,7 @@ type RootDomainSettings = {
|
|
|
8217
8331
|
};
|
|
8218
8332
|
type TransactionalEvent = {
|
|
8219
8333
|
id: string;
|
|
8220
|
-
state: "pending" | "delivering" | "retrying" | "delivered" | "failed";
|
|
8334
|
+
state: "pending" | "delivering" | "retrying" | "delivered" | "failed" | "cancelled";
|
|
8221
8335
|
attempts: number;
|
|
8222
8336
|
createdAt: string;
|
|
8223
8337
|
nextAttemptAt?: string;
|
package/browser.js
CHANGED
|
@@ -2883,6 +2883,25 @@ var DefaultService = class {
|
|
|
2883
2883
|
url: "/billing/cloud-drive/capacity-summary"
|
|
2884
2884
|
});
|
|
2885
2885
|
}
|
|
2886
|
+
/**
|
|
2887
|
+
* List cloud drive storage and access costs by UTC usage date for the current organization
|
|
2888
|
+
* @returns CloudDriveDailyCost Costs for billable dates in ascending order, priced from metered usage.
|
|
2889
|
+
* @throws ApiError
|
|
2890
|
+
*/
|
|
2891
|
+
listBillingCloudDriveDailyCosts({
|
|
2892
|
+
days = 30
|
|
2893
|
+
}) {
|
|
2894
|
+
return this.httpRequest.request({
|
|
2895
|
+
method: "GET",
|
|
2896
|
+
url: "/billing/cloud-drive/daily-costs",
|
|
2897
|
+
query: {
|
|
2898
|
+
"days": days
|
|
2899
|
+
},
|
|
2900
|
+
errors: {
|
|
2901
|
+
400: `Invalid number of days`
|
|
2902
|
+
}
|
|
2903
|
+
});
|
|
2904
|
+
}
|
|
2886
2905
|
/**
|
|
2887
2906
|
* Read the current organization's cloud drive invoice for one UTC issue date
|
|
2888
2907
|
* @returns CloudDriveInvoiceItem Incremental charges and quantities on this invoice, including late adjustments
|
|
@@ -2899,6 +2918,50 @@ var DefaultService = class {
|
|
|
2899
2918
|
}
|
|
2900
2919
|
});
|
|
2901
2920
|
}
|
|
2921
|
+
/**
|
|
2922
|
+
* Get hourly storage metering for the authenticated organization on a UTC usage day
|
|
2923
|
+
* @returns CloudDriveStorageCoverage Completed hour intervals since activation and organization creation, including missing samples
|
|
2924
|
+
* @throws ApiError
|
|
2925
|
+
*/
|
|
2926
|
+
getBillingCloudDriveStorageCoverage({
|
|
2927
|
+
usageDay
|
|
2928
|
+
}) {
|
|
2929
|
+
return this.httpRequest.request({
|
|
2930
|
+
method: "GET",
|
|
2931
|
+
url: "/billing/cloud-drive/storage-coverage/{usageDay}",
|
|
2932
|
+
path: {
|
|
2933
|
+
"usageDay": usageDay
|
|
2934
|
+
},
|
|
2935
|
+
errors: {
|
|
2936
|
+
400: `Invalid UTC usage date`
|
|
2937
|
+
}
|
|
2938
|
+
});
|
|
2939
|
+
}
|
|
2940
|
+
/**
|
|
2941
|
+
* List cloud drive usage for a UTC day in descending access fee order
|
|
2942
|
+
* @returns CloudDriveUsagePage A page sorted by descending access fee and ascending drive root ID for equal fees
|
|
2943
|
+
* @throws ApiError
|
|
2944
|
+
*/
|
|
2945
|
+
listBillingCloudDriveUsage({
|
|
2946
|
+
cursor,
|
|
2947
|
+
limit = 50,
|
|
2948
|
+
usageDay,
|
|
2949
|
+
driveKind
|
|
2950
|
+
}) {
|
|
2951
|
+
return this.httpRequest.request({
|
|
2952
|
+
method: "GET",
|
|
2953
|
+
url: "/billing/cloud-drive/usage",
|
|
2954
|
+
query: {
|
|
2955
|
+
"cursor": cursor,
|
|
2956
|
+
"limit": limit,
|
|
2957
|
+
"usageDay": usageDay,
|
|
2958
|
+
"driveKind": driveKind
|
|
2959
|
+
},
|
|
2960
|
+
errors: {
|
|
2961
|
+
400: `Invalid usage day, drive kind or cursor`
|
|
2962
|
+
}
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2902
2965
|
/**
|
|
2903
2966
|
* Get billing credits
|
|
2904
2967
|
* Get the current organization's credit balances, lifetime spending, and invoiced and available invoice amounts.
|
|
@@ -10261,6 +10324,14 @@ var operations = {
|
|
|
10261
10324
|
"200": "json"
|
|
10262
10325
|
}
|
|
10263
10326
|
},
|
|
10327
|
+
"GET /billing/cloud-drive/daily-costs": {
|
|
10328
|
+
"authenticated": true,
|
|
10329
|
+
"redirect": false,
|
|
10330
|
+
"responses": {
|
|
10331
|
+
"200": "json",
|
|
10332
|
+
"400": "void"
|
|
10333
|
+
}
|
|
10334
|
+
},
|
|
10264
10335
|
"GET /billing/cloud-drive/invoices/{invoiceDay}": {
|
|
10265
10336
|
"authenticated": true,
|
|
10266
10337
|
"redirect": false,
|
|
@@ -10268,6 +10339,22 @@ var operations = {
|
|
|
10268
10339
|
"200": "json"
|
|
10269
10340
|
}
|
|
10270
10341
|
},
|
|
10342
|
+
"GET /billing/cloud-drive/storage-coverage/{usageDay}": {
|
|
10343
|
+
"authenticated": true,
|
|
10344
|
+
"redirect": false,
|
|
10345
|
+
"responses": {
|
|
10346
|
+
"200": "json",
|
|
10347
|
+
"400": "void"
|
|
10348
|
+
}
|
|
10349
|
+
},
|
|
10350
|
+
"GET /billing/cloud-drive/usage": {
|
|
10351
|
+
"authenticated": true,
|
|
10352
|
+
"redirect": false,
|
|
10353
|
+
"responses": {
|
|
10354
|
+
"200": "json",
|
|
10355
|
+
"400": "void"
|
|
10356
|
+
}
|
|
10357
|
+
},
|
|
10271
10358
|
"GET /billing/credits": {
|
|
10272
10359
|
"authenticated": true,
|
|
10273
10360
|
"redirect": false,
|
package/index.d.ts
CHANGED
|
@@ -774,6 +774,7 @@ type AuthorizeSSORequest = {
|
|
|
774
774
|
orgId: number;
|
|
775
775
|
};
|
|
776
776
|
type BillingCloudDriveKind = "user.drive" | "org.drive" | "org-public.drive" | "public.drive" | "channel.drive" | "agent-repo.drive" | "other";
|
|
777
|
+
type BillingCloudDriveUsageKind = "org-user.drive" | "service-user.drive" | "org.drive" | "org-public.drive" | "public.drive" | "channel.drive" | "agent-repo.drive" | "other";
|
|
777
778
|
type BillingCredit = {
|
|
778
779
|
createdAt: string;
|
|
779
780
|
earnedAmountMicroyuans: number;
|
|
@@ -1226,6 +1227,24 @@ type CloudDriveCapacitySummary = {
|
|
|
1226
1227
|
*/
|
|
1227
1228
|
totalBytes?: number;
|
|
1228
1229
|
};
|
|
1230
|
+
type CloudDriveDailyCost = {
|
|
1231
|
+
/**
|
|
1232
|
+
* OSS requests and public downloads in decimal microyuans before settlement rounding.
|
|
1233
|
+
*/
|
|
1234
|
+
accessMicroyuans: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* Whether the day's final review or settlement is still pending.
|
|
1237
|
+
*/
|
|
1238
|
+
provisional: boolean;
|
|
1239
|
+
/**
|
|
1240
|
+
* Storage fee in decimal microyuans before settlement rounding.
|
|
1241
|
+
*/
|
|
1242
|
+
storageMicroyuans: string;
|
|
1243
|
+
/**
|
|
1244
|
+
* UTC usage date (YYYY-MM-DD)
|
|
1245
|
+
*/
|
|
1246
|
+
usageDate: string;
|
|
1247
|
+
};
|
|
1229
1248
|
type CloudDriveFnode = {
|
|
1230
1249
|
/**
|
|
1231
1250
|
* MIME type of the file, when known. Null for directories.
|
|
@@ -1292,6 +1311,38 @@ type CloudDriveSettings = {
|
|
|
1292
1311
|
*/
|
|
1293
1312
|
trashCleanupIntervalDays?: number | null;
|
|
1294
1313
|
};
|
|
1314
|
+
type CloudDriveStorageHour = {
|
|
1315
|
+
/**
|
|
1316
|
+
* Organization closing bytes. Present for captured and sampled hours, including observed zero.
|
|
1317
|
+
*/
|
|
1318
|
+
closingBytes?: number;
|
|
1319
|
+
/**
|
|
1320
|
+
* Start of the UTC hour
|
|
1321
|
+
*/
|
|
1322
|
+
hourStart: string;
|
|
1323
|
+
status: "pending" | "captured" | "sampled" | "waived";
|
|
1324
|
+
/**
|
|
1325
|
+
* Reason for a waived hour (missing_snapshot at final review).
|
|
1326
|
+
*/
|
|
1327
|
+
waiverReason?: string;
|
|
1328
|
+
};
|
|
1329
|
+
type CloudDriveStorageCoverage = {
|
|
1330
|
+
/**
|
|
1331
|
+
* Exclusive end of continuous storage settlement from activation (including explicit waivers), capped at the selected day's end. Omitted when there are no eligible hours.
|
|
1332
|
+
*/
|
|
1333
|
+
confirmedThrough?: string;
|
|
1334
|
+
hours: Array<CloudDriveStorageHour>;
|
|
1335
|
+
};
|
|
1336
|
+
type CloudDriveUsagePage = {
|
|
1337
|
+
/**
|
|
1338
|
+
* Drive usage with separate organization and service user drive kinds.
|
|
1339
|
+
*/
|
|
1340
|
+
items: Array<CloudDriveCapacity>;
|
|
1341
|
+
/**
|
|
1342
|
+
* Omitted when this is the last page.
|
|
1343
|
+
*/
|
|
1344
|
+
nextCursor?: string;
|
|
1345
|
+
};
|
|
1295
1346
|
type CloudSandbox = {
|
|
1296
1347
|
billedAmountMicroyuans: number;
|
|
1297
1348
|
deviceKey: string;
|
|
@@ -5252,6 +5303,17 @@ declare class DefaultService {
|
|
|
5252
5303
|
* @throws ApiError
|
|
5253
5304
|
*/
|
|
5254
5305
|
getBillingCloudDriveCapacitySummary(): CancelablePromise<CloudDriveCapacitySummary>;
|
|
5306
|
+
/**
|
|
5307
|
+
* List cloud drive storage and access costs by UTC usage date for the current organization
|
|
5308
|
+
* @returns CloudDriveDailyCost Costs for billable dates in ascending order, priced from metered usage.
|
|
5309
|
+
* @throws ApiError
|
|
5310
|
+
*/
|
|
5311
|
+
listBillingCloudDriveDailyCosts({ days, }: {
|
|
5312
|
+
/**
|
|
5313
|
+
* Number of UTC days including today.
|
|
5314
|
+
*/
|
|
5315
|
+
days?: number;
|
|
5316
|
+
}): CancelablePromise<Array<CloudDriveDailyCost>>;
|
|
5255
5317
|
/**
|
|
5256
5318
|
* Read the current organization's cloud drive invoice for one UTC issue date
|
|
5257
5319
|
* @returns CloudDriveInvoiceItem Incremental charges and quantities on this invoice, including late adjustments
|
|
@@ -5260,6 +5322,34 @@ declare class DefaultService {
|
|
|
5260
5322
|
getBillingCloudDriveInvoice({ invoiceDay, }: {
|
|
5261
5323
|
invoiceDay: string;
|
|
5262
5324
|
}): CancelablePromise<Array<CloudDriveInvoiceItem>>;
|
|
5325
|
+
/**
|
|
5326
|
+
* Get hourly storage metering for the authenticated organization on a UTC usage day
|
|
5327
|
+
* @returns CloudDriveStorageCoverage Completed hour intervals since activation and organization creation, including missing samples
|
|
5328
|
+
* @throws ApiError
|
|
5329
|
+
*/
|
|
5330
|
+
getBillingCloudDriveStorageCoverage({ usageDay, }: {
|
|
5331
|
+
usageDay: string;
|
|
5332
|
+
}): CancelablePromise<CloudDriveStorageCoverage>;
|
|
5333
|
+
/**
|
|
5334
|
+
* List cloud drive usage for a UTC day in descending access fee order
|
|
5335
|
+
* @returns CloudDriveUsagePage A page sorted by descending access fee and ascending drive root ID for equal fees
|
|
5336
|
+
* @throws ApiError
|
|
5337
|
+
*/
|
|
5338
|
+
listBillingCloudDriveUsage({ cursor, limit, usageDay, driveKind, }: {
|
|
5339
|
+
/**
|
|
5340
|
+
* Next cursor from the preceding page for the same day and drive kind.
|
|
5341
|
+
*/
|
|
5342
|
+
cursor?: string;
|
|
5343
|
+
limit?: number;
|
|
5344
|
+
/**
|
|
5345
|
+
* UTC usage day. Defaults to today.
|
|
5346
|
+
*/
|
|
5347
|
+
usageDay?: string;
|
|
5348
|
+
/**
|
|
5349
|
+
* Omit to include all drives.
|
|
5350
|
+
*/
|
|
5351
|
+
driveKind?: BillingCloudDriveUsageKind;
|
|
5352
|
+
}): CancelablePromise<CloudDriveUsagePage>;
|
|
5263
5353
|
/**
|
|
5264
5354
|
* Get billing credits
|
|
5265
5355
|
* Get the current organization's credit balances, lifetime spending, and invoiced and available invoice amounts.
|
|
@@ -7784,13 +7874,21 @@ type App = {
|
|
|
7784
7874
|
enabled: boolean;
|
|
7785
7875
|
state: string;
|
|
7786
7876
|
revisionId?: string;
|
|
7787
|
-
runtime: "nodejs";
|
|
7877
|
+
runtime: "nodejs" | "linux";
|
|
7788
7878
|
/**
|
|
7789
7879
|
* Application listen port; 8081 is reserved for the runtime.
|
|
7790
7880
|
*/
|
|
7791
7881
|
port: number;
|
|
7792
7882
|
vcpu: VCPU;
|
|
7793
7883
|
memoryGiB: MemoryGiB;
|
|
7884
|
+
/**
|
|
7885
|
+
* Executable followed by literal arguments. Working directory is the bundle root (/srv/app). Defaults to ["node","server.js"] or ["./server"].
|
|
7886
|
+
*/
|
|
7887
|
+
command: Array<string>;
|
|
7888
|
+
/**
|
|
7889
|
+
* Legacy Node.js script path relative to the bundle root. Use command for new configurations.
|
|
7890
|
+
* @deprecated
|
|
7891
|
+
*/
|
|
7794
7892
|
entrypoint: string;
|
|
7795
7893
|
healthPath: string;
|
|
7796
7894
|
/**
|
|
@@ -7814,8 +7912,8 @@ type App = {
|
|
|
7814
7912
|
type AppCredentialBindingInput = {
|
|
7815
7913
|
credentialId: string;
|
|
7816
7914
|
};
|
|
7817
|
-
type NodeMemoryGiB = 1;
|
|
7818
|
-
type NodeVCPU = 0.5;
|
|
7915
|
+
type NodeMemoryGiB = 0.5 | 1;
|
|
7916
|
+
type NodeVCPU = 0.25 | 0.5;
|
|
7819
7917
|
type AppInput = {
|
|
7820
7918
|
/**
|
|
7821
7919
|
* Use a verified root domain from this organization. Omit to use the organization's default root, or just the platform domain when no default is set. The platform URL is always retained.
|
|
@@ -7834,9 +7932,17 @@ type AppInput = {
|
|
|
7834
7932
|
*/
|
|
7835
7933
|
serviceUserId?: (string | number);
|
|
7836
7934
|
name: string;
|
|
7935
|
+
/**
|
|
7936
|
+
* Executable followed by literal arguments. Working directory is the bundle root (/srv/app). Defaults to ["node","server.js"] or ["./server"].
|
|
7937
|
+
*/
|
|
7938
|
+
command?: Array<string>;
|
|
7939
|
+
/**
|
|
7940
|
+
* Legacy Node.js script path relative to the bundle root. Use command for new configurations.
|
|
7941
|
+
* @deprecated
|
|
7942
|
+
*/
|
|
7837
7943
|
entrypoint?: string;
|
|
7838
7944
|
healthPath?: string;
|
|
7839
|
-
runtime?: "nodejs";
|
|
7945
|
+
runtime?: "nodejs" | "linux";
|
|
7840
7946
|
/**
|
|
7841
7947
|
* Application listen port; 8081 is reserved for the runtime.
|
|
7842
7948
|
*/
|
|
@@ -7935,13 +8041,21 @@ type AppMetrics = {
|
|
|
7935
8041
|
};
|
|
7936
8042
|
type AppSettings = {
|
|
7937
8043
|
enabled?: boolean;
|
|
7938
|
-
runtime?: "nodejs";
|
|
8044
|
+
runtime?: "nodejs" | "linux";
|
|
7939
8045
|
/**
|
|
7940
8046
|
* Application listen port; 8081 is reserved for the runtime.
|
|
7941
8047
|
*/
|
|
7942
8048
|
port?: number;
|
|
7943
8049
|
vcpu?: NodeVCPU;
|
|
7944
8050
|
memoryGiB?: NodeMemoryGiB;
|
|
8051
|
+
/**
|
|
8052
|
+
* Executable followed by literal arguments. Working directory is the bundle root (/srv/app). Defaults to ["node","server.js"] or ["./server"].
|
|
8053
|
+
*/
|
|
8054
|
+
command?: Array<string>;
|
|
8055
|
+
/**
|
|
8056
|
+
* Legacy Node.js script path relative to the bundle root. Use command for new configurations.
|
|
8057
|
+
* @deprecated
|
|
8058
|
+
*/
|
|
7945
8059
|
entrypoint?: string;
|
|
7946
8060
|
healthPath?: string;
|
|
7947
8061
|
/**
|
|
@@ -7969,7 +8083,7 @@ type AppSummary = {
|
|
|
7969
8083
|
url: string;
|
|
7970
8084
|
enabled: boolean;
|
|
7971
8085
|
state: string;
|
|
7972
|
-
runtime: "nodejs";
|
|
8086
|
+
runtime: "nodejs" | "linux";
|
|
7973
8087
|
vcpu: VCPU;
|
|
7974
8088
|
memoryGiB: MemoryGiB;
|
|
7975
8089
|
serviceUserId: number;
|
|
@@ -8219,7 +8333,7 @@ type RootDomainSettings = {
|
|
|
8219
8333
|
};
|
|
8220
8334
|
type TransactionalEvent = {
|
|
8221
8335
|
id: string;
|
|
8222
|
-
state: "pending" | "delivering" | "retrying" | "delivered" | "failed";
|
|
8336
|
+
state: "pending" | "delivering" | "retrying" | "delivered" | "failed" | "cancelled";
|
|
8223
8337
|
attempts: number;
|
|
8224
8338
|
createdAt: string;
|
|
8225
8339
|
nextAttemptAt?: string;
|
package/index.js
CHANGED
|
@@ -2883,6 +2883,25 @@ var DefaultService = class {
|
|
|
2883
2883
|
url: "/billing/cloud-drive/capacity-summary"
|
|
2884
2884
|
});
|
|
2885
2885
|
}
|
|
2886
|
+
/**
|
|
2887
|
+
* List cloud drive storage and access costs by UTC usage date for the current organization
|
|
2888
|
+
* @returns CloudDriveDailyCost Costs for billable dates in ascending order, priced from metered usage.
|
|
2889
|
+
* @throws ApiError
|
|
2890
|
+
*/
|
|
2891
|
+
listBillingCloudDriveDailyCosts({
|
|
2892
|
+
days = 30
|
|
2893
|
+
}) {
|
|
2894
|
+
return this.httpRequest.request({
|
|
2895
|
+
method: "GET",
|
|
2896
|
+
url: "/billing/cloud-drive/daily-costs",
|
|
2897
|
+
query: {
|
|
2898
|
+
"days": days
|
|
2899
|
+
},
|
|
2900
|
+
errors: {
|
|
2901
|
+
400: `Invalid number of days`
|
|
2902
|
+
}
|
|
2903
|
+
});
|
|
2904
|
+
}
|
|
2886
2905
|
/**
|
|
2887
2906
|
* Read the current organization's cloud drive invoice for one UTC issue date
|
|
2888
2907
|
* @returns CloudDriveInvoiceItem Incremental charges and quantities on this invoice, including late adjustments
|
|
@@ -2899,6 +2918,50 @@ var DefaultService = class {
|
|
|
2899
2918
|
}
|
|
2900
2919
|
});
|
|
2901
2920
|
}
|
|
2921
|
+
/**
|
|
2922
|
+
* Get hourly storage metering for the authenticated organization on a UTC usage day
|
|
2923
|
+
* @returns CloudDriveStorageCoverage Completed hour intervals since activation and organization creation, including missing samples
|
|
2924
|
+
* @throws ApiError
|
|
2925
|
+
*/
|
|
2926
|
+
getBillingCloudDriveStorageCoverage({
|
|
2927
|
+
usageDay
|
|
2928
|
+
}) {
|
|
2929
|
+
return this.httpRequest.request({
|
|
2930
|
+
method: "GET",
|
|
2931
|
+
url: "/billing/cloud-drive/storage-coverage/{usageDay}",
|
|
2932
|
+
path: {
|
|
2933
|
+
"usageDay": usageDay
|
|
2934
|
+
},
|
|
2935
|
+
errors: {
|
|
2936
|
+
400: `Invalid UTC usage date`
|
|
2937
|
+
}
|
|
2938
|
+
});
|
|
2939
|
+
}
|
|
2940
|
+
/**
|
|
2941
|
+
* List cloud drive usage for a UTC day in descending access fee order
|
|
2942
|
+
* @returns CloudDriveUsagePage A page sorted by descending access fee and ascending drive root ID for equal fees
|
|
2943
|
+
* @throws ApiError
|
|
2944
|
+
*/
|
|
2945
|
+
listBillingCloudDriveUsage({
|
|
2946
|
+
cursor,
|
|
2947
|
+
limit = 50,
|
|
2948
|
+
usageDay,
|
|
2949
|
+
driveKind
|
|
2950
|
+
}) {
|
|
2951
|
+
return this.httpRequest.request({
|
|
2952
|
+
method: "GET",
|
|
2953
|
+
url: "/billing/cloud-drive/usage",
|
|
2954
|
+
query: {
|
|
2955
|
+
"cursor": cursor,
|
|
2956
|
+
"limit": limit,
|
|
2957
|
+
"usageDay": usageDay,
|
|
2958
|
+
"driveKind": driveKind
|
|
2959
|
+
},
|
|
2960
|
+
errors: {
|
|
2961
|
+
400: `Invalid usage day, drive kind or cursor`
|
|
2962
|
+
}
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2902
2965
|
/**
|
|
2903
2966
|
* Get billing credits
|
|
2904
2967
|
* Get the current organization's credit balances, lifetime spending, and invoiced and available invoice amounts.
|
|
@@ -10261,6 +10324,14 @@ var operations = {
|
|
|
10261
10324
|
"200": "json"
|
|
10262
10325
|
}
|
|
10263
10326
|
},
|
|
10327
|
+
"GET /billing/cloud-drive/daily-costs": {
|
|
10328
|
+
"authenticated": true,
|
|
10329
|
+
"redirect": false,
|
|
10330
|
+
"responses": {
|
|
10331
|
+
"200": "json",
|
|
10332
|
+
"400": "void"
|
|
10333
|
+
}
|
|
10334
|
+
},
|
|
10264
10335
|
"GET /billing/cloud-drive/invoices/{invoiceDay}": {
|
|
10265
10336
|
"authenticated": true,
|
|
10266
10337
|
"redirect": false,
|
|
@@ -10268,6 +10339,22 @@ var operations = {
|
|
|
10268
10339
|
"200": "json"
|
|
10269
10340
|
}
|
|
10270
10341
|
},
|
|
10342
|
+
"GET /billing/cloud-drive/storage-coverage/{usageDay}": {
|
|
10343
|
+
"authenticated": true,
|
|
10344
|
+
"redirect": false,
|
|
10345
|
+
"responses": {
|
|
10346
|
+
"200": "json",
|
|
10347
|
+
"400": "void"
|
|
10348
|
+
}
|
|
10349
|
+
},
|
|
10350
|
+
"GET /billing/cloud-drive/usage": {
|
|
10351
|
+
"authenticated": true,
|
|
10352
|
+
"redirect": false,
|
|
10353
|
+
"responses": {
|
|
10354
|
+
"200": "json",
|
|
10355
|
+
"400": "void"
|
|
10356
|
+
}
|
|
10357
|
+
},
|
|
10271
10358
|
"GET /billing/credits": {
|
|
10272
10359
|
"authenticated": true,
|
|
10273
10360
|
"redirect": false,
|