@factify/sdk 0.3.13-rc.1 → 0.3.14-rc.2
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/README.md +0 -7
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/index.d.ts +0 -5
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -5
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +0 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +0 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/index.d.ts +0 -5
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -5
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +0 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +0 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/openapi.json +0 -338
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -5
- package/src/models/operations/index.ts +0 -2
- package/src/sdk/sdk.ts +0 -6
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.d.ts +0 -18
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.d.ts.map +0 -1
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.js +0 -124
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.js.map +0 -1
- package/dist/commonjs/funcs/quotaGetUsageHistory.d.ts +0 -18
- package/dist/commonjs/funcs/quotaGetUsageHistory.d.ts.map +0 -1
- package/dist/commonjs/funcs/quotaGetUsageHistory.js +0 -126
- package/dist/commonjs/funcs/quotaGetUsageHistory.js.map +0 -1
- package/dist/commonjs/models/components/dailyusage.d.ts +0 -20
- package/dist/commonjs/models/components/dailyusage.d.ts.map +0 -1
- package/dist/commonjs/models/components/dailyusage.js +0 -58
- package/dist/commonjs/models/components/dailyusage.js.map +0 -1
- package/dist/commonjs/models/components/getorganizationquotaresponse.d.ts +0 -17
- package/dist/commonjs/models/components/getorganizationquotaresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/getorganizationquotaresponse.js +0 -52
- package/dist/commonjs/models/components/getorganizationquotaresponse.js.map +0 -1
- package/dist/commonjs/models/components/getusagehistoryresponse.d.ts +0 -25
- package/dist/commonjs/models/components/getusagehistoryresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/getusagehistoryresponse.js +0 -61
- package/dist/commonjs/models/components/getusagehistoryresponse.js.map +0 -1
- package/dist/commonjs/models/components/organizationquota.d.ts +0 -52
- package/dist/commonjs/models/components/organizationquota.d.ts.map +0 -1
- package/dist/commonjs/models/components/organizationquota.js +0 -71
- package/dist/commonjs/models/components/organizationquota.js.map +0 -1
- package/dist/commonjs/models/components/quotatier.d.ts +0 -17
- package/dist/commonjs/models/components/quotatier.d.ts.map +0 -1
- package/dist/commonjs/models/components/quotatier.js +0 -51
- package/dist/commonjs/models/components/quotatier.js.map +0 -1
- package/dist/commonjs/models/operations/getorganizationquota.d.ts +0 -34
- package/dist/commonjs/models/operations/getorganizationquota.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getorganizationquota.js +0 -73
- package/dist/commonjs/models/operations/getorganizationquota.js.map +0 -1
- package/dist/commonjs/models/operations/getusagehistory.d.ts +0 -41
- package/dist/commonjs/models/operations/getusagehistory.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getusagehistory.js +0 -77
- package/dist/commonjs/models/operations/getusagehistory.js.map +0 -1
- package/dist/commonjs/sdk/quota.d.ts +0 -19
- package/dist/commonjs/sdk/quota.d.ts.map +0 -1
- package/dist/commonjs/sdk/quota.js +0 -32
- package/dist/commonjs/sdk/quota.js.map +0 -1
- package/dist/esm/funcs/quotaGetOrganizationQuota.d.ts +0 -18
- package/dist/esm/funcs/quotaGetOrganizationQuota.d.ts.map +0 -1
- package/dist/esm/funcs/quotaGetOrganizationQuota.js +0 -88
- package/dist/esm/funcs/quotaGetOrganizationQuota.js.map +0 -1
- package/dist/esm/funcs/quotaGetUsageHistory.d.ts +0 -18
- package/dist/esm/funcs/quotaGetUsageHistory.d.ts.map +0 -1
- package/dist/esm/funcs/quotaGetUsageHistory.js +0 -90
- package/dist/esm/funcs/quotaGetUsageHistory.js.map +0 -1
- package/dist/esm/models/components/dailyusage.d.ts +0 -20
- package/dist/esm/models/components/dailyusage.d.ts.map +0 -1
- package/dist/esm/models/components/dailyusage.js +0 -21
- package/dist/esm/models/components/dailyusage.js.map +0 -1
- package/dist/esm/models/components/getorganizationquotaresponse.d.ts +0 -17
- package/dist/esm/models/components/getorganizationquotaresponse.d.ts.map +0 -1
- package/dist/esm/models/components/getorganizationquotaresponse.js +0 -15
- package/dist/esm/models/components/getorganizationquotaresponse.js.map +0 -1
- package/dist/esm/models/components/getusagehistoryresponse.d.ts +0 -25
- package/dist/esm/models/components/getusagehistoryresponse.d.ts.map +0 -1
- package/dist/esm/models/components/getusagehistoryresponse.js +0 -24
- package/dist/esm/models/components/getusagehistoryresponse.js.map +0 -1
- package/dist/esm/models/components/organizationquota.d.ts +0 -52
- package/dist/esm/models/components/organizationquota.d.ts.map +0 -1
- package/dist/esm/models/components/organizationquota.js +0 -34
- package/dist/esm/models/components/organizationquota.js.map +0 -1
- package/dist/esm/models/components/quotatier.d.ts +0 -17
- package/dist/esm/models/components/quotatier.d.ts.map +0 -1
- package/dist/esm/models/components/quotatier.js +0 -15
- package/dist/esm/models/components/quotatier.js.map +0 -1
- package/dist/esm/models/operations/getorganizationquota.d.ts +0 -34
- package/dist/esm/models/operations/getorganizationquota.d.ts.map +0 -1
- package/dist/esm/models/operations/getorganizationquota.js +0 -35
- package/dist/esm/models/operations/getorganizationquota.js.map +0 -1
- package/dist/esm/models/operations/getusagehistory.d.ts +0 -41
- package/dist/esm/models/operations/getusagehistory.d.ts.map +0 -1
- package/dist/esm/models/operations/getusagehistory.js +0 -39
- package/dist/esm/models/operations/getusagehistory.js.map +0 -1
- package/dist/esm/sdk/quota.d.ts +0 -19
- package/dist/esm/sdk/quota.d.ts.map +0 -1
- package/dist/esm/sdk/quota.js +0 -28
- package/dist/esm/sdk/quota.js.map +0 -1
- package/src/funcs/quotaGetOrganizationQuota.ts +0 -182
- package/src/funcs/quotaGetUsageHistory.ts +0 -184
- package/src/models/components/dailyusage.ts +0 -48
- package/src/models/components/getorganizationquotaresponse.ts +0 -41
- package/src/models/components/getusagehistoryresponse.ts +0 -58
- package/src/models/components/organizationquota.ts +0 -95
- package/src/models/components/quotatier.ts +0 -24
- package/src/models/operations/getorganizationquota.ts +0 -93
- package/src/models/operations/getusagehistory.ts +0 -100
- package/src/sdk/quota.ts +0 -45
package/openapi.json
CHANGED
|
@@ -479,27 +479,6 @@
|
|
|
479
479
|
"title": "CreateVersionRequest",
|
|
480
480
|
"type": "object"
|
|
481
481
|
},
|
|
482
|
-
"DailyUsage": {
|
|
483
|
-
"additionalProperties": false,
|
|
484
|
-
"description": "DailyUsage represents usage for a single day.",
|
|
485
|
-
"properties": {
|
|
486
|
-
"date": {
|
|
487
|
-
"description": "The date (YYYY-MM-DD format).",
|
|
488
|
-
"example": "2026-01-15",
|
|
489
|
-
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
490
|
-
"title": "date",
|
|
491
|
-
"type": "string"
|
|
492
|
-
},
|
|
493
|
-
"request_count": {
|
|
494
|
-
"description": "Request count for this day.",
|
|
495
|
-
"format": "int32",
|
|
496
|
-
"title": "request_count",
|
|
497
|
-
"type": "integer"
|
|
498
|
-
}
|
|
499
|
-
},
|
|
500
|
-
"title": "DailyUsage",
|
|
501
|
-
"type": "object"
|
|
502
|
-
},
|
|
503
482
|
"DetachPolicyRequest": {
|
|
504
483
|
"additionalProperties": false,
|
|
505
484
|
"description": "DetachPolicyRequest identifies a policy to detach from a document.",
|
|
@@ -751,35 +730,6 @@
|
|
|
751
730
|
"title": "GetDocumentResponse",
|
|
752
731
|
"type": "object"
|
|
753
732
|
},
|
|
754
|
-
"GetOrganizationQuotaRequest": {
|
|
755
|
-
"additionalProperties": false,
|
|
756
|
-
"description": "GetOrganizationQuotaRequest is a request to get quota status.",
|
|
757
|
-
"properties": {
|
|
758
|
-
"organization_id": {
|
|
759
|
-
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.\n Only admins can query other organizations.",
|
|
760
|
-
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
761
|
-
"nullable": true,
|
|
762
|
-
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
763
|
-
"title": "organization_id",
|
|
764
|
-
"type": "string"
|
|
765
|
-
}
|
|
766
|
-
},
|
|
767
|
-
"title": "GetOrganizationQuotaRequest",
|
|
768
|
-
"type": "object"
|
|
769
|
-
},
|
|
770
|
-
"GetOrganizationQuotaResponse": {
|
|
771
|
-
"additionalProperties": false,
|
|
772
|
-
"description": "GetOrganizationQuotaResponse returns the quota status.",
|
|
773
|
-
"properties": {
|
|
774
|
-
"quota": {
|
|
775
|
-
"$ref": "#/components/schemas/OrganizationQuota",
|
|
776
|
-
"description": "The organization's quota status.",
|
|
777
|
-
"title": "quota"
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
|
-
"title": "GetOrganizationQuotaResponse",
|
|
781
|
-
"type": "object"
|
|
782
|
-
},
|
|
783
733
|
"GetOrganizationRequest": {
|
|
784
734
|
"additionalProperties": false,
|
|
785
735
|
"description": "GetOrganizationRequest identifies an organization to retrieve.",
|
|
@@ -813,69 +763,6 @@
|
|
|
813
763
|
"title": "GetOrganizationResponse",
|
|
814
764
|
"type": "object"
|
|
815
765
|
},
|
|
816
|
-
"GetUsageHistoryRequest": {
|
|
817
|
-
"additionalProperties": false,
|
|
818
|
-
"description": "GetUsageHistoryRequest is a request to get usage history.\ndate_range_valid // end_date must be after start_date\n",
|
|
819
|
-
"properties": {
|
|
820
|
-
"end_date": {
|
|
821
|
-
"description": "End date for the history (exclusive, YYYY-MM-DD format).",
|
|
822
|
-
"example": "2026-02-01",
|
|
823
|
-
"maxLength": 10,
|
|
824
|
-
"minLength": 10,
|
|
825
|
-
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
826
|
-
"title": "end_date",
|
|
827
|
-
"type": "string"
|
|
828
|
-
},
|
|
829
|
-
"organization_id": {
|
|
830
|
-
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.",
|
|
831
|
-
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
832
|
-
"nullable": true,
|
|
833
|
-
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
834
|
-
"title": "organization_id",
|
|
835
|
-
"type": "string"
|
|
836
|
-
},
|
|
837
|
-
"start_date": {
|
|
838
|
-
"description": "Start date for the history (inclusive, YYYY-MM-DD format).",
|
|
839
|
-
"example": "2026-01-01",
|
|
840
|
-
"maxLength": 10,
|
|
841
|
-
"minLength": 10,
|
|
842
|
-
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
843
|
-
"title": "start_date",
|
|
844
|
-
"type": "string"
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
|
-
"title": "GetUsageHistoryRequest",
|
|
848
|
-
"type": "object"
|
|
849
|
-
},
|
|
850
|
-
"GetUsageHistoryResponse": {
|
|
851
|
-
"additionalProperties": false,
|
|
852
|
-
"description": "GetUsageHistoryResponse returns usage history.",
|
|
853
|
-
"properties": {
|
|
854
|
-
"daily_usage": {
|
|
855
|
-
"description": "Daily usage records.",
|
|
856
|
-
"items": {
|
|
857
|
-
"$ref": "#/components/schemas/DailyUsage"
|
|
858
|
-
},
|
|
859
|
-
"title": "daily_usage",
|
|
860
|
-
"type": "array"
|
|
861
|
-
},
|
|
862
|
-
"organization_id": {
|
|
863
|
-
"description": "The organization ID.",
|
|
864
|
-
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
865
|
-
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
866
|
-
"title": "organization_id",
|
|
867
|
-
"type": "string"
|
|
868
|
-
},
|
|
869
|
-
"total_requests": {
|
|
870
|
-
"description": "Total requests in the period.",
|
|
871
|
-
"format": "int32",
|
|
872
|
-
"title": "total_requests",
|
|
873
|
-
"type": "integer"
|
|
874
|
-
}
|
|
875
|
-
},
|
|
876
|
-
"title": "GetUsageHistoryResponse",
|
|
877
|
-
"type": "object"
|
|
878
|
-
},
|
|
879
766
|
"GetVersionRequest": {
|
|
880
767
|
"additionalProperties": false,
|
|
881
768
|
"description": "GetVersionRequest identifies a specific version to retrieve.",
|
|
@@ -1208,67 +1095,6 @@
|
|
|
1208
1095
|
"title": "Organization",
|
|
1209
1096
|
"type": "object"
|
|
1210
1097
|
},
|
|
1211
|
-
"OrganizationQuota": {
|
|
1212
|
-
"additionalProperties": false,
|
|
1213
|
-
"description": "OrganizationQuota represents the quota status for an organization.",
|
|
1214
|
-
"properties": {
|
|
1215
|
-
"current_usage": {
|
|
1216
|
-
"description": "Current usage in the billing period.",
|
|
1217
|
-
"format": "int32",
|
|
1218
|
-
"title": "current_usage",
|
|
1219
|
-
"type": "integer"
|
|
1220
|
-
},
|
|
1221
|
-
"effective_limit": {
|
|
1222
|
-
"description": "The effective monthly limit (considers custom_limit if set).",
|
|
1223
|
-
"format": "int32",
|
|
1224
|
-
"title": "effective_limit",
|
|
1225
|
-
"type": "integer"
|
|
1226
|
-
},
|
|
1227
|
-
"is_exceeded": {
|
|
1228
|
-
"description": "Whether quota is exceeded.",
|
|
1229
|
-
"title": "is_exceeded",
|
|
1230
|
-
"type": "boolean"
|
|
1231
|
-
},
|
|
1232
|
-
"organization_id": {
|
|
1233
|
-
"description": "The organization ID.\n Pattern: org_[0-9a-hjkmnp-tv-z]{26}",
|
|
1234
|
-
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
1235
|
-
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1236
|
-
"title": "organization_id",
|
|
1237
|
-
"type": "string"
|
|
1238
|
-
},
|
|
1239
|
-
"period_start": {
|
|
1240
|
-
"description": "Start of current billing period.",
|
|
1241
|
-
"format": "date-time",
|
|
1242
|
-
"title": "period_start",
|
|
1243
|
-
"type": "string"
|
|
1244
|
-
},
|
|
1245
|
-
"remaining": {
|
|
1246
|
-
"description": "Remaining requests in the billing period.",
|
|
1247
|
-
"format": "int32",
|
|
1248
|
-
"title": "remaining",
|
|
1249
|
-
"type": "integer"
|
|
1250
|
-
},
|
|
1251
|
-
"reset_at": {
|
|
1252
|
-
"description": "When the quota resets (start of next billing period).",
|
|
1253
|
-
"format": "date-time",
|
|
1254
|
-
"title": "reset_at",
|
|
1255
|
-
"type": "string"
|
|
1256
|
-
},
|
|
1257
|
-
"tier": {
|
|
1258
|
-
"$ref": "#/components/schemas/QuotaTier",
|
|
1259
|
-
"description": "The quota tier (free or custom).",
|
|
1260
|
-
"title": "tier"
|
|
1261
|
-
},
|
|
1262
|
-
"usage_percent": {
|
|
1263
|
-
"description": "Usage as a percentage (0-100+).",
|
|
1264
|
-
"format": "int32",
|
|
1265
|
-
"title": "usage_percent",
|
|
1266
|
-
"type": "integer"
|
|
1267
|
-
}
|
|
1268
|
-
},
|
|
1269
|
-
"title": "OrganizationQuota",
|
|
1270
|
-
"type": "object"
|
|
1271
|
-
},
|
|
1272
1098
|
"Pagination": {
|
|
1273
1099
|
"additionalProperties": false,
|
|
1274
1100
|
"description": "Pagination contains cursor-based pagination metadata.\n Follows Google AIP-158 for pagination field naming.",
|
|
@@ -1334,16 +1160,6 @@
|
|
|
1334
1160
|
"failed"
|
|
1335
1161
|
]
|
|
1336
1162
|
},
|
|
1337
|
-
"QuotaTier": {
|
|
1338
|
-
"description": "QuotaTier represents the organization's quota tier.",
|
|
1339
|
-
"enum": [
|
|
1340
|
-
"QUOTA_TIER_UNSPECIFIED",
|
|
1341
|
-
"QUOTA_TIER_FREE",
|
|
1342
|
-
"QUOTA_TIER_CUSTOM"
|
|
1343
|
-
],
|
|
1344
|
-
"title": "QuotaTier",
|
|
1345
|
-
"type": "string"
|
|
1346
|
-
},
|
|
1347
1163
|
"RevokeApiKeyRequest": {
|
|
1348
1164
|
"additionalProperties": false,
|
|
1349
1165
|
"description": "RevokeApiKeyRequest identifies an API key to revoke.",
|
|
@@ -2930,156 +2746,6 @@
|
|
|
2930
2746
|
]
|
|
2931
2747
|
}
|
|
2932
2748
|
},
|
|
2933
|
-
"/v1beta/quota": {
|
|
2934
|
-
"get": {
|
|
2935
|
-
"description": "Returns the current quota status for an organization including usage, limits, tier, and reset date.",
|
|
2936
|
-
"operationId": "getOrganizationQuota",
|
|
2937
|
-
"parameters": [
|
|
2938
|
-
{
|
|
2939
|
-
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.\n Only admins can query other organizations.",
|
|
2940
|
-
"in": "query",
|
|
2941
|
-
"name": "organization_id",
|
|
2942
|
-
"schema": {
|
|
2943
|
-
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.\n Only admins can query other organizations.",
|
|
2944
|
-
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
2945
|
-
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2946
|
-
"title": "organization_id",
|
|
2947
|
-
"type": "string"
|
|
2948
|
-
}
|
|
2949
|
-
}
|
|
2950
|
-
],
|
|
2951
|
-
"responses": {
|
|
2952
|
-
"200": {
|
|
2953
|
-
"content": {
|
|
2954
|
-
"application/json": {
|
|
2955
|
-
"schema": {
|
|
2956
|
-
"$ref": "#/components/schemas/GetOrganizationQuotaResponse"
|
|
2957
|
-
}
|
|
2958
|
-
}
|
|
2959
|
-
},
|
|
2960
|
-
"description": "Success"
|
|
2961
|
-
},
|
|
2962
|
-
"400": {
|
|
2963
|
-
"$ref": "#/components/responses/BadRequest"
|
|
2964
|
-
},
|
|
2965
|
-
"401": {
|
|
2966
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
2967
|
-
},
|
|
2968
|
-
"403": {
|
|
2969
|
-
"$ref": "#/components/responses/Forbidden"
|
|
2970
|
-
},
|
|
2971
|
-
"404": {
|
|
2972
|
-
"$ref": "#/components/responses/NotFound"
|
|
2973
|
-
},
|
|
2974
|
-
"429": {
|
|
2975
|
-
"$ref": "#/components/responses/RateLimitExceeded"
|
|
2976
|
-
},
|
|
2977
|
-
"500": {
|
|
2978
|
-
"$ref": "#/components/responses/InternalServerError"
|
|
2979
|
-
}
|
|
2980
|
-
},
|
|
2981
|
-
"summary": "Get organization quota status",
|
|
2982
|
-
"tags": [
|
|
2983
|
-
"Quota"
|
|
2984
|
-
],
|
|
2985
|
-
"x-codeSamples": [
|
|
2986
|
-
{
|
|
2987
|
-
"lang": "typescript",
|
|
2988
|
-
"label": "getOrganizationQuota",
|
|
2989
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.quota.getOrganizationQuota({\n organizationId: \"org_01h2xcejqtf2nbrexx3vqjhp41\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2990
|
-
}
|
|
2991
|
-
]
|
|
2992
|
-
}
|
|
2993
|
-
},
|
|
2994
|
-
"/v1beta/quota/usage": {
|
|
2995
|
-
"get": {
|
|
2996
|
-
"description": "Returns daily usage records for an organization within a specified date range.",
|
|
2997
|
-
"operationId": "getUsageHistory",
|
|
2998
|
-
"parameters": [
|
|
2999
|
-
{
|
|
3000
|
-
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.",
|
|
3001
|
-
"in": "query",
|
|
3002
|
-
"name": "organization_id",
|
|
3003
|
-
"schema": {
|
|
3004
|
-
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.",
|
|
3005
|
-
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
3006
|
-
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3007
|
-
"title": "organization_id",
|
|
3008
|
-
"type": "string"
|
|
3009
|
-
}
|
|
3010
|
-
},
|
|
3011
|
-
{
|
|
3012
|
-
"description": "Start date for the history (inclusive, YYYY-MM-DD format).",
|
|
3013
|
-
"in": "query",
|
|
3014
|
-
"name": "start_date",
|
|
3015
|
-
"schema": {
|
|
3016
|
-
"description": "Start date for the history (inclusive, YYYY-MM-DD format).",
|
|
3017
|
-
"example": "2026-01-01",
|
|
3018
|
-
"maxLength": 10,
|
|
3019
|
-
"minLength": 10,
|
|
3020
|
-
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
3021
|
-
"title": "start_date",
|
|
3022
|
-
"type": "string"
|
|
3023
|
-
}
|
|
3024
|
-
},
|
|
3025
|
-
{
|
|
3026
|
-
"description": "End date for the history (exclusive, YYYY-MM-DD format).",
|
|
3027
|
-
"in": "query",
|
|
3028
|
-
"name": "end_date",
|
|
3029
|
-
"schema": {
|
|
3030
|
-
"description": "End date for the history (exclusive, YYYY-MM-DD format).",
|
|
3031
|
-
"example": "2026-02-01",
|
|
3032
|
-
"maxLength": 10,
|
|
3033
|
-
"minLength": 10,
|
|
3034
|
-
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
3035
|
-
"title": "end_date",
|
|
3036
|
-
"type": "string"
|
|
3037
|
-
}
|
|
3038
|
-
}
|
|
3039
|
-
],
|
|
3040
|
-
"responses": {
|
|
3041
|
-
"200": {
|
|
3042
|
-
"content": {
|
|
3043
|
-
"application/json": {
|
|
3044
|
-
"schema": {
|
|
3045
|
-
"$ref": "#/components/schemas/GetUsageHistoryResponse"
|
|
3046
|
-
}
|
|
3047
|
-
}
|
|
3048
|
-
},
|
|
3049
|
-
"description": "Success"
|
|
3050
|
-
},
|
|
3051
|
-
"400": {
|
|
3052
|
-
"$ref": "#/components/responses/BadRequest"
|
|
3053
|
-
},
|
|
3054
|
-
"401": {
|
|
3055
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
3056
|
-
},
|
|
3057
|
-
"403": {
|
|
3058
|
-
"$ref": "#/components/responses/Forbidden"
|
|
3059
|
-
},
|
|
3060
|
-
"404": {
|
|
3061
|
-
"$ref": "#/components/responses/NotFound"
|
|
3062
|
-
},
|
|
3063
|
-
"429": {
|
|
3064
|
-
"$ref": "#/components/responses/RateLimitExceeded"
|
|
3065
|
-
},
|
|
3066
|
-
"500": {
|
|
3067
|
-
"$ref": "#/components/responses/InternalServerError"
|
|
3068
|
-
}
|
|
3069
|
-
},
|
|
3070
|
-
"summary": "Get usage history",
|
|
3071
|
-
"tags": [
|
|
3072
|
-
"Quota"
|
|
3073
|
-
],
|
|
3074
|
-
"x-codeSamples": [
|
|
3075
|
-
{
|
|
3076
|
-
"lang": "typescript",
|
|
3077
|
-
"label": "getUsageHistory",
|
|
3078
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.quota.getUsageHistory({\n organizationId: \"org_01h2xcejqtf2nbrexx3vqjhp41\",\n startDate: \"2026-01-01\",\n endDate: \"2026-02-01\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
3079
|
-
}
|
|
3080
|
-
]
|
|
3081
|
-
}
|
|
3082
|
-
},
|
|
3083
2749
|
"/v1beta/versions/{version_id}": {
|
|
3084
2750
|
"get": {
|
|
3085
2751
|
"description": "Retrieve a specific version by ID.",
|
|
@@ -3263,10 +2929,6 @@
|
|
|
3263
2929
|
"description": "Generate and manage API keys for authentication.",
|
|
3264
2930
|
"name": "API Keys"
|
|
3265
2931
|
},
|
|
3266
|
-
{
|
|
3267
|
-
"description": "Query API usage and quota information for your organization.",
|
|
3268
|
-
"name": "Quota"
|
|
3269
|
-
},
|
|
3270
2932
|
{
|
|
3271
2933
|
"description": "Attach and manage access policies for documents.",
|
|
3272
2934
|
"name": "Policies"
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0.0",
|
|
68
|
-
sdkVersion: "0.3.
|
|
68
|
+
sdkVersion: "0.3.14-rc.2",
|
|
69
69
|
genVersion: "2.799.0",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.3.14-rc.2 2.799.0 1.0.0 @factify/sdk",
|
|
71
71
|
} as const;
|
|
@@ -11,16 +11,13 @@ export * from "./createdocumentresponse.js";
|
|
|
11
11
|
export * from "./createorganizationrequest.js";
|
|
12
12
|
export * from "./createorganizationresponse.js";
|
|
13
13
|
export * from "./createversionrequest.js";
|
|
14
|
-
export * from "./dailyusage.js";
|
|
15
14
|
export * from "./document.js";
|
|
16
15
|
export * from "./documentpolicy.js";
|
|
17
16
|
export * from "./empty.js";
|
|
18
17
|
export * from "./error.js";
|
|
19
18
|
export * from "./generateentrypageresponse.js";
|
|
20
19
|
export * from "./getdocumentresponse.js";
|
|
21
|
-
export * from "./getorganizationquotaresponse.js";
|
|
22
20
|
export * from "./getorganizationresponse.js";
|
|
23
|
-
export * from "./getusagehistoryresponse.js";
|
|
24
21
|
export * from "./httpmetadata.js";
|
|
25
22
|
export * from "./listapikeysresponse.js";
|
|
26
23
|
export * from "./listdocumentpoliciesresponse.js";
|
|
@@ -28,11 +25,9 @@ export * from "./listdocumentsresponse.js";
|
|
|
28
25
|
export * from "./listorganizationsresponse.js";
|
|
29
26
|
export * from "./listversionsresponse.js";
|
|
30
27
|
export * from "./organization.js";
|
|
31
|
-
export * from "./organizationquota.js";
|
|
32
28
|
export * from "./pagination.js";
|
|
33
29
|
export * from "./policy.js";
|
|
34
30
|
export * from "./processingstatus.js";
|
|
35
|
-
export * from "./quotatier.js";
|
|
36
31
|
export * from "./revokeapikeyresponse.js";
|
|
37
32
|
export * from "./security.js";
|
|
38
33
|
export * from "./updatedocumentresponse.js";
|
|
@@ -11,8 +11,6 @@ export * from "./detachdocumentpolicy.js";
|
|
|
11
11
|
export * from "./generatedocumententrypage.js";
|
|
12
12
|
export * from "./getdocument.js";
|
|
13
13
|
export * from "./getorganization.js";
|
|
14
|
-
export * from "./getorganizationquota.js";
|
|
15
|
-
export * from "./getusagehistory.js";
|
|
16
14
|
export * from "./getversion.js";
|
|
17
15
|
export * from "./listapikeys.js";
|
|
18
16
|
export * from "./listdocumentpolicies.js";
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { Documents } from "./documents.js";
|
|
|
8
8
|
import { EntryPages } from "./entrypages.js";
|
|
9
9
|
import { Organizations } from "./organizations.js";
|
|
10
10
|
import { Policies } from "./policies.js";
|
|
11
|
-
import { Quota } from "./quota.js";
|
|
12
11
|
import { Versions } from "./versions.js";
|
|
13
12
|
|
|
14
13
|
export class Factify extends ClientSDK {
|
|
@@ -41,9 +40,4 @@ export class Factify extends ClientSDK {
|
|
|
41
40
|
get organizations(): Organizations {
|
|
42
41
|
return (this._organizations ??= new Organizations(this._options));
|
|
43
42
|
}
|
|
44
|
-
|
|
45
|
-
private _quota?: Quota;
|
|
46
|
-
get quota(): Quota {
|
|
47
|
-
return (this._quota ??= new Quota(this._options));
|
|
48
|
-
}
|
|
49
43
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FactifyCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { FactifyError } from "../models/errors/factifyerror.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
-
import * as errors from "../models/errors/index.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Get organization quota status
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Returns the current quota status for an organization including usage, limits, tier, and reset date.
|
|
16
|
-
*/
|
|
17
|
-
export declare function quotaGetOrganizationQuota(client: FactifyCore, request?: operations.GetOrganizationQuotaRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.GetOrganizationQuotaResponse, errors.ErrorT | FactifyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=quotaGetOrganizationQuota.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaGetOrganizationQuota.d.ts","sourceRoot":"","sources":["../../../src/funcs/quotaGetOrganizationQuota.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,UAAU,CAAC,2BAA2B,GAAG,SAAS,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,EACrC,MAAM,CAAC,MAAM,GACb,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.quotaGetOrganizationQuota = quotaGetOrganizationQuota;
|
|
40
|
-
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
-
const security_js_1 = require("../lib/security.js");
|
|
46
|
-
const url_js_1 = require("../lib/url.js");
|
|
47
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
-
const async_js_1 = require("../types/async.js");
|
|
50
|
-
/**
|
|
51
|
-
* Get organization quota status
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* Returns the current quota status for an organization including usage, limits, tier, and reset date.
|
|
55
|
-
*/
|
|
56
|
-
function quotaGetOrganizationQuota(client, request, options) {
|
|
57
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
-
}
|
|
59
|
-
async function $do(client, request, options) {
|
|
60
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(z.optional(operations.GetOrganizationQuotaRequest$outboundSchema), value), "Input validation failed");
|
|
61
|
-
if (!parsed.ok) {
|
|
62
|
-
return [parsed, { status: "invalid" }];
|
|
63
|
-
}
|
|
64
|
-
const payload = parsed.value;
|
|
65
|
-
const body = null;
|
|
66
|
-
const path = (0, url_js_1.pathToFunc)("/v1beta/quota")();
|
|
67
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
68
|
-
"organization_id": payload?.organization_id,
|
|
69
|
-
});
|
|
70
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
71
|
-
Accept: "application/json",
|
|
72
|
-
}));
|
|
73
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.bearerAuth);
|
|
74
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
75
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
76
|
-
const context = {
|
|
77
|
-
options: client._options,
|
|
78
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79
|
-
operationID: "getOrganizationQuota",
|
|
80
|
-
oAuth2Scopes: null,
|
|
81
|
-
resolvedSecurity: requestSecurity,
|
|
82
|
-
securitySource: client._options.bearerAuth,
|
|
83
|
-
retryConfig: options?.retries
|
|
84
|
-
|| client._options.retryConfig
|
|
85
|
-
|| { strategy: "none" },
|
|
86
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
87
|
-
};
|
|
88
|
-
const requestRes = client._createRequest(context, {
|
|
89
|
-
security: requestSecurity,
|
|
90
|
-
method: "GET",
|
|
91
|
-
baseURL: options?.serverURL,
|
|
92
|
-
path: path,
|
|
93
|
-
headers: headers,
|
|
94
|
-
query: query,
|
|
95
|
-
body: body,
|
|
96
|
-
userAgent: client._options.userAgent,
|
|
97
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
98
|
-
}, options);
|
|
99
|
-
if (!requestRes.ok) {
|
|
100
|
-
return [requestRes, { status: "invalid" }];
|
|
101
|
-
}
|
|
102
|
-
const req = requestRes.value;
|
|
103
|
-
const doResult = await client._do(req, {
|
|
104
|
-
context,
|
|
105
|
-
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
|
|
106
|
-
retryConfig: context.retryConfig,
|
|
107
|
-
retryCodes: context.retryCodes,
|
|
108
|
-
});
|
|
109
|
-
if (!doResult.ok) {
|
|
110
|
-
return [doResult, { status: "request-error", request: req }];
|
|
111
|
-
}
|
|
112
|
-
const response = doResult.value;
|
|
113
|
-
const responseFields = {
|
|
114
|
-
HttpMeta: { Response: response, Request: req },
|
|
115
|
-
};
|
|
116
|
-
const [result] = await M.match(M.json(200, operations.GetOrganizationQuotaResponse$inboundSchema, {
|
|
117
|
-
key: "GetOrganizationQuotaResponse",
|
|
118
|
-
}), M.jsonErr([400, 401, 403, 404], errors.ErrorT$inboundSchema), M.jsonErr(429, errors.ErrorT$inboundSchema, { hdrs: true }), M.jsonErr(500, errors.ErrorT$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
119
|
-
if (!result.ok) {
|
|
120
|
-
return [result, { status: "complete", request: req, response }];
|
|
121
|
-
}
|
|
122
|
-
return [result, { status: "complete", request: req, response }];
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=quotaGetOrganizationQuota.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaGetOrganizationQuota.js","sourceRoot":"","sources":["../../../src/funcs/quotaGetOrganizationQuota.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,8DAuBC;AArDD,+CAAiC;AAEjC,sDAAsD;AACtD,sDAAwC;AACxC,w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AAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FactifyCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { FactifyError } from "../models/errors/factifyerror.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
-
import * as errors from "../models/errors/index.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Get usage history
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Returns daily usage records for an organization within a specified date range.
|
|
16
|
-
*/
|
|
17
|
-
export declare function quotaGetUsageHistory(client: FactifyCore, request?: operations.GetUsageHistoryRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.GetUsageHistoryResponse, errors.ErrorT | FactifyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=quotaGetUsageHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaGetUsageHistory.d.ts","sourceRoot":"","sources":["../../../src/funcs/quotaGetUsageHistory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,UAAU,CAAC,sBAAsB,GAAG,SAAS,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,MAAM,CAAC,MAAM,GACb,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|